Commit Graph

12 Commits

Author SHA1 Message Date
Abhinav Vedmala
f7d4874a0e Refactor permission request updates 2026-04-14 15:38:52 -07:00
Abhinav Vedmala
91887885ee Add permission suggestions to PermissionRequest hooks
Expose top-level permission suggestions in PermissionRequest hook inputs and build them from source approval context so deferred unified-exec network retries carry the same suggestion data as immediate approval paths.

Co-authored-by: Codex <noreply@openai.com>
2026-04-13 19:39:08 -07:00
Abhinav Vedmala
32e26c49bc Simplify permission request hook plumbing
Co-authored-by: Codex <noreply@openai.com>
2026-04-13 16:52:52 -07:00
Abhinav Vedmala
04294e0038 Trim PermissionRequest hook inputs
Keep PermissionRequest hook payloads focused on tool identity and the actionable command details. For Bash and exec_command hooks, plumb request justification into tool_input.description when present. For NetworkAccess hooks, pass the originating command and a network-access <domain> description instead of the old approval context envelope.

Co-authored-by: Codex <noreply@openai.com>
2026-04-13 16:24:45 -07:00
Abhinav Vedmala
2563661366 Restore permission request attempt context
Co-authored-by: Codex <noreply@openai.com>
2026-04-13 14:18:16 -07:00
Abhinav Vedmala
20e0ffabef Simplify permission request hook context
Co-authored-by: Codex <noreply@openai.com>
2026-04-13 13:53:44 -07:00
Abhinav Vedmala
8e7a23c48c Reshape permission request hook payload
Co-authored-by: Codex <noreply@openai.com>
2026-04-13 13:45:41 -07:00
Abhinav Vedmala
37e9f255ed Run permission hooks for network approvals
Co-authored-by: Codex <noreply@openai.com>
2026-04-13 13:17:26 -07:00
Abhinav Vedmala
1bf5222fbb Clean up permission request approval flow
Replace stringly approval-attempt plumbing with a shared enum, centralize approval decision handling in the orchestrator, and document plus test the reserved PermissionRequest output fields.

Co-authored-by: Codex <noreply@openai.com>
2026-04-12 14:00:54 -07:00
Abhinav Vedmala
f6517fa6a2 Fix permission request hook precedence and retry context 2026-04-12 13:17:13 -07:00
Abhinav Vedmala
99458d2929 Include approval context in PermissionRequest hooks
Co-authored-by: Codex <noreply@openai.com>
2026-04-12 12:40:24 -07:00
Abhinav Vedmala
528bdb488a Add Bash PermissionRequest hooks
Co-authored-by: Codex <noreply@openai.com>
2026-04-12 12:27:11 -07:00