Merge pull request #1064 from buster-so/big-nate-bus-1878-collapse-reasoning-slide-out-if-no-assets-are-returned

update streaming logic
This commit is contained in:
Nate Kelley 2025-09-23 09:22:18 -06:00 committed by GitHub
commit c5846df7d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -80,7 +80,12 @@ export const useAutoRedirectStreaming = ({
}
//this happen will when the chat is completed and it WAS streaming
else if (isStreamFinished && previousIsCompletedStream.current === false && !firstFileId) {
else if (
isFinishedReasoning &&
isStreamFinished &&
previousIsCompletedStream.current === false &&
!firstFileId
) {
//no file is found, so we need to collapse the chat
navigate({