mirror of
https://github.com/openai/codex.git
synced 2026-04-29 17:06:51 +00:00
Thread executor attachment through tool handlers
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user