mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Paginate TUI transcript history (#36950)
## What changed - Load older transcript items in bounded pages as users scroll upward, and let `Home` continue fetching until the start of the thread. - Show loading, partial-history, retry, and complete states in the transcript overlay while preserving the visible scroll position as pages are prepended. - Use paginated history for resume, fork, retry, and prompt-edit flows, while falling back to legacy history requests when the app server does not support pagination. ## Testing - Cover multi-page transcript loading, page-boundary prompt reconciliation, legacy-server fallback, bounded retry history, and transcript history-state rendering. GitOrigin-RevId: cc6b764bc4185d079b2f68bedf235c1d08278dfb
This commit is contained in:
1 parent
3b8d22ec2c
commit
dbcd837c20
16 files changed
+1019
-169
No files matched your search
@@ -31,3 +31,14 @@ fn retry_rejects_a_stale_or_in_progress_turn() {
|
||||
assert!(safety_retry_fork_point(&in_progress, "missing").is_err());
|
||||
assert!(safety_retry_fork_point(&previous_in_progress, "turn-2").is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn retry_accepts_a_targeted_latest_turn_and_its_completed_predecessor() {
|
||||
let turns = vec![
|
||||
turn("turn-1", TurnStatus::Completed),
|
||||
turn("turn-2", TurnStatus::Interrupted),
|
||||
];
|
||||
|
||||
assert!(safety_retry_fork_point(&turns, "turn-2").is_ok());
|
||||
assert!(safety_retry_fork_point(&turns[1..], "turn-2").is_ok());
|
||||
}
|
||||
Reference in new issue
Block a user