From ebbd9e72e8abb2d799c98421561e7d056f6cd513 Mon Sep 17 00:00:00 2001 From: iz0eyj Date: Wed, 25 Nov 2026 16:43:58 +0100 Subject: [PATCH] fix(gui): show thinking live during streaming reasoning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The reasoning phase (~6s before the answer) went into a collapsed
, 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. --- web/assets/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/assets/app.js b/web/assets/app.js index 5aade8f..81413dc 100644 --- a/web/assets/app.js +++ b/web/assets/app.js @@ -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; }