mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
codex: avoid reading sandbox type back from remote start
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -649,12 +649,12 @@ impl UnifiedExecProcessManager {
|
||||
params: codex_exec_server::ExecParams,
|
||||
environment: &codex_exec_server::Environment,
|
||||
) -> Result<UnifiedExecProcess, UnifiedExecError> {
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user