codex: pass attached executor capability to tools

This commit is contained in:
starr-openai
2026-04-01 18:25:11 -07:00
parent bd9c85eedf
commit f984e97d6e
14 changed files with 234 additions and 120 deletions

View File

@@ -207,7 +207,12 @@ async fn guardian_allows_unified_exec_additional_permissions_requests_past_polic
let turn_context = Arc::new(turn_context_raw);
let tracker = Arc::new(tokio::sync::Mutex::new(TurnDiffTracker::new()));
let handler = UnifiedExecHandler;
let handler = UnifiedExecHandler::new(
turn_context
.environment
.attached_executor()
.expect("test turn context should have an attached executor"),
);
let resp = handler
.handle(ToolInvocation {
session: Arc::clone(&session),