From fd044dd2b2cc554c62ce9040b98eede899db739e Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Tue, 4 Mar 2025 13:11:49 -0700 Subject: [PATCH] Update useAutoChangeLayout.ts --- web/src/layouts/ChatLayout/ChatContext/useAutoChangeLayout.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/layouts/ChatLayout/ChatContext/useAutoChangeLayout.ts b/web/src/layouts/ChatLayout/ChatContext/useAutoChangeLayout.ts index b3229c794..10dbe2eca 100644 --- a/web/src/layouts/ChatLayout/ChatContext/useAutoChangeLayout.ts +++ b/web/src/layouts/ChatLayout/ChatContext/useAutoChangeLayout.ts @@ -19,6 +19,8 @@ export const useAutoChangeLayout = ({ const hasReasoning = !!reasoningMessagesLength; const previousIsEmpty = previousReasoningMessagesLength === 0; + console.log(isLoading, previousIsEmpty, hasReasoning, message); + //change the page to reasoning file if we get a reasoning message useEffect(() => { if (isLoading && previousIsEmpty && hasReasoning) {