diff --git a/codex-rs/core/src/unified_exec/process_manager.rs b/codex-rs/core/src/unified_exec/process_manager.rs index c3e6eef2cc..76845c6983 100644 --- a/codex-rs/core/src/unified_exec/process_manager.rs +++ b/codex-rs/core/src/unified_exec/process_manager.rs @@ -649,12 +649,12 @@ impl UnifiedExecProcessManager { params: codex_exec_server::ExecParams, environment: &codex_exec_server::Environment, ) -> Result { + let sandbox_type = params.sandbox.sandbox; let started = environment .get_exec_backend() .start(params) .await .map_err(|err| UnifiedExecError::create_process(err.to_string()))?; - let sandbox_type = started.sandbox_type; UnifiedExecProcess::from_remote_started(started, sandbox_type).await }