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
Hooks: an event when a Codex Desktop thread waits on the user, including Browser use prompts and async questions #62039
Codex App on macOS (ChatGPT.app 26.1103.60933, codex 0.167.0-alpha.3.2), with trusted command hooks in ~/.codex/hooks.json.
What feature would you like to see?
A documented hook event that fires when a thread starts waiting on the user, and one when it stops waiting, for every prompt the app shows. Today only approvals that go through PermissionRequest produce a signal. These cases produce none:
Browser use permission prompts. The app shows "Allow download from https://example.com/...?" with Always allow / Deny / Allow once. The turn waits inside a browser tool call (js on cua_repl). No hook runs, the rollout gets nothing until the call returns, and logs_2.sqlite has no entry for the prompt.
request_user_input_async questions. The call returns {"accepted":true} at once and the turn goes on, while the question stays open until the user answers in a later user message. No hook fires when the question is asked or answered. Feature request: expose a hook for request_user_input #40164 asks for a hook on the blocking request_user_input form; the async form also needs an event when the question is resolved, because the turn keeps running.
blocks_turn: true for approvals, false for async questions
on resolution: approved, denied, answered, dismissed or timed_out
The event should fire only when the prompt is actually shown to a person, after guardian or auto-review routing. Claude Code's Notification hook, with types for permission prompts and elicitation dialogs, covers similar ground.
Activity