From 0299fe0429ddcd90cd417f670bd1d99c6ec7a6ee Mon Sep 17 00:00:00 2001 From: Felipe Coury Date: Sun, 24 May 2026 17:17:05 -0300 Subject: [PATCH] fix(tui): align transcript search integration tests --- codex-rs/tui/src/keymap.rs | 4 ++-- ...plicit_prompt_selection_anchors_prompt_in_upper_third.snap | 2 +- ...er_overlay__tests__transcript_overlay_search_snapshot.snap | 4 ++-- ..._transcript_scroll_selects_prompt_entering_from_below.snap | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/codex-rs/tui/src/keymap.rs b/codex-rs/tui/src/keymap.rs index e32cdff29c..9339da5529 100644 --- a/codex-rs/tui/src/keymap.rs +++ b/codex-rs/tui/src/keymap.rs @@ -2676,9 +2676,9 @@ mod tests { #[test] fn rejects_pager_bindings_that_collide_with_transcript_backtrack_keys() { let mut keymap = TuiKeymap::default(); - keymap.pager.close = Some(one("enter")); + keymap.pager.close = Some(one("esc")); - expect_conflict(&keymap, "close", "fixed.transcript_confirm_edit"); + expect_conflict(&keymap, "close", "fixed.transcript_edit_previous"); } #[test] diff --git a/codex-rs/tui/src/snapshots/codex_tui__pager_overlay__tests__explicit_prompt_selection_anchors_prompt_in_upper_third.snap b/codex-rs/tui/src/snapshots/codex_tui__pager_overlay__tests__explicit_prompt_selection_anchors_prompt_in_upper_third.snap index 0973446e71..afe581a7da 100644 --- a/codex-rs/tui/src/snapshots/codex_tui__pager_overlay__tests__explicit_prompt_selection_anchors_prompt_in_upper_third.snap +++ b/codex-rs/tui/src/snapshots/codex_tui__pager_overlay__tests__explicit_prompt_selection_anchors_prompt_in_upper_third.snap @@ -15,4 +15,4 @@ after-2 after-3 ────────────────────────────────────────────── 2 / 2 · 65% ─ ↑/↓ scroll ←/→ prompts pgup/pgdn page home/end jump - q ctrl + o ⌥ + r esc/← → enter/← prev + q ctrl + o ⌥ + r esc/← → enter/← prev / search diff --git a/codex-rs/tui/src/snapshots/codex_tui__pager_overlay__tests__transcript_overlay_search_snapshot.snap b/codex-rs/tui/src/snapshots/codex_tui__pager_overlay__tests__transcript_overlay_search_snapshot.snap index 02851418ae..6f48513b95 100644 --- a/codex-rs/tui/src/snapshots/codex_tui__pager_overlay__tests__transcript_overlay_search_snapshot.snap +++ b/codex-rs/tui/src/snapshots/codex_tui__pager_overlay__tests__transcript_overlay_search_snapshot.snap @@ -2,13 +2,13 @@ source: tui/src/pager_overlay.rs expression: term.backend() --- -" Transcript · 1 prompt · 100% ────────────────────" +" Transcript ──────────────────────────────────────" "Search: needle 1/1" "› find this prompt " " " " " "• assistant needle result " -"──────────────────────────────────────────────────" +"─────────────────────────────────── 1 / 1 · 100% ─" " ↑/↓ ←/→ pgup/pgdn home/end " " ctrl + t esc enter shift + n / " " " diff --git a/codex-rs/tui/src/snapshots/codex_tui__pager_overlay__tests__transcript_scroll_selects_prompt_entering_from_below.snap b/codex-rs/tui/src/snapshots/codex_tui__pager_overlay__tests__transcript_scroll_selects_prompt_entering_from_below.snap index b48bd5e7af..72a0accf30 100644 --- a/codex-rs/tui/src/snapshots/codex_tui__pager_overlay__tests__transcript_scroll_selects_prompt_entering_from_below.snap +++ b/codex-rs/tui/src/snapshots/codex_tui__pager_overlay__tests__transcript_scroll_selects_prompt_entering_from_below.snap @@ -12,4 +12,4 @@ answer-7 › second ────────────────────────────────────────────── 2 / 2 · 73% ─ ↑/↓ scroll ←/→ prompts pgup/pgdn page home/end jump - q ctrl + o ⌥ + r esc/← → enter/← prev + q ctrl + o ⌥ + r esc/← → enter/← prev / search