From aa64ec90002de455a767425dfe3e204d09af69a6 Mon Sep 17 00:00:00 2001 From: starr-openai Date: Tue, 7 Apr 2026 13:52:52 -0700 Subject: [PATCH] codex: drop dead exec-server sandbox override hook Co-authored-by: Codex --- codex-rs/exec-server/src/local_process.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/codex-rs/exec-server/src/local_process.rs b/codex-rs/exec-server/src/local_process.rs index a57767cdfb..96f73b7f7a 100644 --- a/codex-rs/exec-server/src/local_process.rs +++ b/codex-rs/exec-server/src/local_process.rs @@ -3,7 +3,6 @@ use std::collections::VecDeque; use std::path::Path; use std::path::PathBuf; use std::sync::Arc; -use std::sync::OnceLock; use std::sync::atomic::AtomicBool; use std::sync::atomic::Ordering; use std::time::Duration; @@ -54,7 +53,6 @@ use crate::rpc::invalid_request; const RETAINED_OUTPUT_BYTES_PER_PROCESS: usize = 1024 * 1024; const NOTIFICATION_CHANNEL_CAPACITY: usize = 256; -static CONFIGURED_CODEX_LINUX_SANDBOX_EXE: OnceLock> = OnceLock::new(); #[cfg(test)] const EXITED_PROCESS_RETENTION: Duration = Duration::from_millis(25); #[cfg(not(test))] @@ -111,11 +109,6 @@ struct ExecServerRuntimeConfig { impl ExecServerRuntimeConfig { fn detect() -> Self { - if let Some(codex_linux_sandbox_exe) = CONFIGURED_CODEX_LINUX_SANDBOX_EXE.get().cloned() { - return Self { - codex_linux_sandbox_exe, - }; - } let env_path = std::env::var_os("CODEX_LINUX_SANDBOX_EXE").map(PathBuf::from); let sibling_path = std::env::current_exe().ok().and_then(|current_exe| { current_exe @@ -135,10 +128,6 @@ struct StartedProcess { wake_tx: watch::Sender, } -pub(crate) fn configure_codex_linux_sandbox_exe(codex_linux_sandbox_exe: Option) { - let _ = CONFIGURED_CODEX_LINUX_SANDBOX_EXE.set(codex_linux_sandbox_exe); -} - impl Default for LocalProcess { fn default() -> Self { let (outgoing_tx, mut outgoing_rx) =