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
Subagents requiring approval to run command pop-up does not consistently display on initial ask #23664
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingsubagentIssues involving subagents or multi-agent features
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.
Create implementation plan with the superpowers skill.
Execute plan using the 'subagent-driven-development' from the superpowers skill
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.
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.
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
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.
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:
child agent requests command approval while the parent thread is open, and the root surface shows a pending approval;
popup render fails or is dismissed, but root/sidebar pending state remains visible;
two child agents request approvals at the same time, and the records cannot collide;
approving from the root surface resumes the correct child agent and command only;
stale or expired approval leaves a terminal state instead of making the run appear idle;
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.
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
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).
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 ownapply_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.
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingsubagentIssues involving subagents or multi-agent features
Activity
github-actions commentedon May 20, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Keesan12 commentedon May 20, 2026
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.
mcelhennyi commentedon Jun 1, 2026
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
rikki1126-dev commentedon Jun 13, 2026
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.
rpelevin commentedon Jun 13, 2026
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:
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:
That makes hidden approvals much easier to eliminate: visibility becomes a session-level contract, not a best-effort popup.
1Ghasthunter1 commentedon Jul 9, 2026
Plz fix this, super annoying
wangshang-one commentedon Nov 28, 2026
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
approval_policy = on-request,approvals_reviewer = user, sandboxworkspace-write,[windows] sandbox = "elevated"Steps
spawn_agenta sub-agent (gpt-6-luna,fork_turns: none) whose only task is oneapply_patchthat updates a file outside the writable roots (for exampleC:\Users\<user>\probe\out.txt).Observed (reproduced 3 times, in 2 separate sessions)
interrupt_agentit. The file is unchanged.~/.codex/logs_2.sqlite: the app-server getsthread/resumefor the sub-agent thread a few seconds after the spawn; there is noFileChangeRequestApprovalresponse and nooperation="patch_approval"submission on the sub-agent thread; the pending request is only cleared by the interrupt (serverRequest/resolvedat that moment).apply_patchoutside the writable roots shows a prompt; approving it logsFileChangeRequestApproval ... Accept,serverRequest/resolvedandoperation="patch_approval", and the write succeeds;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-lunasub-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.