feat(web): show native context compaction activity in chat

This commit is contained in:
2026-10-20 22:15:03 +01:00
parent aa57fe8a04
commit d8b111913e
9 changed files with 216 additions and 11 deletions
+18
View File
@@ -8,6 +8,24 @@ test, or a code change without a capture, is `partial` at best.
Status legend: `todo` · `partial` (some of it works) · `done` (working + captured).
### Context compaction activity (2026-10-20)
**Partial against the live-provider gate.** A native compaction frame shows
**Compacting context…** with the active turn's spinner and Stop control, even
before the first answer or alongside existing reasoning/tools. Previously stored
reasoning is labeled Reasoning, not actively Thinking, while context compacts.
The label clears on compaction completion/failure; that does not finish the
surrounding model turn or count as a tool/message. Disconnect/turn settlement
clear stale activity. Reconnect clears stale state before subscribing, then keeps
fresh replayed activity while authoritative history loads.
`test/chat-compaction-browser.mjs` captures before-answer and with-history states
at 390/1100px plus cleared-on-disconnect. It checks polite status announcements,
no horizontal overflow, preserved message counts and Stop lifecycle. Captures:
approved OpenCode temporary `chat-compaction-captures/` directory. Fixtures do not
trigger compaction, inference or changes to real chats. A server update is needed
for the new native activity frames; shell cache v11 refreshes the browser modules.
### Tool summary error scope (2026-10-20)
The aggregate **N tools** label stays neutral and borderless even when a call