Skip to content

Commit b61a0d0

Browse files
starr-openaicodex
andcommitted
codex: drop dead exec-server sandbox override hook
Co-authored-by: Codex <noreply@openai.com>
1 parent ed55c3d commit b61a0d0

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

codex-rs/exec-server/src/local_process.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use std::collections::VecDeque;
33
use std::path::Path;
44
use std::path::PathBuf;
55
use std::sync::Arc;
6-
use std::sync::OnceLock;
76
use std::sync::atomic::AtomicBool;
87
use std::sync::atomic::Ordering;
98
use std::time::Duration;
@@ -54,7 +53,6 @@ use crate::rpc::invalid_request;
5453

5554
const RETAINED_OUTPUT_BYTES_PER_PROCESS: usize = 1024 * 1024;
5655
const NOTIFICATION_CHANNEL_CAPACITY: usize = 256;
57-
static CONFIGURED_CODEX_LINUX_SANDBOX_EXE: OnceLock<Option<PathBuf>> = OnceLock::new();
5856
#[cfg(test)]
5957
const EXITED_PROCESS_RETENTION: Duration = Duration::from_millis(25);
6058
#[cfg(not(test))]
@@ -111,11 +109,6 @@ struct ExecServerRuntimeConfig {
111109

112110
impl ExecServerRuntimeConfig {
113111
fn detect() -> Self {
114-
if let Some(codex_linux_sandbox_exe) = CONFIGURED_CODEX_LINUX_SANDBOX_EXE.get().cloned() {
115-
return Self {
116-
codex_linux_sandbox_exe,
117-
};
118-
}
119112
let env_path = std::env::var_os("CODEX_LINUX_SANDBOX_EXE").map(PathBuf::from);
120113
let sibling_path = std::env::current_exe().ok().and_then(|current_exe| {
121114
current_exe
@@ -135,10 +128,6 @@ struct StartedProcess {
135128
wake_tx: watch::Sender<u64>,
136129
}
137130

138-
pub(crate) fn configure_codex_linux_sandbox_exe(codex_linux_sandbox_exe: Option<PathBuf>) {
139-
let _ = CONFIGURED_CODEX_LINUX_SANDBOX_EXE.set(codex_linux_sandbox_exe);
140-
}
141-
142131
impl Default for LocalProcess {
143132
fn default() -> Self {
144133
let (outgoing_tx, mut outgoing_rx) =

0 commit comments

Comments
 (0)