fix(chat): preserve fresh compaction state across reconnect history

This commit is contained in:
2026-10-20 22:24:29 +01:00
parent 4969d667b3
commit ba8a981932
6 changed files with 48 additions and 10 deletions
+2
View File
@@ -338,6 +338,8 @@ must not clear a newer turn's Stop control or release its queue slot.
Native context compaction is reported as `chat_event.kind="compaction"`, with
`compaction: {status: "running" | "completed" | "failed", id?: string}`.
Optional `native_turn_id` scopes the activity to its real harness turn; ignore
activity for an older turn when a newer native turn is known.
This is session activity and may have no `message_id`: clients must not invent
an assistant message or tool call for it. Show **Compacting context…** while
running; completion clears that phase but does not itself end the model turn.