fix(chat): preserve fresh compaction state across reconnect history
This commit is contained in:
+7
-1
@@ -18,10 +18,16 @@ 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.
|
||||
OpenCode V2's native compaction lifecycle and Codex's `contextCompaction` items
|
||||
are normalized by the server, with retained active replay and native turn/item
|
||||
identity checks where available. No state is inferred from slow responses or
|
||||
model-authored text. Backend regression fixtures exercise the native schemas;
|
||||
no live provider compaction was triggered for verification.
|
||||
|
||||
`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:
|
||||
no horizontal overflow, preserved message counts, Stop lifecycle, and actual
|
||||
reconnect-handler replay surviving the history read. 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.
|
||||
|
||||
Reference in New Issue
Block a user