From 9ef141866bfdbfbd38e69a80dc5a4bf2a36c93ad Mon Sep 17 00:00:00 2001 From: Daniel Edrisian Date: Tue, 14 Oct 2025 14:50:25 -0700 Subject: [PATCH] Fix --- codex-rs/tui/src/app.rs | 2 +- codex-rs/tui/src/app_event.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/codex-rs/tui/src/app.rs b/codex-rs/tui/src/app.rs index f82e09710d..1ecc09afad 100644 --- a/codex-rs/tui/src/app.rs +++ b/codex-rs/tui/src/app.rs @@ -302,8 +302,8 @@ impl App { AppEvent::ExitRequest => { return Ok(false); } + #[cfg(not(debug_assertions))] AppEvent::RunUpdateAndExit(action) => { - // Record the requested update action and exit. self.pending_update_action = Some(action); return Ok(false); } diff --git a/codex-rs/tui/src/app_event.rs b/codex-rs/tui/src/app_event.rs index 7f705af806..de6008addf 100644 --- a/codex-rs/tui/src/app_event.rs +++ b/codex-rs/tui/src/app_event.rs @@ -90,5 +90,6 @@ pub(crate) enum AppEvent { FullScreenApprovalRequest(ApprovalRequest), /// User approved to update Codex; run the update and exit. + #[cfg(not(debug_assertions))] RunUpdateAndExit(UpdateAction), }