Skip to content

Subagents requiring approval to run command pop-up does not consistently display on initial ask #23664

Open

Description

@justinp04

What version of the Codex App are you using (From “About Codex” dialog)?

26.513.31313

What subscription do you have?

Pro

What platform is your computer?

Darwin 25.3.0 arm64 arm

What issue are you seeing?

The behavior is inconsistent, when I run subagent driven development, if it requires approval to run a command, sometimes it prompts me and sometimes I have to check manually by opening the subagent's thread.

What steps can reproduce the bug?

Feedback ID: 019e44a7-bffe-72d2-8fcc-3df799855337

I am unsure what exactly causes this but on my most recent run.

  1. Create implementation plan with the superpowers skill.
  2. Execute plan using the 'subagent-driven-development' from the superpowers skill
  3. Someimtes a subagent will require approval but you won't know unless you open the subagent's thread.

What is the expected behavior?

All instances where a subagent is asking for approval, will have the pop-up display without needing to open the thread the subagent is on.

Additional information

No response

Activity

  1. added
    app
    on May 20, 2026
  2. added
    bug
    subagent
    sandbox
    on May 20, 2026
  3. github-actions commented on May 20, 2026

    @github-actions
    Contributor
  4. Keesan12 commented on May 20, 2026

    @Keesan12

    This feels like the app is treating subagent approval as thread-local UI state instead of root-session state.

    The thing I would want persisted is not only "show popup" but a root-visible pending-approval record with child id, requested capability, age, and whether the request blocks only the child or the full run. Once that exists, the popup becomes just one renderer of the same state, and sidebars, notifications, and fleet-style views can all stay honest.

    Without a shared pending-approval record, hidden-child approvals are hard to eliminate because every surface has to rediscover them separately.

  5. mcelhennyi commented on Jun 1, 2026

    @mcelhennyi

    This is super annoying, specially when I run multiple projects at once each with 2-6 agents running. Constantly wasting time on requests that never surface until I click into each agent to check

  6. rikki1126-dev commented on Jun 13, 2026

    @rikki1126-dev

    I’m seeing what appears to be the same behavior: when a main agent thread is open and a subagent requests command approval, the approval UI does not reliably appear. In practice, the workflow can look idle/stalled until I manually open the subagent’s thread and notice the pending approval there.

    Expected: approval prompts from subagents should surface reliably without requiring the user to manually inspect each subagent thread.

    I don’t have the exact Codex app version/platform details in this relayed report, but the behavior matches the issue description closely.

  7. rpelevin commented on Jun 13, 2026

    @rpelevin

    I would frame this as a root-session visibility problem, not just a popup reliability problem.

    A subagent can own the proposed command, but the parent session owns the user's attention. If the request only renders inside the child thread, the run can look idle while authority is actually blocked somewhere else.

    The object I would want persisted is a root-visible pending approval record with:

    • root session id;
    • child agent id;
    • child thread id;
    • command or tool summary;
    • requested capability;
    • created_at and age;
    • blocking scope, such as child-only or whole-run;
    • terminal state: pending, approved, denied, expired, or cancelled;
    • renderer acknowledgements for popup, sidebar, badge, mobile, and desktop surfaces.

    Then the popup is only one projection of the same state. The root thread, sidebar, dock badge, mobile view, and child thread should all read from that record. If the popup renderer misses the first attempt, the request is still visible and actionable elsewhere.

    Regression cases I would pin:

    1. child agent requests command approval while the parent thread is open, and the root surface shows a pending approval;
    2. popup render fails or is dismissed, but root/sidebar pending state remains visible;
    3. two child agents request approvals at the same time, and the records cannot collide;
    4. approving from the root surface resumes the correct child agent and command only;
    5. stale or expired approval leaves a terminal state instead of making the run appear idle;
    6. mobile or desktop reconnect rehydrates pending approval state before showing the run as idle.

    That makes hidden approvals much easier to eliminate: visibility becomes a session-level contract, not a best-effort popup.

  8. 1Ghasthunter1 commented on Jul 9, 2026

    @1Ghasthunter1

    Plz fix this, super annoying

  9. wangshang-one commented on Nov 28, 2026

    @wangshang-one

    Same root problem in the VS Code extension on Windows, with a harder failure: the sub-agent's approval prompt is not shown anywhere, so the sub-agent waits forever.

    Environment

    • Windows 11, Codex VS Code extension 26.1120.50957 (runtime 0.171.0-alpha.13.2), ChatGPT Pro
    • approval_policy = on-request, approvals_reviewer = user, sandbox workspace-write, [windows] sandbox = "elevated"

    Steps

    1. In the extension, ask the main agent (GPT-6.2 Sol) to spawn_agent a sub-agent (gpt-6-luna, fork_turns: none) whose only task is one apply_patch that updates a file outside the writable roots (for example C:\Users\<user>\probe\out.txt).
    2. Wait.

    Observed (reproduced 3 times, in 2 separate sessions)

    • No approval prompt appears in the main conversation, and the panel offers no way to open the sub-agent's thread, so there is nothing to approve.
    • The sub-agent's code-mode cell never returns; after 2 to 6 minutes the main agent has to interrupt_agent it. The file is unchanged.
    • In ~/.codex/logs_2.sqlite: the app-server gets thread/resume for the sub-agent thread a few seconds after the spawn; there is no FileChangeRequestApproval response and no operation="patch_approval" submission on the sub-agent thread; the pending request is only cleared by the interrupt (serverRequest/resolved at that moment).
    • Control cases in the same sessions:
      • the main agent's own apply_patch outside the writable roots shows a prompt; approving it logs FileChangeRequestApproval ... Accept, serverRequest/resolved and operation="patch_approval", and the write succeeds;
      • a sub-agent writing inside a writable root needs no approval and succeeds;
      • with approvals_reviewer = auto_review, the same sub-agent write is approved by the automatic reviewer and succeeds in about 5 s.

    Expected
    A sub-agent's approval request is shown in the main conversation (or the sub-agent's thread can be opened from it), or the request times out or is declined so the sub-agent can report back instead of hanging.

    Only gpt-6-luna sub-agents were tested. A side note: the code-mode result is held while an approval is pending (by design, as far as I can tell), so the missing prompt turns into an indefinite hang rather than a visible "waiting for approval" state.

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

    appbugsandboxsubagent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions