# Queued next: update lifecycle and exact session restoration

Requested 2026-10-16. Implemented after media unification; source-only delivery,
with no real installer or running daemon changes during verification.

- [x] Make the update modal non-dismissible by outside click while an update is
  running. Ordinary modal dismissal must not hide or retire the operation.
- [x] Provide an explicit top-right Cancel button. Cancellation must stop the
  owned update operation safely and reflect its actual outcome; do not equate
  hiding the modal with cancelling the update.
- [x] Define behavior for Escape and other close shortcuts consistently with
  the non-dismissible running-update state.
- [x] Capture the exact interface/session state before update and restore it
  after reload/restart: active project, session/tabs and selected agent,
  transcript content and scroll position, draft/cursor, sidebar/layout,
  expanded sections and other meaningful view state.
- [x] Resume old sessions from their complete persisted message/tool/media
  history and saved interface state. Do not substitute a summary for the
  visible conversation. Model-context compaction and visible history are
  separate concerns.
- [x] Identify legacy sessions with incomplete saved history and report actual
  availability honestly; never invent missing turns.
- [x] Verify running-update outside-click rejection, explicit cancellation,
  restart restoration and old-session full-history reconstruction with
  isolated fixtures plus live terminal interaction tests.
- [x] Commit and push verified changes, preserving the user's publishing work.

Additional reproduction: the browser dashboard loads the session transcript, but
resuming that same saved session in the TUI does not restore it. Trace both
loaders against the same saved session and verify full-history parity.

## Delivery and verification

- `d0832d2b`: versioned native presentation snapshots, all retained agent views,
  selected view, per-view scroll/disclosures, sidebar geometry, instrument
  expansions, tab overflow and focus. Expired media Stop actions are removed;
  unfinished saved media appears Interrupted, while saved artifacts still play.
- `c1ac73ea`: startup and `/resume` restore the available full visual history,
  including browser-origin structured conversations and later native
  continuation. Model context remains separately bounded. Update checkpoints
  preserve ordered open tabs, empty/unsent drafts and exact UTF-16 cursor,
  without reviving arbitrary work or overwriting pending-task/queue authority.
- `f56f935a`: running update modal rejects outside/Escape dismissal, explicit
  top-right Cancel belongs to its originating operation, and terminal status
  waits for child settlement/recovery. Shared update followers cannot cancel
  another client's operation. Full package update now uses the verified Quick
  package/daemon/indicator transaction; explicit maintenance commands remain.
- Native presentation: 47 tests/7 suites, plus 13 real VTE checks/12 PNGs with
  fresh frontend reconstruction from a disk checkpoint.
  [Receipt](../work-orders/evidence/native-interface-state-verification-20261016.json).
- Full-history resume: 52 tests/8 suites, including actual disk documents and
  production interactive closure execution.
- Root update checkpoint integration: 40 tests/2 suites, including ordered
  unsent tabs, active agent preservation and pending/queued authority isolation.
- Updater cancellation: 179 tests/14 suites, including actual harmless
  subprocess-group termination and native modal interaction.
  [Receipt](../work-orders/evidence/update-operation-cancellation-20261016.json).
- Counts overlap across receipts; do not add them as a unique total. Private
  CLI typechecks passed. Workspace dependency artifacts briefly disappeared
  during the user's concurrent publishing build; affected tests were rerun
  after those outputs returned. No shared build was performed by this task.
- Existing missing/truncated legacy history cannot be invented. Execution
  callbacks and external editor processes are not serialized; restored agent
  displays do not assert that a previous worker is still running.

- `a20ec6cf`: returned operation capability must match before Cancel is offered;
  a failed installer/recovery receipt remains a failure after a Stop request.
