From bd0641a108fbf6f7d879d6ac65845388dbd51349 Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Sat, 7 Mar 2026 10:19:39 -0800 Subject: [PATCH] codex: stabilize guardian snapshots on linux --- ...opup_includes_guardian_approval@linux.snap | 19 +++++++++++++++++++ codex-rs/tui/src/chatwidget/tests.rs | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__experimental_popup_includes_guardian_approval@linux.snap diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__experimental_popup_includes_guardian_approval@linux.snap b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__experimental_popup_includes_guardian_approval@linux.snap new file mode 100644 index 0000000000..6f51ad7a9d --- /dev/null +++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__experimental_popup_includes_guardian_approval@linux.snap @@ -0,0 +1,19 @@ +--- +source: tui/src/chatwidget/tests.rs +expression: popup +--- + Experimental features + Toggle experimental features. Changes are saved to config.toml. + +› [ ] JavaScript REPL Enable a persistent Node-backed JavaScript REPL for interactive website debugging + and other inline JavaScript execution capabilities. Requires Node >= v22.22.0 + installed. + [ ] Bubblewrap sandbox Try the new linux sandbox based on bubblewrap. + [ ] Multi-agents Ask Codex to spawn multiple agents to parallelize the work and win in efficiency. + [ ] Apps Use a connected ChatGPT App using "$". Install Apps via /apps command. Restart + Codex after enabling. + [ ] Guardian approvals Let a guardian subagent review `on-request` approval prompts instead of showing + them to you, including sandbox escapes and blocked network access. + [ ] Prevent sleep while running Keep your computer awake while Codex is running a thread. + + Press space to select or enter to save for next conversation diff --git a/codex-rs/tui/src/chatwidget/tests.rs b/codex-rs/tui/src/chatwidget/tests.rs index 070de5cb26..87e9dde4a1 100644 --- a/codex-rs/tui/src/chatwidget/tests.rs +++ b/codex-rs/tui/src/chatwidget/tests.rs @@ -6949,6 +6949,11 @@ async fn experimental_popup_includes_guardian_approval() { chat.open_experimental_popup(); let popup = render_bottom_popup(&chat, 120); + #[cfg(target_os = "linux")] + insta::with_settings!({ snapshot_suffix => "linux" }, { + assert_snapshot!("experimental_popup_includes_guardian_approval", popup); + }); + #[cfg(not(target_os = "linux"))] assert_snapshot!("experimental_popup_includes_guardian_approval", popup); }