update streaming logic

This commit is contained in:
Nate Kelley 2025-09-23 09:21:56 -06:00
parent 22d3b8573c
commit 016d29d815
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
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({