You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add blocking PermissionRequest hook for external approval UIs #15311
The hooks system (UserPromptSubmit, SessionStart, Stop) is great for observability. What's missing is a blocking hook for tool approval - letting external processes approve/deny commands before execution.
Use case: Desktop overlays, IDE extensions, and CI/CD pipelines that want to handle approval flows outside the TUI.
We hit this building Masko Code (desktop overlay for Codex + Claude Code) - currently we can ingest Codex session logs but can't send approval responses back.
Proposed contract (similar to Claude Code's):
Hook fires when Codex needs approval for a command
Not a duplicate - #14882 and #14754 propose PreToolUse/PostToolUse for observability and code quality enforcement. This requests a blocking approval hook with bidirectional response (allow/deny/allow_persistent), which is different from deny-only PreToolUse (#15211). The key difference is that the hook script can respond with an approval decision, not just block execution.
Indexed this hook ticket in the umbrella tracker: #21753
Goal: collect the scattered Codex hook requests and bugs into one parity matrix for Full Claude Code Hook Parity (29+), while preserving this issue as the detailed thread for its specific behavior.
Activity
github-actions commentedon Mar 20, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
RousselPaul commentedon Mar 20, 2026
Not a duplicate - #14882 and #14754 propose PreToolUse/PostToolUse for observability and code quality enforcement. This requests a blocking approval hook with bidirectional response (allow/deny/allow_persistent), which is different from deny-only PreToolUse (#15211). The key difference is that the hook script can respond with an approval decision, not just block execution.
Add PermissionRequest hooks support (#17563)
abhinav-oai commentedon Apr 22, 2026
Added in #17563
https://developers.openai.com/codex/hooks#permissionrequest
Add PermissionRequest hooks support (openai#17563)
oxysoft commentedon May 8, 2026
Indexed this hook ticket in the umbrella tracker: #21753
Goal: collect the scattered Codex hook requests and bugs into one parity matrix for Full Claude Code Hook Parity (29+), while preserving this issue as the detailed thread for its specific behavior.
fix(codex-plugin): enforce mode blocks approval_required instead of s…
Add PermissionRequest hooks support (#17563)
Codex ASK: resolve via native blocking approval modal (spike)
Add PermissionRequest hooks support (openai#17563)
codex aws: reads auto-allow for used services, writes prompt; effort …
Add PermissionRequest hooks support (#17563)