HERMES-GIELIE/static
b3nw 160cd03c18 fix(chat): reset reasoning accumulator per turn and prefer reasoning_content (closes #2565)
Two confirmed bugs in the thinking/reasoning display:

1. reasoningText was initialized once when the SSE stream opened and never
   reset between turns. On the done event, the last assistant message
   received the union of every turn's reasoning. Now reset at both turn
   boundaries: tool (alongside existing liveReasoningText reset) and
   interim_assistant (the other turn boundary where prior reasoning closes).

2. ui.js renderMessages preferred m.reasoning (which could be corrupted by
   bug 1) over m.reasoning_content (the clean per-turn value from the
   backend). The fallback now reads m.reasoning_content || m.reasoning.

Both fixes are needed: bug 2 alone cannot cover providers that stream
reasoning events without populating reasoning_content on the final API
message.

Updated test_streaming_race_fix.py to scope its reconnect-accumulator
guard to the _wireSSE preamble only, since turn-boundary resets inside
event listeners are intentional and correct.

9 new regression tests in test_issue2565_reasoning_accumulation.py.
2026-05-24 04:08:40 +00:00
..
vendor
apple-touch-icon.png
boot.js feat: add Hepburn skin (magenta-rose palette) 2026-05-24 03:03:32 +00:00
commands.js fix: honour skin value in theme command 2026-05-20 00:09:06 +00:00
favicon-32.png
favicon-192.png
favicon-512.png
favicon-512.svg
favicon.ico
favicon.svg
i18n.js feat: add per-skill enable/disable toggle in Skills panel 2026-05-22 19:43:00 +00:00
icons.js Stage 382: PR #2500 (with whitespace polish on panels.js + ARCHITECTURE.md) 2026-05-18 03:45:02 +00:00
index.html feat: add Hepburn skin (magenta-rose palette) 2026-05-24 03:03:32 +00:00
login.js Fix login health probe credentials 2026-05-12 20:09:54 +08:00
manifest.json feat: add browser offline recovery and PWA cache hardening 2026-05-08 21:16:17 +00:00
messages.js fix(chat): reset reasoning accumulator per turn and prefer reasoning_content (closes #2565) 2026-05-24 04:08:40 +00:00
onboarding.js docs: clarify Anthropic auth choices in onboarding 2026-05-06 06:26:43 +00:00
panels.js feat: add Hepburn skin (magenta-rose palette) 2026-05-24 03:03:32 +00:00
sessions.js fix: clear stale inflight UI state (closes #2795, squashed from 5 commits) 2026-05-24 04:08:25 +00:00
style.css feat: add Hepburn skin (magenta-rose palette) 2026-05-24 03:03:32 +00:00
sw.js fix: reduce browser storage pressure 2026-05-16 08:44:04 -07:00
terminal.js
ui.js fix(chat): reset reasoning accumulator per turn and prefer reasoning_content (closes #2565) 2026-05-24 04:08:40 +00:00
workspace.js fix: time out hung browser api requests 2026-05-20 02:41:00 +08:00