Skip to content

Hooks: an event when a Codex Desktop thread waits on the user, including Browser use prompts and async questions #62039

Open

Description

@lukasewecker

What variant of Codex are you using?

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:

  1. 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.
  2. 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.
  3. Approvals handled by the guardian or auto-review. PermissionRequest fires before routing, so it also fires when no person is needed (PermissionRequest hooks need a user-facing approval signal for passive notifications #28833).

A possible shape (names are only illustrative): AttentionRequested and AttentionResolved, with

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.

Related: #40164, #28833, #29008.

Activity

  1. added
    enhancement
    app
    hooks
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbrowserenhancementhooks

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions