From 6182298401091f08cb95c15b8ecbbcdd481498bc Mon Sep 17 00:00:00 2001 From: pakrym-oai Date: Mon, 23 Mar 2026 08:50:12 -0700 Subject: [PATCH] Fix Linux sandbox helper signature --- codex-rs/cli/src/debug_sandbox.rs | 9 +++------ codex-rs/core/src/landlock.rs | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/codex-rs/cli/src/debug_sandbox.rs b/codex-rs/cli/src/debug_sandbox.rs index ea0e494705..f7bab45231 100644 --- a/codex-rs/cli/src/debug_sandbox.rs +++ b/codex-rs/cli/src/debug_sandbox.rs @@ -470,12 +470,9 @@ mod tests { ) .await?; - let config = load_debug_sandbox_config_with_codex_home( - Vec::new(), - false, - Some(codex_home_path), - ) - .await?; + let config = + load_debug_sandbox_config_with_codex_home(Vec::new(), false, Some(codex_home_path)) + .await?; assert!(config_uses_permission_profiles(&config)); assert!( diff --git a/codex-rs/core/src/landlock.rs b/codex-rs/core/src/landlock.rs index 07a912dc62..14e9c13fdc 100644 --- a/codex-rs/core/src/landlock.rs +++ b/codex-rs/core/src/landlock.rs @@ -19,7 +19,7 @@ use tokio::process::Child; /// split filesystem/network policies as JSON so the helper can migrate /// incrementally without breaking older call sites. #[allow(clippy::too_many_arguments)] -pub async fn spawn_command_under_linux_sandbox

( +pub async fn spawn_command_under_linux_sandbox( command: Vec, command_cwd: PathBuf, sandbox_policy: &SandboxPolicy,