mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Centralize tool approval handling in Session (#37128)
## What changed - Move permission hooks, reviewer routing, approval caching, and user approval requests into the session-level approval flow. - Have shell, unified exec, and apply-patch runtimes describe requests as `ApprovalAction` values, which now provide their hook payloads and cache keys. - Pass a shared `ApprovalContext` through initial and retry approvals so telemetry and approval reasons are handled consistently. GitOrigin-RevId: 5bfa61daa97e4427f3a648f6cf9d1c27f1551942
This commit is contained in:
1 parent
9d00bb01c0
commit
778b869829
10 files changed
+414
-451
No files matched your search
@@ -556,7 +556,7 @@ async fn execute_verified_patch(
|
||||
turn_environment,
|
||||
action: apply.action,
|
||||
file_paths,
|
||||
changes,
|
||||
changes: Arc::new(changes),
|
||||
exec_approval_requirement: apply.exec_approval_requirement,
|
||||
additional_permissions: effective_additional_permissions.additional_permissions,
|
||||
permissions_preapproved: effective_additional_permissions.permissions_preapproved,
|
||||
|
||||
Reference in new issue
Block a user