feat(FN-4943): complete Step 2 — mirror stop flush behavior in useQuickChat
Fusion-Task-Id: FN-4943 Fusion-Task-Lineage: 67dd5c2b-0b44-43dd-a016-0bff858ec4b9
This commit is contained in:
committed by
gsxdsm
parent
b3e9b8ca36
commit
c6687bec09
@@ -626,10 +626,12 @@ export function useQuickChat(
|
||||
});
|
||||
|
||||
setIsStreaming(false);
|
||||
isStreamingRef.current = false;
|
||||
setStreamingText("");
|
||||
setStreamingThinking("");
|
||||
setStreamingToolCalls([]);
|
||||
}, [activeSession, projectId]);
|
||||
void flushPendingMessage();
|
||||
}, [activeSession, projectId, flushPendingMessage]);
|
||||
|
||||
const sendMessageRef = useRef<(content: string, attachments?: File[]) => Promise<void>>(() => Promise.resolve());
|
||||
const visibilitySuspension = useTabVisibilitySuspension();
|
||||
|
||||
Reference in New Issue
Block a user