Chat progress recovery
The dispatcher persists ordered thinking, text and tool blocks in extra.blocks on the owning assistant placeholder while generation runs. Session loading reads them the same way as completed turns.
| Case | Behaviour |
|---|---|
| Stream tap | Accepts only the owning session and message identity; nested runtime events keep their own storage |
| Text deltas | Coalesce within adjacent blocks |
| Tool results | Update their matching block |
| Success | Final persistence stays authoritative |
| Error | Metadata merges with stored progress; blocks stay, with an error notice added |
| During a read | stream_event and transcript_update frames for that session wait behind the read's reply and arrive in order, so a read captured earlier cannot undo an error. The error reaches the row as a transcript update; the terminal chat_response only ends the run |
| Reasoning | Only thinking events already shown live |
Retry visibility
| Item | Rule |
|---|---|
| Event | Every automatic continuation or provider retry emits a correlated stream event with attempt, limit, reason and delay when known |
| Display | Retrying state on the assistant bubble while the turn is active, even after earlier text |
| Cleared by | A later success, terminal failure or cancellation |
| Never | Creates a second user turn or marks the turn complete |
No browser-only storage and no replay of a truncated event buffer.
Last updated · 2026-11-25