Skip to content

feat: Use remote installed plugin cache for skills and MCP - #20096

Merged
xl-openai merged 1 commit into
mainfrom
xl/plugins
Apr 29, 2026
Merged

xl-openai merged 1 commit into
mainfrom
xl/plugins

Conversation

@xl-openai

Copy link
Copy Markdown
Contributor
  • Fetches and caches remote /installed plugin state
  • Lets skills/list load skills from remote-installed cached plugins without requiring a local marketplace entry
  • Routes plugin list/startup/install/uninstall changes through async plugin cache invalidation and MCP refresh

@xl-openai
xl-openai requested a review from a team as a code owner April 28, 2026 23:08
@xl-openai
xl-openai requested review from sayan-oai and xli-oai April 28, 2026 23:08

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 367099dff2

ℹ️ 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".

Comment thread codex-rs/core/src/plugins/manager.rs Outdated
Comment on lines +175 to +182
fn remote_installed_plugins_cache_key(config: &Config) -> RemoteInstalledPluginsCacheKey {
// TODO(remote plugins): this cache is currently scoped only by base URL. A logout, API-key
// login, or ChatGPT account switch that does not schedule a remote-installed refresh can keep
// the previous account's remote installed state effective until the next refresh clears it.
// Include auth/account identity in the key, or clear this cache from account lifecycle handlers.
RemoteInstalledPluginsCacheKey {
chatgpt_base_url: config.chatgpt_base_url.clone(),
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Scope remote installed cache to auth identity

remote_installed_plugins_cache_key only uses chatgpt_base_url. After logout or account switching on the same base URL, cached remote-installed plugins from the previous account can still be treated as effective (skills/MCP) until another refresh happens. That leaks stale cross-account plugin state and can expose the wrong account’s skills/tools.

Useful? React with 👍 / 👎.

@xl-openai
xl-openai force-pushed the xl/plugins branch 2 times, most recently from 05fe75b to 108b13d Compare April 29, 2026 01:43
@xl-openai

Copy link
Copy Markdown
Contributor Author

@codex review again

Bojun-Vvibe added a commit to Bojun-Vvibe/oss-contributions that referenced this pull request Apr 29, 2026
- anomalyco/opencode#24877: session directory routing fix (merge-after-nits)
- anomalyco/opencode#24852: JSON skill serialization for non-Anthropic models (merge-after-nits)
- openai/codex#20113: heredoc file_redirect sandbox bypass fix (merge-after-nits)
- openai/codex#20096: remote installed plugin cache for skills/MCP (merge-after-nits)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 108b13ded3

ℹ️ 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".

Comment thread codex-rs/core/src/plugins/manager.rs Resolved
Comment thread codex-rs/core/src/plugins/manager.rs Resolved
Comment thread codex-rs/core/src/plugins/manager.rs Resolved
@xl-openai
xl-openai merged commit 73cd831 into main Apr 29, 2026
25 of 26 checks passed
@xl-openai
xl-openai deleted the xl/plugins branch April 29, 2026 19:09
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 29, 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.

3 participants