From 3b4c2e3c07dd3f683ee6753abe110e51e2a0144d Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Sun, 19 Apr 2026 18:04:15 -0700 Subject: [PATCH] Shorten TUI transcript truncation hint --- codex-rs/tui/src/exec_cell/render.rs | 8 ++++---- ..._tests__stderr_tail_more_than_five_lines_snapshot.snap | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/codex-rs/tui/src/exec_cell/render.rs b/codex-rs/tui/src/exec_cell/render.rs index 423217a6f6..29f02ca3a0 100644 --- a/codex-rs/tui/src/exec_cell/render.rs +++ b/codex-rs/tui/src/exec_cell/render.rs @@ -29,7 +29,7 @@ use unicode_width::UnicodeWidthStr; pub(crate) const TOOL_CALL_MAX_LINES: usize = 5; const USER_SHELL_TOOL_CALL_MAX_LINES: usize = 50; const MAX_INTERACTION_PREVIEW_CHARS: usize = 80; -const TRANSCRIPT_HINT: &str = "ctrl + t to view transcript"; +const TRANSCRIPT_HINT: &str = "ctrl + t to view"; pub(crate) struct OutputLinesParams { pub(crate) line_limit: usize, @@ -646,7 +646,7 @@ impl ExecCell { .max(1) } - /// Builds an output ellipsis line (`… +N lines (ctrl + t to view transcript)`) + /// Builds an output ellipsis line (`… +N lines (ctrl + t to view)`) /// with an optional leading prefix so the ellipsis aligns with the output gutter. fn output_ellipsis_line_with_prefix( omitted: usize, @@ -852,7 +852,7 @@ mod tests { assert!( rendered .iter() - .any(|line| line.contains("… +6 lines (ctrl + t to view transcript)")), + .any(|line| line.contains("… +6 lines (ctrl + t to view)")), "expected omitted hint to count hidden lines (not wrapped rows), got: {rendered:?}" ); } @@ -882,7 +882,7 @@ mod tests { assert!( rendered .iter() - .any(|line| line.contains("… +3 lines (ctrl + t to view transcript)")), + .any(|line| line.contains("… +3 lines (ctrl + t to view)")), "expected logical truncation to include transcript hint, got: {rendered:?}" ); } diff --git a/codex-rs/tui/src/snapshots/codex_tui__history_cell__tests__stderr_tail_more_than_five_lines_snapshot.snap b/codex-rs/tui/src/snapshots/codex_tui__history_cell__tests__stderr_tail_more_than_five_lines_snapshot.snap index 5ac16217c6..23cffd377e 100644 --- a/codex-rs/tui/src/snapshots/codex_tui__history_cell__tests__stderr_tail_more_than_five_lines_snapshot.snap +++ b/codex-rs/tui/src/snapshots/codex_tui__history_cell__tests__stderr_tail_more_than_five_lines_snapshot.snap @@ -5,6 +5,6 @@ expression: rendered • Ran seq 1 10 1>&2 && false └ 1 2 - … +6 lines (ctrl + t to view transcript) + … +6 lines (ctrl + t to view) 9 10