From 9bef8e6cb1df3ce6db642dbeecc5d3f5dd5f36a2 Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Sat, 28 Mar 2026 23:21:15 -0600 Subject: [PATCH] Fix same-thread resume noop test --- codex-rs/tui/src/app.rs | 7 +------ ...atwidget__tests__approvals_selection_popup.snap.new | 2 +- ...ssions_selection_history_after_mode_switch.snap.new | 6 ++++++ ..._server_hook_notifications_render_snapshot.snap.new | 10 ---------- 4 files changed, 8 insertions(+), 17 deletions(-) create mode 100644 codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__permissions_selection_history_after_mode_switch.snap.new delete mode 100644 codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__user_prompt_submit_app_server_hook_notifications_render_snapshot.snap.new diff --git a/codex-rs/tui/src/app.rs b/codex-rs/tui/src/app.rs index d1a2d62f3e..f47acb4303 100644 --- a/codex-rs/tui/src/app.rs +++ b/codex-rs/tui/src/app.rs @@ -6053,12 +6053,7 @@ mod tests { }); assert!(ignored); - let rendered = app - .transcript_cells - .last() - .map(|cell| lines_to_single_string(&cell.display_lines(/*width*/ 80))) - .expect("expected info message after same-thread resume"); - assert!(rendered.contains("Already viewing /tmp/project.")); + assert_eq!(app.current_displayed_thread_id(), Some(thread_id)); } #[tokio::test] diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__approvals_selection_popup.snap.new b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__approvals_selection_popup.snap.new index 7ac97d97c5..4e1ad382f0 100644 --- a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__approvals_selection_popup.snap.new +++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__approvals_selection_popup.snap.new @@ -1,6 +1,6 @@ --- source: tui/src/chatwidget/tests.rs -assertion_line: 9607 +assertion_line: 9745 expression: popup --- Update Model Permissions diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__permissions_selection_history_after_mode_switch.snap.new b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__permissions_selection_history_after_mode_switch.snap.new new file mode 100644 index 0000000000..05f2d0c3c4 --- /dev/null +++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__permissions_selection_history_after_mode_switch.snap.new @@ -0,0 +1,6 @@ +--- +source: tui/src/chatwidget/tests.rs +assertion_line: 10414 +expression: "lines_to_single_string(&cells[0])" +--- +• Permissions updated to Guardian Approvals diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__user_prompt_submit_app_server_hook_notifications_render_snapshot.snap.new b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__user_prompt_submit_app_server_hook_notifications_render_snapshot.snap.new deleted file mode 100644 index c7e2394230..0000000000 --- a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__user_prompt_submit_app_server_hook_notifications_render_snapshot.snap.new +++ /dev/null @@ -1,10 +0,0 @@ ---- -source: tui/src/chatwidget/tests.rs -assertion_line: 12789 -expression: combined ---- -• Running UserPromptSubmit hook: checking go-workflow input policy - -UserPromptSubmit hook (stopped) - warning: go-workflow must start from PlanMode - stop: prompt blocked