Skip to content

Use ReviewDecision for MCP tool approvals - #38081

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/b8cc931dc61d4c794915145273ede82b9eb30fc8
Aug 11, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/b8cc931dc61d4c794915145273ede82b9eb30fc8

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

Use ReviewDecision for MCP tool approvals

What changed

  • Add ApprovedMcpPolicyAmendment to represent MCP approvals that persist across sessions.
  • Route MCP approval responses directly through the shared ReviewDecision type while preserving session-only approvals, rejection reasons, timeouts, and cancellations.
  • Reject the MCP-only policy decision if it reaches command, shell, network, or other tool approval paths.

Testing

  • Update MCP approval parsing, normalization, hook, and Guardian tests for the shared decisions.
  • Verify generic tool approvals reject MCP policy amendments.

## What changed

- Add `ApprovedMcpPolicyAmendment` to represent MCP approvals that persist across sessions.
- Route MCP approval responses directly through the shared `ReviewDecision` type while preserving session-only approvals, rejection reasons, timeouts, and cancellations.
- Reject the MCP-only policy decision if it reaches command, shell, network, or other tool approval paths.

## Testing

- Update MCP approval parsing, normalization, hook, and Guardian tests for the shared decisions.
- Verify generic tool approvals reject MCP policy amendments.

GitOrigin-RevId: b8cc931dc61d4c794915145273ede82b9eb30fc8
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/b8cc931dc61d4c794915145273ede82b9eb30fc8 branch from 740d38c to 67afc79 Compare August 11, 2026 22:26
@copyberry
copyberry Bot merged commit 67afc79 into main Aug 11, 2026
29 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/b8cc931dc61d4c794915145273ede82b9eb30fc8 branch August 11, 2026 22:27
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 11, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 67afc796 Deployed Aug 11, 2026 by garylesueur via Generate label suggestions #37302
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants