# Saved tool output reader

This addition extends the disabled `original_history` experiment. After opening the captured history with Page Up, press `t` to choose a saved tool output. The existing searchable picker lists outputs in capture order, with a tool name and ordinal. Reused tool-call IDs remain separate choices. Typing `t` in the normal editor keeps its existing behavior.

Selecting an output opens its first page. Page Up, Page Down, arrows and mouse-wheel navigation read the projected output; Home returns to the first page. Escape, End or ordinary editor input leaves the reader and restores the live view. Opening another output and cancelling leaves the captured history available immediately. Ctrl+S in the picker restores the editor and calls its existing queue handler once. This does not establish a delivery-time guarantee.

The reader applies the existing image projection and whole-output display sanitizer before paging. Existing credential redaction and terminal-control handling remain in force, including the sanitizer's current whitespace normalization. The live tool-card preview keeps its existing character and row caps. The detail reader can reach the full saved display projection beyond those caps; it does not recover external retained output files or expose unredacted bytes.

Pages wrap on grapheme boundaries using the real terminal-width function. Private cursors cannot be transferred between sources. The adapter loads pages lazily and limits its rendered cache to three pages, 4,096 rows and 8 MiB; each detail page has at most 128 rows. Invalid options are rejected before projection. These limits do not bound the full captured replay, sanitized output string, choice list or cursor index in memory.

Session, agent, owner, editor-panel generation and captured width fence the selection and reader. Cancellation restores only the owned picker; newer panels remain untouched. A stale asynchronous load cannot take over a newer panel. A current load failure restores history and reports one error. Reading adds no network destination, telemetry or persistent store.

The actual pinned bundle is tested as a library, with its real picker, editor replacement methods, scrollback and rendering components. Checks cover 12,000 saved result markers, both paging directions, redaction, repeated call IDs, searchable selection, Kitty keyboard input, cancellation, queue callback and delayed loads. The normal program entry point is removed only in the test copy. No production TUI, agent, bot or service is started.

This is an experimental implementation, not the complete PDF history/output work. Stable resize anchors, refresh from newer live events, backend paging, external full-output retrieval and copying remain open. The source runtime and packaged repair target differ; the final composed package still needs independent review and installation checks before publication.
