summaryrefslogtreecommitdiff
path: root/frontend/src/components/Sidebar.tsx
diff options
context:
space:
mode:
authorblackhao <13851610112@163.com>2025-12-11 00:52:55 -0600
committerblackhao <13851610112@163.com>2025-12-11 00:52:55 -0600
commitf37c38ce077f0d1df086c213ef1e40a0d3402445 (patch)
tree9ebfbc506bc75e4909213f2c25ee02c61952bfb0 /frontend/src/components/Sidebar.tsx
parente70c89790517a57b5a5819806e112fd0efaeadb8 (diff)
add some log
Diffstat (limited to 'frontend/src/components/Sidebar.tsx')
-rw-r--r--frontend/src/components/Sidebar.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/src/components/Sidebar.tsx b/frontend/src/components/Sidebar.tsx
index e517693..700574a 100644
--- a/frontend/src/components/Sidebar.tsx
+++ b/frontend/src/components/Sidebar.tsx
@@ -325,8 +325,12 @@ const Sidebar: React.FC<SidebarProps> = ({ isOpen, onToggle, onInteract }) => {
while (true) {
const { value, done } = await reader.read();
- if (done) break;
+ if (done) {
+ console.log('[stream] done, fullResponse length:', fullResponse.length);
+ break;
+ }
const chunk = decoder.decode(value);
+ console.log('[stream] received chunk:', chunk.substring(0, 50));
fullResponse += chunk;
// Only update stream buffer, the display logic will check streamingNodeId
setStreamBuffer(prev => prev + chunk);