From f37c38ce077f0d1df086c213ef1e40a0d3402445 Mon Sep 17 00:00:00 2001
From: blackhao <13851610112@163.com>
Date: Thu, 11 Dec 2025 00:52:55 -0600
Subject: add some log

---
 frontend/src/components/Sidebar.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'frontend/src/components/Sidebar.tsx')

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);
-- 
cgit v1.2.3

