@@ -3,7 +3,6 @@ use std::collections::VecDeque;
33use std:: path:: Path ;
44use std:: path:: PathBuf ;
55use std:: sync:: Arc ;
6- use std:: sync:: OnceLock ;
76use std:: sync:: atomic:: AtomicBool ;
87use std:: sync:: atomic:: Ordering ;
98use std:: time:: Duration ;
@@ -54,7 +53,6 @@ use crate::rpc::invalid_request;
5453
5554const RETAINED_OUTPUT_BYTES_PER_PROCESS : usize = 1024 * 1024 ;
5655const NOTIFICATION_CHANNEL_CAPACITY : usize = 256 ;
57- static CONFIGURED_CODEX_LINUX_SANDBOX_EXE : OnceLock < Option < PathBuf > > = OnceLock :: new ( ) ;
5856#[ cfg( test) ]
5957const EXITED_PROCESS_RETENTION : Duration = Duration :: from_millis ( 25 ) ;
6058#[ cfg( not( test) ) ]
@@ -111,11 +109,6 @@ struct ExecServerRuntimeConfig {
111109
112110impl 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-
142131impl Default for LocalProcess {
143132 fn default ( ) -> Self {
144133 let ( outgoing_tx, mut outgoing_rx) =
0 commit comments