# Captured original history

This experimental foundation connects the captured resume snapshot to the original-history reader. It is off by default and uses the same resolved feature snapshot as the TUI, including configuration overrides. It does not fetch a new flag decision directly from the process environment.

When enabled, Page Up and upward scrolling open the captured conversation. Home reaches its oldest page. Reading does not change the live transcript or consume model context. Live rendering keeps updating offscreen; leaving the reader restores the current live view. Editor shortcuts, including Ctrl+S, retain their existing handler.

The binding owns a private deep copy of the captured replay. Session, agent, binding generation and terminal width are checked before source access. A replaced or disposed owner cannot install an obsolete reader. Failed input takeover releases the candidate; a failing old adapter does not strand the original reading view. Render requests are coalesced and discarded after their owner ends.

Page-cache limits bound rendered rows and bytes, not the entire retained snapshot. The full captured replay remains in memory. A terminal-width change currently invalidates the binding; automatic rewrapping with a stable anchor, refresh from newer live events, backend paging and external retained-output access remain open. The separate [saved tool output reader](ORIGINAL-TOOL-OUTPUT.md) extends this experiment beyond the live preview caps. This is not completion of the full history work or a release-ready feature.

Tests exercise the actual pinned bundle's snapshot lifecycle, keyboard, scrollback and component rendering with 10,001 records. Initial live rendering and hydration are isolated in that test. Separate source-reader checks visit every captured small tool result without writing to the live transcript. No production TUI, session, bot or service is started.

The source runtime differs from the packaged repair target. The source registry and artifact patch both register the flag; a source build alone does not prove the repaired package behavior. No new network destination, telemetry or persistent store is added.
