mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user