Harden paginated history handling in the TUI (#36951)

## What changed

- Keep paginated resume, transcript, and fork workflows on bounded turn and item page requests, while preserving the legacy full-history fallback.
- Refill underfilled terminal scrollback from older pages and show a transcript shortcut when earlier history is unloaded or truncated by the row cap.
- Preserve a successfully created fork if its initial history hydration fails, keep side forks bounded, and retain the correct history boundary for nested forks and subagents.

## Testing

- Add coverage for scrollback refill and truncation notices, bounded paginated requests, fork hydration failures, nested forks, and inherited subagent history filtering.

GitOrigin-RevId: 10ba952ffb2f69717fbc71aa03cac7685f7dcf78
This commit is contained in:
Felipe Coury authored and copyberry committed 2026-08-04 19:18:03 +00:00
1 parent dbcd837c20
commit 449f099f1c
11 files changed
+894 -22

No files matched your search

+1
View File
@@ -506,6 +506,7 @@ struct SessionSummary {
struct InitialHistoryReplayBuffer {
retained_lines: VecDeque<crate::terminal_hyperlinks::HyperlinkLine>,
render_from_transcript_tail: bool,
was_truncated: bool,
}
pub(crate) struct App {