Fix streaming message rendering, add state for awaiting tool response

This commit is contained in:
Alex Gleason committed 2025-12-07 15:09:38 -06:00
1 parent 32892c8840
commit 799aaa5696
8 files changed
+83 -46

No files matched your search

+1 -5
View File
@@ -66,11 +66,7 @@ export function useAIChat({
setMessages(prev => [...prev, message]);
// Whenever an assistant message is added, it means streaming is done (until we get another streamingUpdate)
if (message.role === 'assistant') {
setStreamingMessage({
role: 'assistant',
content: '',
reasoning_content: '',
});
setStreamingMessage(undefined);
}
}
}, [projectId]);