Skip to content

[codex] fix repeated MCP approvals after always allow - #17822

Closed
efrazer-oai wants to merge 1 commit into
mainfrom
efrazer/codex/fix-mcp-approval-reprompt
Closed

efrazer-oai wants to merge 1 commit into
mainfrom
efrazer/codex/fix-mcp-approval-reprompt

Conversation

@efrazer-oai

@efrazer-oai efrazer-oai commented Apr 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This fixes the MCP approval regression behind #16911.

Codex now keeps approval_mode = "approve" as a real "always allow" path for normal user-reviewed sessions. If ARC returns ask-user for an already approved MCP tool call, we no longer turn that into another user approval prompt unless guardian review is enabled. Hard ARC blocks still block, and guardian-reviewed sessions still keep the extra review hop.

The change also adds a regression test that models the reported ARC reason string and verifies Approve mode does not hang waiting on another prompt.

Root Cause

In 0.117.x, MCP tools marked approve still ran through ARC. When ARC answered with ask-user, Codex reused that reason as a fresh approval prompt even though the tool had already been marked "Allow always". That made the persistent approval feel broken.

Impact

Users who select "Allow always" for an MCP tool should stop seeing repeated approval prompts from the ARC ask-user path in normal sessions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant