Refresh MCP runtimes when session auth changes - #35146
Merged
copyberry[bot] merged 1 commit intoJul 24, 2026
Merged
Conversation
## 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
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/219c2f7a157f53b5467116e18bfe70a8c3dca695
branch
from
July 24, 2026 09:51
f7c0b80 to
6c729ef
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/219c2f7a157f53b5467116e18bfe70a8c3dca695
branch
July 24, 2026 09:53
colossusmaoyuid-art
temporarily deployed
to
issue-triage
July 24, 2026 10:05 — with
GitHub Actions
Inactive
colossusmaoyuid-art
temporarily deployed
to
issue-triage
July 24, 2026 10:05 — with
GitHub Actions
Inactive
colossusmaoyuid-art
temporarily deployed
to
issue-triage
July 24, 2026 10:05 — with
GitHub Actions
Inactive
Stellaloudemom
temporarily deployed
to
issue-triage
July 24, 2026 10:08 — with
GitHub Actions
Inactive
Stellaloudemom
temporarily deployed
to
issue-triage
July 24, 2026 10:08 — with
GitHub Actions
Inactive
Stellaloudemom
temporarily deployed
to
issue-triage
July 24, 2026 10:08 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refresh MCP runtimes when session auth changes
What changed
Testing