codex: avoid remote sandbox type round-trip

Use the locally known sandbox type when constructing the remote unified-exec process in the fallback exec-env path. This removes the extra dependency on the exec-server reported sandbox type that reviewers called out.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
starr-openai
2026-04-07 11:41:08 -07:00
parent 2fb1b2de43
commit dd82e260ee

View File

@@ -613,8 +613,7 @@ impl UnifiedExecProcessManager {
})
.await
.map_err(|err| UnifiedExecError::create_process(err.to_string()))?;
let sandbox_type = started.sandbox_type;
return UnifiedExecProcess::from_remote_started(started, sandbox_type).await;
return UnifiedExecProcess::from_remote_started(started, env.sandbox).await;
}
let spawn_result = if tty {