Thread executor attachment through tool handlers

This commit is contained in:
starr-openai
2026-04-01 20:46:18 -07:00
parent adbec5ab37
commit b79227baf3
23 changed files with 563 additions and 174 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
.executor_attachment()
.expect("test environment has an executor attachment"),
);
let resp = handler
.handle(ToolInvocation {
session: Arc::clone(&session),