Repository navigation
🤖 fix: sign out OAuth credentials of MCP servers that a plugin update removes or an uninstall deletes - #7941
Conversation
Delete comments that restate the code or a callee's contract. Keep the comments that explain ordering, the removal rationale, and test timeouts.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9909513969
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
🟢 e2e stories (Haiku): 14 passed22 agent steps · 7 replayed from cache · 15 model calls · 47.1k tokens (23% cached) All 14 tests in 9 files
e2e 0.20.0 · 1m 12s · web · run artifacts 🟢 e2e Electron stories (Haiku): 3 passed3 agent steps · 3 model calls · 7.9k tokens (22% cached) All 3 tests in 3 files
e2e 0.20.0 · 18.1s · electron · run artifacts 🟢 e2e agent repros (Haiku): no tests selectedSpend: $0.00 of the $1.00 cap (proxy ledger) e2e 0.20.0 · 5.8s · 2 targets (web, phone) · run artifacts |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Why
The goal of this run is to make each loadable plugin manifest an install choice and to make foreign plugin agents work (the plugin install-methods RFC). Review of that work found a defect that main already has. Stored OAuth credentials are keyed by the server URL. A plugin update that removes an MCP server, or an uninstall of the plugin, leaves them stored. A later server at that URL under another sign-in identity then meets the old credentials, because no current server is left to show the change.
What changed
signInResetUrls: the CRAP gate does not letcollectCapabilityChangesgrow.docs/config/mcp-servers.mdxstates both rules.Scope
Blast Radius
Plugin update and uninstall, for plugins with remote MCP servers. A write failure of the pending sign-out record now stops the uninstall with the install intact (the error names the file). An uninstall of a plugin with remote servers also refuses while that record is corrupt or from another Xum version, as an update already does. It refuses before anything stops or moves, with the record's own error, which names the Settings recovery step ("Sign out of plugin MCP servers"). A plugin without remote servers uninstalls regardless. A tree that Xum cannot read lists no servers and still uninstalls (logged as a warning). Downgrade: no persisted change. The pending sign-out record keeps its version 1 format.
Verification
installService.test.tshas an update that removes a signed-in server, an update that drops the MCP file, and an uninstall followed by a reinstall under another client. Each failed on main with the old credentials still stored, then passed with the fix.installService*.test.tsfiles andtests/bugbash/pluginInstallFixtures.test.ts(355 pass, 0 fail).make static-check,make lint-eslint,make crap-checkandmake dry-checkpass.make mutate-checkexits 3: its baseline dropsinstallService.test.ts(too slow for its baseline limit). I ran the mutants of the new functions by hand against the suites that drive them: 3 are equivalent (marked) and the rest are killed.Generated with
xum• Model:anthropic:claude-sonnet-5-5• Thinking:xhigh• Cost:$2.42