refactor: inline sandbox type lookup in process_exec_tool_call

This commit is contained in:
Michael Bolin
2025-11-21 14:34:32 -08:00
parent 3ea33a0616
commit 69f6261b12
5 changed files with 8 additions and 18 deletions
@@ -8,9 +8,7 @@ use std::time::Duration;
use anyhow::Context as _;
use path_absolutize::Absolutize as _;
use codex_core::exec::SandboxType;
use codex_core::exec::process_exec_tool_call;
use codex_core::get_platform_sandbox;
use codex_core::protocol::SandboxPolicy;
use tokio::process::Command;
use tokio_util::sync::CancellationToken;
@@ -96,7 +94,6 @@ impl EscalateServer {
justification: None,
arg0: None,
},
get_platform_sandbox().unwrap_or(SandboxType::None),
&sandbox_policy,
&sandbox_cwd,
&None,