Repository navigation
Description
What variant of Codex are you using?
Codex Desktop / app-server approval flow, and likely CLI/TUI wherever approvals_reviewer = "auto_review" or the legacy guardian_subagent reviewer is supported.
What feature would you like to see?
Add an optional human fallback path for auto-review approval decisions.
Today, approval routing appears to be binary:
approvals_reviewer = "user"routes approval requests directly to the client/user.approvals_reviewer = "auto_review"routes approval requests to the reviewer subagent, which can approve, deny, or abort.
That works well for reducing approval friction, but when auto-review denies or aborts a request, the user has no first-class way to manually approve the exact same action from the normal approval UI. The agent can explain the denial and ask the user in chat, then retry the action after explicit user approval, but that is a conversational workaround rather than a native approval flow.
Proposed behavior
Support a mode where auto-review is tried first, and only denials/aborts are escalated to the user for manual review.
Possible config shape:
approvals_reviewer = "auto_review"
auto_review_user_fallback = "on-deny" # or trueOr, if this fits better as a single enum:
approvals_reviewer = "auto_review_then_user"Suggested v1 behavior:
- If auto-review approves: proceed exactly as it does today.
- If auto-review denies or aborts: surface the original approval request to the user, along with the auto-review rationale/risk metadata.
- If the user approves: proceed with the exact originally reviewed action.
- If the user declines/cancels or does not respond: preserve today's denied/aborted behavior.
- Preserve any hard deny policy categories where user approval must not override the decision.
Why this would help
The auto-review feature is excellent as a low-friction safety layer. The rough edge is that a conservative or mistaken denial can become a dead end even when the user is present and willing to explicitly approve the exact action after seeing the risk.
The app-server protocol already distinguishes user approval requests from auto-review notifications, and auto-review exposes useful review status/risk/rationale metadata. A fallback flow could combine those pieces: keep the reviewer as the first pass, but let a human make the final call for actions that are not absolute policy denials.
Safety considerations
This should fail closed:
- If the fallback prompt cannot be shown, treat the request as denied.
- If the user response does not clearly approve the exact action, treat it as denied.
- If the auto-review denial represents an absolute policy block, do not offer the fallback.
- The fallback prompt should include the auto-review rationale so the user understands why the action was denied before choosing.
Related context
The app-server docs currently describe approvalsReviewer values of "user" and "auto_review" and describe auto-review status values including approved, denied, and aborted. They also document the existing client-driven approval request flow for command/file approvals. This request is for an optional bridge between those two paths.
Activity
github-actions commentedon May 9, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Tool call was cancelled because of safety risks: safety layer hallucinates reasons why a tool call is unsafe and blocks it without manual approval #21186Powered by Codex Action
aaroniscode commentedon May 9, 2026
Thanks for flagging these. I reviewed the suggested duplicates, and I think this issue is related but not a duplicate.
Tool call was cancelled because of safety risks: safety layer hallucinates reasons why a tool call is unsafe and blocks it without manual approval #21186 and MCP Toolbox for Databases read-only SQL call is blocked by safety guard after explicit approval (interactive mode) #20337 are bug reports about safety/tool-call blocking, especially around MCP calls and cases where explicit approval is not enough to proceed.codex-auto-reviewfailing on Microsoft Foundry/Azure OpenAI because the reviewer model is not deployable there, with manual approval fallback as one possible mitigation.This issue is a broader feature request for the approval routing behavior itself: when
approvals_reviewer = "auto_review"runs successfully but returnsdeniedoraborted, Codex should optionally surface the original approval request to the user for a final manual decision, including the auto-review rationale/risk metadata.So I see this as complementary to those issues rather than a duplicate. The common theme is “don’t turn a non-absolute automated block into a dead end,” but the requested product behavior here is specifically an optional
auto_review -> userfallback path.92645417d9e5c763259dbebc306e3e commentedon Jun 7, 2026
I want to add one more reason why this fallback is becoming increasingly important as model capabilities improve.
When auto-review denies an action, the model often does not naturally stop and wait for a better approval path. Instead, it may try to work around the denial by changing the plan, adding indirect steps, or introducing unnecessary scaffolding to avoid the blocked action. That can produce strange or overly complicated results, even when the user is present and would have explicitly approved the original action after seeing the risk.
A native
auto_review -> userfallback would make the safe path clearer: if the reviewer denies or aborts a non-absolute request, surface the exact original approval request to the user. If the user approves, continue with that action. If the user denies, stop. This avoids encouraging the agent to invent detours around the approval system.Generated with assistance from Codex CLI.
92645417d9e5c763259dbebc306e3e commentedon Jun 9, 2026
hoffmanr-cshs commentedon Jul 8, 2026
+1, this would be a very valuable feature for our org
In a perfect world, what I'm really imagining would be something like a fourth option for the auto-review agent to return. Instead of just
approved,denied, andaborted, adding something like anescalated. This could be treated the same way asdenieddepending on the user's config (or by necessity in headless envs, etc). It would naturally fail-closed by making sure existing policy prompts continued to counsel a "final"denieddecision, because theescalatedaction would be something new. This could be a "fuzzier", approval agent prompting cousin to the kind of rules changes proposed by #30598 and others.The scope of this change would be bigger than just "allow human review of denials"... but I think it could be worth it. In general, there's a real lack of "soft touch" options for enterprise admins, this could go a long way to filling that gap!
zhyuzhyu commentedon Oct 10, 2026
+1 - adding a concrete end-to-end data point from a current build, because this is exactly the dead end described.
Environment: Codex desktop app
26.1007.21159(bundled codex-cli0.162.0-alpha.17.2), macOS 26.6 (arm64),approvals_reviewer = "auto_review",approval_policy = "on-request", custom OpenAI-compatible provider.Sequence we hit:
AGENTS.md("never modify Codex internal files"). The denial text itself said the action could proceed if "the user explicitly approves the action after being informed of the risk"./approvein the desktop app, selected the denied item, and the same action went through on the next retry.Two takeaways for this proposal:
/approveexists and to find it in the UI; when they don't, a conservative or mistaken denial is a terminal dead end for that turn.auto_review, a blocking confirmation on denial is acceptable - the whole point of the mode is that the vast majority of requests auto-approve, so denials are rare by design. Showing the original request plus the reviewer's rationale/risk metadata, with approve-once / decline, matches the proposedauto_review_then_userbehavior and keeps hard-deny policy classes intact.One related nuance worth deciding on: in our case the reviewer treated the user's own standing
AGENTS.mdpreference as a class the user cannot override, even though the action was low-risk, local and reversible. Standing user notes should not silently remove the user's ability to explicitly approve an exception; hard-deny classes should come from policy, not from the user's own instruction file.For whatever it is worth: after
/approve, the retry went through normally with no re-review loop, so the narrow one-retry override semantics in the auto-review docs do work in desktop26.1007.21159.ray-bip commentedon Oct 13, 2026
I'd like to add another perspective in support of this request, specifically concerning efficiency during unattended Codex tasks.
I use a custom notification system that forwards Codex permission requests to my desktop and Android phone, allowing me to approve or deny commands remotely.
Recently, I deliberately let a permission request for a harmless
curlcommand expire. Codex waited the full 60 seconds, then passed the request to its automatic reviewer, which approved it in approximately three seconds.Codex spent a minute waiting for a decision it could apparently have made immediately.
I'd therefore suggest reversing the approval sequence:
PermissionRequesthooks.This is particularly relevant when running Codex unattended. I sometimes set my approval window to 30 or 45 minutes so I can leave my computer without worrying about missed requests. But under the current workflow, Codex could waste that entire window waiting for me before automatically approving the command anyway.
I'm not suggesting that security-related denials should become overridable. Human approval should only be an option where Codex considers it appropriate.
I understand that the current implementation evaluates
PermissionRequesthooks before automatic review, so this would require an architectural change rather than a configuration adjustment.My goal isn't to weaken approval requirements. It's to make human intervention the escalation path, rather than delaying an automatic decision Codex is already capable of making.
NonTrivialLiu commentedon Oct 22, 2026
The recovery contract needs to be visible in the product, not something users discover after repeatedly typing approval in chat.
The current AutoReview documentation describes
/approveas one exact-action retry that still passes through review: https://learn.chatgpt.com/docs/sandboxing/auto-review . Please document and test recovery availability by surface: CLI/TUI, desktop, dot cloud, and delegated tasks. Where a surface cannot offer it, show that limitation immediately instead of sending the user back into another consent loop.Suggested acceptance criteria: identify whether the stop is a review denial, reviewer infrastructure failure, or non-overridable policy; show the supported next action; preserve exact-action matching and invalidate approval when the target or effects change. A refusal that cannot be changed by more chat consent should not ask for that consent again.
This is a product-feedback proposal, not an additional reproduction. Making users guess which form of “yes” the product recognizes is unacceptable approval UX.