# Session media, code and working-state presentation

Requested 2026-10-16 after media generation/store unification.

- [x] Trace browser live/restored session renderer and existing receipt-validated media acquisition.
- [x] Trace native selected-view activity, action tree, semantic progress and terminal receipts.
- [x] Render responsive image/video/audio previews in browser session messages/tool actions using project-scoped authenticated HEAD/If-Match/blob acquisition.
- [x] Preserve explicit paths and validated Open/Download controls; do not activate unvalidated filesystem or external links.
- [x] Scope syntax token styles to code blocks, fix language aliases/fences and prevent style bleed.
- [x] Share live/restored action rendering; one parent-turn operation with truthful current phase, measured progress, elapsed time and expandable diagnostics.
- [x] Match selected child/main activity in the TUI and update stable action nodes across behavior chains without transcript spam.
- [x] Reject stale/out-of-order receipts, retain daemon Stop ownership and avoid invented progress percentages.
- [x] Run mocked transport suites, actual browser viewport fixtures, native operation fixtures and typechecks.
- [x] Commit/push scoped verified source and record exact evidence without touching publishing outputs.

## Progress

- `78e8fd2f`: native working actions retained in parent-turn groups; selected
  agent owns its footer state. Results/diagnostics collapse, JSON keeps exact
  values, and one active-only timer replaces only changed groups. Unknown
  receipts say Returned; blocked/failed/interrupted states remain distinct.
- Native verification: 45 tests/8 suites, private CLI typecheck, 14 actual VTE
  checks/14 PNGs. [Receipt](../work-orders/evidence/native-working-state-verification-20261016.json).
- `a3a03fe6`: source processing progress carries the owning action ID; 13
  isolated runner tests passed using mocked inference.
- `0bb6604c`: browser session renderer shares live/restored parent-turn modules with
  responsive authenticated image/video/audio previews, scoped syntax, lossless
  JSON display and exact-original Copy. Explicit artifact sets stay authoritative
  through producer, persistence and both frontends; old paths cannot revive a
  rejected receipt. Local cached history uses the same renderer. Project
  hydration rejects stale responses and preserves an explicit newer session
  selection or New action. Browser verification: 105 tests/7 suites, private
  CLI no-emit, and 48 actual Chromium fixture checks across 320/768/1440 in
  both themes passed. [Work order](../work-orders/session-transcript-browser-20261016.md)
  and [live report](../work-orders/evidence/session-transcript-browser-20261016.json).
- `43bd1efb`: structured CLI/SSE/persisted events retain exact action IDs, source phases,
  measured progress and complete redacted results. Model context compaction now
  returns a separate projection without erasing visible session history.
  Backend verification: 88 tests/9 files, including the mandatory transport
  gates, genuine scratch-file reading and child-process framing; CLI no-emit
  passed. [Receipt](../work-orders/evidence/tool-event-presentation-verification-20261016.json).
- `fe064023`: canonical browser-to-native restore supports intentional project aliases,
  validated media blocks and lossless JSON. Native action details use the full
  operator result independently of clipped model content. Follow-up verification:
  21 tests/3 suites and private CLI no-emit passed. [Receipt](../work-orders/evidence/session-native-restore-followup-20261016.json).
- No installed daemon, publishing output, model inference or GPU workload is
  modified by this source delivery. Fixture checks are not a live-model claim.

## Delivery

Scoped verified commits are delivered on `origin/main`. Counts above overlap
and must not be summed as a unique workspace total. Chromium uses actual
production source with controlled session/media/working-state fixtures; no
real inference or installed-client rollout is claimed. Publishing outputs and
unrelated changes were preserved.
