From dabddb82cea534c25c8041cb1e3927cea0b2f3be Mon Sep 17 00:00:00 2001 From: starr-openai Date: Tue, 7 Apr 2026 15:09:36 -0700 Subject: [PATCH] codex: avoid reading sandbox type back from remote start Co-authored-by: Codex --- codex-rs/core/src/unified_exec/process_manager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/core/src/unified_exec/process_manager.rs b/codex-rs/core/src/unified_exec/process_manager.rs index c2c9e42c5f..8341182e8b 100644 --- a/codex-rs/core/src/unified_exec/process_manager.rs +++ b/codex-rs/core/src/unified_exec/process_manager.rs @@ -651,12 +651,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 }