Refresh remote plugin cache on auth changes#20265
Conversation
There was a problem hiding this comment.
💡 Codex Review
codex/codex-rs/core/src/connectors.rs
Line 411 in b2f8365
tool_suggest_connector_ids now calls plugins_for_config(config) without auth. After this commit, remote-installed plugin configs are returned only when the account-scoped cache key is present, so this path drops remote plugin connector IDs. list_tool_suggest_discoverable_tools_with_auth then filters them out, so connectors from remote-installed plugins stop appearing in tool suggestions.
codex/codex-rs/core/src/mcp.rs
Line 24 in b2f8365
configured_servers still builds MCP config via to_mcp_config(...) (no auth). With the new account-keyed remote plugin cache, that omits remote-installed plugin MCP servers entirely. Callers like app-server MCP refresh/OAuth flows using configured_servers can no longer find remote plugin servers, causing refreshes to drop them or OAuth login to fail with “No MCP server named ...”.
codex/codex-rs/chatgpt/src/connectors.rs
Line 140 in b2f8365
list_all_connectors_with_options fetches authenticated connector data, but plugin_apps_for_config still calls plugins_for_config(config) without auth. After account-keyed remote plugin caching, remote-installed plugin apps are omitted here, so plugin-provided connectors disappear from the merged connector list for logged-in users.
ℹ️ 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".
b2f8365 to
a32caff
Compare
2b78046 to
6cd565e
Compare
f54f204 to
5f79953
Compare
|
@codex review |
c414c0f to
3b6c42c
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5f79953f8d
ℹ️ 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".
4edeb33 to
11ba7ac
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 11ba7ac58d
ℹ️ 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".
11ba7ac to
ed5cad7
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ed5cad747e
ℹ️ 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".
6608032 to
61871c9
Compare
7e34315 to
ab92d79
Compare
0d47d45 to
209f248
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b9e433d903
ℹ️ 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".
209f248 to
e3e058d
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 ℹ️ 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". |
47c79d4 to
e3e058d
Compare
e3e058d to
3c92d6c
Compare
| &outgoing_clone, | ||
| auth_manager, | ||
| config_manager, | ||
| thread_manager, |
There was a problem hiding this comment.
send_chatgpt_login_completion_notifications take too many params and will break CI, so replace auth_manager with thread_manager instead of creating a new xxxContext :)
Summary
clear_plugin_related_cachesscoped to derived plugin/skills caches so share mutations do not drop remote installed plugins.Tests
cargo fmt --all --manifest-path codex-rs/Cargo.toml(passes; stable rustfmt warns thatimports_granularity = Itemis nightly-only)cargo test -p codex-core-plugins remote_installed_cachecargo test -p codex-app-server skills_list_loads_remote_installed_plugin_skills_from_cache