mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
Integrate the interactive transcript into the alternate-screen TUI (#46733)
## What changed - Render transcript history and live output above the composer when `features.transcript_v2` is enabled and alternate-screen rendering is available. Handle scrolling, selection, copying, links, and older-history pagination in the main view. - Add a clickable return-to-latest control with new-activity hints and temporary clipboard status. Let plain Enter return to latest when the composer is empty. - Reflow retained transcript content during drawing and preserve the launch-selected screen mode across configuration reloads and session transitions, including `--no-alt-screen` restrictions. - Enter the alternate screen with its first synchronized frame, and box CLI startup futures to reduce stack usage during session transitions. ## Testing Add regression coverage for transcript layout, input routing, follow controls, clipboard status, and screen-mode persistence. Add a PTY test for the first alternate-screen frame and clean exit, and extend session-transition coverage through the CLI dispatcher. GitOrigin-RevId: 1daf077826c7744b0f57399d10d159923dc87a97
This commit is contained in:
@@ -457,6 +457,10 @@ fn resize_keeps_the_logical_reading_anchor() {
|
||||
"final answer\n"
|
||||
);
|
||||
assert!(!view.is_following());
|
||||
assert!(!view.unseen_activity);
|
||||
cells.push(cell("new output"));
|
||||
render(&mut view, &cells, /*width*/ 20, /*height*/ 2);
|
||||
assert!(view.unseen_activity);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user