Skip to content

Apply session app overrides during MCP config refresh - #60730

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/3fa36744a9ccd9e735e4cda7f061ccff1cf2a269
Nov 11, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Apply session app overrides during MCP config refresh

Why

MCP config refreshes previously retained session app overrides, leaving connector approval changes unapplied in existing sessions.

What changed

  • Refresh explicit session apps overrides alongside plugins, allowing updated link approval settings to take effect on the next turn.
  • Preserve overrides for omitted sections and restore inheritance when a section is an empty table.
  • Validate app overrides and the effective app configuration, rejecting refreshes that expose invalid inherited settings.

Testing

Add coverage for independent and combined app/plugin updates, clearing overrides, and rejecting invalid inherited app settings. Add an integration test verifying that changing a link's approval mode from approve to prompt requests approval before executing the next turn's tool call.

## Why

MCP config refreshes previously retained session app overrides, leaving connector approval changes unapplied in existing sessions.

## What changed

- Refresh explicit session `apps` overrides alongside `plugins`, allowing updated link approval settings to take effect on the next turn.
- Preserve overrides for omitted sections and restore inheritance when a section is an empty table.
- Validate app overrides and the effective app configuration, rejecting refreshes that expose invalid inherited settings.

## Testing

Add coverage for independent and combined app/plugin updates, clearing overrides, and rejecting invalid inherited app settings. Add an integration test verifying that changing a link's approval mode from `approve` to `prompt` requests approval before executing the next turn's tool call.

GitOrigin-RevId: 3fa36744a9ccd9e735e4cda7f061ccff1cf2a269
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/3fa36744a9ccd9e735e4cda7f061ccff1cf2a269 branch from 604387f to 36ed546 Compare November 11, 2026 06:17
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-11T06:17:23.805121Z 604387f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit 36ed546 into main Nov 11, 2026
8 of 23 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/3fa36744a9ccd9e735e4cda7f061ccff1cf2a269 branch November 11, 2026 06:17
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 11, 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.

2 participants