From ae0f1133bd75926ae0f6fdf1410db57cf7d0769b Mon Sep 17 00:00:00 2001 From: viyatb-oai Date: Tue, 5 May 2026 11:22:04 -0700 Subject: [PATCH] fix: repair sandbox audit CI Co-authored-by: Codex --- codex-rs/core/src/tools/runtimes/unified_exec.rs | 5 ++++- codex-rs/core/src/unified_exec/process_manager.rs | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/codex-rs/core/src/tools/runtimes/unified_exec.rs b/codex-rs/core/src/tools/runtimes/unified_exec.rs index bd186fa10a..bbb6dc8df5 100644 --- a/codex-rs/core/src/tools/runtimes/unified_exec.rs +++ b/codex-rs/core/src/tools/runtimes/unified_exec.rs @@ -519,7 +519,10 @@ mod tests { #[test] fn unified_exec_options_combines_default_timeout_with_network_denial_cancellation() { let cancellation = CancellationToken::new(); - let options = unified_exec_options(Some(cancellation.clone()), None); + let options = unified_exec_options( + Some(cancellation.clone()), + /*sandbox_violation_context*/ None, + ); assert_eq!(options.capture_policy, ExecCapturePolicy::ShellTool); match options.expiration { diff --git a/codex-rs/core/src/unified_exec/process_manager.rs b/codex-rs/core/src/unified_exec/process_manager.rs index 75e7aded01..f70ee65e7d 100644 --- a/codex-rs/core/src/unified_exec/process_manager.rs +++ b/codex-rs/core/src/unified_exec/process_manager.rs @@ -1039,6 +1039,7 @@ impl UnifiedExecProcessManager { return UnifiedExecProcess::from_spawned( spawned.map_err(|err| UnifiedExecError::create_process(err.to_string()))?, request.sandbox, + request.sandbox_violation_context.clone(), spawn_lifecycle, ) .await;