Skip to content

Refresh MCP runtimes when session auth changes - #35146

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/219c2f7a157f53b5467116e18bfe70a8c3dca695
Jul 24, 2026
Merged

Refresh MCP runtimes when session auth changes#35146
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/219c2f7a157f53b5467116e18bfe70a8c3dca695

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 24, 2026

Copy link
Copy Markdown

Refresh MCP runtimes when session auth changes

What changed

  • Track the authentication state used by each published MCP runtime and mark the runtime dirty when the auth mode, account details, or token changes.
  • Refresh plugin auth mode before evaluating pending MCP work, and rebuild the initial MCP projection if authentication changes during session startup.
  • Carry one auth snapshot through runtime construction so plugin discovery and MCP connections use consistent credentials.

Testing

  • Add a regression test that replaces an API key, reloads authentication, and verifies that MCP refresh publishes a runtime using the new credentials.

## What changed

- Track the authentication state used by each published MCP runtime and mark the runtime dirty when the auth mode, account details, or token changes.
- Refresh plugin auth mode before evaluating pending MCP work, and rebuild the initial MCP projection if authentication changes during session startup.
- Carry one auth snapshot through runtime construction so plugin discovery and MCP connections use consistent credentials.

## Testing

- Add a regression test that replaces an API key, reloads authentication, and verifies that MCP refresh publishes a runtime using the new credentials.

GitOrigin-RevId: 219c2f7a157f53b5467116e18bfe70a8c3dca695
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/219c2f7a157f53b5467116e18bfe70a8c3dca695 branch from f7c0b80 to 6c729ef Compare July 24, 2026 09:51
@copyberry
copyberry Bot merged commit 6c729ef into main Jul 24, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/219c2f7a157f53b5467116e18bfe70a8c3dca695 branch July 24, 2026 09:53
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 24, 2026
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.

4 participants