diff options
Diffstat (limited to 'frontend/src/components/Sidebar.tsx')
| -rw-r--r-- | frontend/src/components/Sidebar.tsx | 6 |
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); |
