Skip to content

[codex] cache remote plugin marketplaces during startup#21830

Draft
xli-oai wants to merge 1 commit intomainfrom
xli-codex/remote-plugin-cache-prewarm
Draft

[codex] cache remote plugin marketplaces during startup#21830
xli-oai wants to merge 1 commit intomainfrom
xli-codex/remote-plugin-cache-prewarm

Conversation

@xli-oai
Copy link
Copy Markdown
Contributor

@xli-oai xli-oai commented May 8, 2026

Summary

  • add a short-lived app-server cache for remote marketplace listings
  • reuse startup plugin work to prewarm the global remote marketplace catalog
  • coalesce overlapping startup and foreground fetches so only one backend request runs for the same cache key

Why

plugin/list currently fetches remote marketplace data on demand, so the first @ lookup or Plugins page open can still pay remote catalog latency even though startup is already doing related remote-plugin work. There is also a startup race where a foreground request can overlap the warmup and trigger the same remote fetch again.

What changed

  • cache remote marketplace responses for 5 minutes, keyed by auth identity, base URL, and requested remote sources
  • route app-server plugin/list through the shared cache path
  • prewarm the global remote catalog from the existing startup remote-plugin task
  • clear the cache on direct remote install/uninstall mutations
  • add in-flight request sharing so concurrent callers join the same fetch instead of duplicating it

Validation

  • cargo test -p codex-core-plugins
  • cargo test -p codex-app-server plugin_list_includes_remote_marketplaces_when_remote_plugin_enabled -- --nocapture
  • just fmt
  • just fix -p codex-core-plugins
  • just fix -p codex-app-server

Notes

  • cargo test -p codex-app-server still has unrelated local-environment failures in existing sandboxed command-exec tests (sandbox-exec: sandbox_apply: Operation not permitted) plus unrelated timing-sensitive tests. The touched remote-plugin path passed its focused coverage.

@xli-oai xli-oai added the oai PRs contributed by OpenAI employees label May 8, 2026 — with ChatGPT Codex Connector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oai PRs contributed by OpenAI employees

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant