Skip to content

fix(wework): load OpenAI marketplace by default - #1854

Merged
qdaxb merged 1 commit into
mainfrom
fix/wework-openai-marketplace
Jul 10, 2026
Merged

qdaxb merged 1 commit into
mainfrom
fix/wework-openai-marketplace

Conversation

@qdaxb

@qdaxb qdaxb commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • load the OpenAI official marketplace automatically from the Codex app-server catalog
  • stop restricting plugin/list to local marketplaces, which excluded the current remote catalog path
  • remove the manual “Add OpenAI official marketplace” actions while retaining custom marketplace creation
  • keep the Codex-managed official marketplace out of custom marketplace edit, reorder, and delete controls
  • document the marketplace source-of-truth and default catalog behavior in Chinese and English

Root cause

Wework explicitly sent marketplaceKinds: ['local'], so Codex omitted openai-curated-remote. The attempted manual selection also used the legacy curated-marketplace path rather than Codex's current default remote catalog behavior. Codex enables RemotePlugin by default and only includes the global official catalog when marketplaceKinds is omitted.

Impact

The official OpenAI marketplace now appears automatically when Codex makes it available. Users only need the add-marketplace UI for custom GitHub or local marketplaces.

Validation

  • Wework ESLint
  • Wework TypeScript checks
  • Wework unit tests
  • targeted PluginsWorkspace.test.tsx tests
  • git diff --check

Summary by CodeRabbit

  • New Features

    • The official OpenAI marketplace now appears automatically when provided by Codex.
    • Multiple named custom marketplaces can be added and managed.
    • Remote GitHub marketplaces are cached locally for faster subsequent access.
  • Bug Fixes

    • Marketplace listings now correctly include both local and official marketplace options.
    • Marketplace availability and installation status are consistently refreshed from Codex responses.
  • Documentation

    • Updated English and Chinese guides to clarify marketplace selection, caching, and management behavior.

@coderabbitai

coderabbitai Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 31b8b36e-77c8-406a-99c1-3480c24b0208

📥 Commits

Reviewing files that changed from the base of the PR and between d545785 and 855f55e.

📒 Files selected for processing (5)
  • docs/en/developer-guide/wework-codex-plugins.md
  • docs/zh/developer-guide/wework-codex-plugins.md
  • wework/src/api/local/codexPlugins.ts
  • wework/src/components/plugins/PluginsWorkspace.test.tsx
  • wework/src/components/plugins/PluginsWorkspace.tsx

📝 Walkthrough

Walkthrough

Wework now receives official and custom marketplaces from the Codex app-server, stores only the current selection, and excludes the official marketplace from custom management actions. The local API, workspace UI, tests, and English and Chinese documentation reflect this flow.

Changes

Codex marketplace integration

Layer / File(s) Summary
Marketplace API and state flow
wework/src/api/local/codexPlugins.ts, docs/en/..., docs/zh/...
The local API removes direct official-marketplace selection, no longer restricts plugin/list to local marketplaces, and derives selection from the requested or persisted marketplace with fallback behavior. Documentation describes Codex-provided marketplaces, caching, and app-server operations.
Marketplace management UI
wework/src/components/plugins/PluginsWorkspace.tsx
The official marketplace is excluded from custom add, edit, reorder, and delete flows; custom marketplace actions remain available.
Marketplace behavior validation
wework/src/components/plugins/PluginsWorkspace.test.tsx
Tests verify official-marketplace tabs load from app-server responses and that removed official-marketplace actions are absent.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant PluginsWorkspace
  participant LocalCodexPluginApi
  participant CodexAppServer
  PluginsWorkspace->>LocalCodexPluginApi: request marketplace state
  LocalCodexPluginApi->>CodexAppServer: send plugin/list request
  CodexAppServer-->>LocalCodexPluginApi: return official and custom marketplaces
  LocalCodexPluginApi-->>PluginsWorkspace: provide selected marketplace and availability
Loading

Possibly related PRs

  • wecode-ai/Wegent#1844: Introduces the Codex plugin runtime work referenced by these marketplace API and UI changes.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/wework-openai-marketplace

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant