Update useAutoChangeLayout.ts

This commit is contained in:
Nate Kelley 2025-03-04 13:11:49 -07:00
parent a565b0aaff
commit fd044dd2b2
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 2 additions and 0 deletions

View File

@ -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) {