fix(gui): show thinking live during streaming reasoning
The reasoning phase (~6s before the answer) went into a collapsed <details>, so the bubble looked empty until generation finished — perceived as "no streaming" on the second turn. Auto-open the thinking panel while reasoning_content streams and fold it when the answer (content) begins, so the wait is visible progress. Server streaming was verified correct on BOTH turns (content spread over 1.4s and 3.1s, reasoning starting at 0.87s); this is a UX fix, not a protocol change.
This commit is contained in:
1 parent
65f8111ba2
commit
ebbd9e72e8
1 file changed
+2
@@ -380,8 +380,10 @@ async function chatTurn(content, t, attachments) {
|
||||
reasoning += d.reasoning_content;
|
||||
reasoningNode.textContent = reasoning;
|
||||
det.hidden = false;
|
||||
det.open = true; // show the thinking live, so the wait is visible progress
|
||||
}
|
||||
if (d && d.content) {
|
||||
if (!text) det.open = false; // fold the thinking once the answer starts
|
||||
text += d.content;
|
||||
contentNode.textContent = text;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user