From 7647b7dff8ca9040721df0fad48aaad225de0dbe Mon Sep 17 00:00:00 2001 From: JianFeeeee <109188060+JianFeeeee@users.noreply.github.com> Date: Tue, 11 Aug 2026 09:52:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20WebUI=20chat=20crashes=20on=20streaming?= =?UTF-8?q?=20reasoning=20=E2=80=94=20sendChat=20never=20passed=20the=20re?= =?UTF-8?q?ason=20flag=20to=20addMsg,=20so=20.think/.tk-hint=20were=20null?= =?UTF-8?q?=20and=20first=20reasoning=5Fcontent=20chunk=20threw=20'Cannot?= =?UTF-8?q?=20set=20properties=20of=20null';=20pass=20reason=3Dtrue=20and?= =?UTF-8?q?=20hide=20the=20empty=20box=20until=20thinking=20arrives?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/gateway/ui/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/gateway/ui/index.html b/internal/gateway/ui/index.html index abfc5a8..ed5fa0d 100644 --- a/internal/gateway/ui/index.html +++ b/internal/gateway/ui/index.html @@ -963,10 +963,11 @@ async function sendChat() { uimgBox.textContent = msg; } - const arow = addMsg('assistant', ''); + const arow = addMsg('assistant', '', true); const abuf = arow.querySelector('.bmd'); const thinkEl = arow.querySelector('.think'); const hintEl = arow.querySelector('.tk-hint'); + thinkEl.style.display = 'none'; const cursor = document.createElement('span'); cursor.className = 'cursor-dot'; abuf.appendChild(cursor);