update streaming effect

This commit is contained in:
Nate Kelley 2025-09-26 09:13:15 -06:00
parent 152f95c768
commit a870c8383d
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 2 additions and 3 deletions

View File

@ -305,6 +305,6 @@ describe('useAutoRedirectStreaming', () => {
renderHook(() => useAutoRedirectStreaming(defaultProps));
expect(mockNavigateFn).not.toHaveBeenCalled();
expect(mockNavigateFn).toHaveBeenCalled();
});
});

View File

@ -89,8 +89,7 @@ export const useAutoRedirectStreaming = ({
//this happen will when the chat is completed and it WAS streaming
else if (
isFinishedReasoning &&
isStreamFinished &&
(isFinishedReasoning || isStreamFinished) &&
previousIsCompletedStream.current === false &&
!firstFileId
) {