Skip to content

Enforce non-interactive approval policy for Codex delegates - #38205

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

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

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Enforce non-interactive approval policy for Codex delegates

What changed

  • Require delegated Codex sessions to use the never approval policy and reject
    delegate creation with any prompt-capable policy.
  • Stop forwarding delegate approval and permission requests to the parent
    session. Approval-requiring commands and MCP tool calls are denied within the
    delegate instead.
  • Skip prompts for missing skill MCP dependencies when approvals are disabled.

Testing

Add coverage for review and Guardian delegates to verify that command
escalations, MCP approvals, and skill dependency installation do not prompt or
execute approval-gated actions.

## What changed

- Require delegated Codex sessions to use the `never` approval policy and reject
  delegate creation with any prompt-capable policy.
- Stop forwarding delegate approval and permission requests to the parent
  session. Approval-requiring commands and MCP tool calls are denied within the
  delegate instead.
- Skip prompts for missing skill MCP dependencies when approvals are disabled.

## Testing

Add coverage for review and Guardian delegates to verify that command
escalations, MCP approvals, and skill dependency installation do not prompt or
execute approval-gated actions.

GitOrigin-RevId: fee96a97624352cd25c904592ba7eebe2ae3fd63
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/fee96a97624352cd25c904592ba7eebe2ae3fd63 branch from bc1deda to 95aada1 Compare August 12, 2026 15:33
@copyberry
copyberry Bot merged commit 95aada1 into main Aug 12, 2026
28 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/fee96a97624352cd25c904592ba7eebe2ae3fd63 branch August 12, 2026 15:34
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 12, 2026

This branch was previously deployed

1 inactive deployment
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.

8 participants