Repository navigation
fix(codex): let owners install plugins from discovered marketplaces - #122389
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 12, 2026, 4:26 PM ET / 20:26 UTC. ClawSweeper reviewWhat this changesThe PR lets an owner or operator admin discover Codex marketplace plugins and explicitly install or authorize one for later Codex conversations. Merge readiness⛔ Blocked by patch quality or review findings - 6 items remain Keep open. Current main still limits native Codex plugin policy to curated and workspace-directory marketplaces; this PR adds a distinct owner-managed capability, but needs product sponsorship, direct upstream-contract inspection, and inspectable current-head runtime proof before merge. Priority: P2 Review scores
Verification
How this fits togetherThe Codex extension turns OpenClaw commands and agent tools into Codex app-server catalog and runtime calls. Its stored plugin policy determines which plugin apps, MCP servers, and capabilities can enter a native Codex thread. flowchart LR
A[Owner or admin] --> B[Codex plugin command]
B --> C[Codex marketplace catalog]
C --> D[Install or authorization decision]
D --> E[Stored plugin policy]
E --> F[Native Codex thread]
F --> G[Plugin apps and MCP servers]
Decision needed
Why: This is a deliberate expansion beyond the established curated/workspace contract; code review cannot choose the permanent operator trust boundary. Before merge
Findings
Agent review detailsSecurityNeeds attention: No implementation-local exploit was established, but the security boundary depends on an upstream Codex contract that could not be directly inspected. PR surfaceSource +1211, Tests +2164, Docs +51. Total +3426 across 36 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: If sponsored, retain the plugin-local owner command, keep Codex as the sole marketplace-policy authority, and merge only after direct upstream-contract review plus redacted current-head discovery, authorization, denial, and admission proof. Do we have a high-confidence way to reproduce the issue? Not applicable as an established-behavior bug: current source intentionally supports only two marketplace identities, while the PR proposes a new owner-managed capability. The claimed staging result is not yet backed by an inspectable artifact. Is this the best way to solve the issue? Unclear: the extension owns this behavior and the design keeps Codex authoritative, but maintainers must decide whether the expanded trusted installation workflow is the right product boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 88d6b571b09b. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
Thanks for the review. I checked the complete PR head and the public Codex source directly; the missing sibling checkout and partial-clone failures in the review environment are evidence-collection limitations rather than findings in the change. Upstream installation and authorization contractThe authoritative public Codex implementation, pinned to
The PR does not add a competing marketplace trust policy or bypass these upstream checks. Its deterministic owner/admin command re-queries the account-scoped catalog, uses only the catalog-provided local marketplace path or opaque remote plugin ID, rejects unavailable entries, and fails closed for required or unknown remote confirmation. Already-installed plugins can be authorized without attempting a second installation. The model-facing discovery tool cannot install or enable anything. Compatibility and owner boundaryThere is no database-schema change, backfill, or new persistent cache format. This change widens the existing marketplace-name validators and preserves the existing serialized plugin-policy shape; curated wire aliases, historical configuration keys, workspace-directory plugins, existing migration/recovery behavior, connector ownership, Computer Use, and session restoration are explicitly covered by the regression suites. I ran 28 Codex extension suites / 1,117 passing tests, both production and test TypeScript checks, and changed-file lint/format/secret checks. Coverage includes marketplace identity collisions, scoped account/runtime caches, disabled marketplace entries, owner/admin authorization, ordinary-user denial, read-only model discovery, remote confirmation rejection, opaque remote IDs, already-installed plugin authorization, existing curated/workspace configurations, MCP, hooks, and approval bridges. Installing plugin-provided skills, apps, MCP servers, and hooks is intentionally an explicit owner/ I also added the pinned upstream references and compatibility details to the PR description. A selected-tenant runtime deployment will be added when an authorized owner can run it. @clawsweeper re-review Current-head deployment and regression proof (2026-08-12)I addressed the remaining documentation finding at current head An owner-scoped staging developer deployment ran the exact PR runtime changes backported onto the currently supported OpenClaw baseline and Codex app-server Most importantly, the same non-mutating native-thread inventory input for an actually installed
This directly reproduces the production non-curated marketplace authorization defect and proves the PR fixes the architectural owner without modifying either tenant configuration. I also independently inspected the sibling Codex checkout at |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
…penclaw#122389) * fix(codex): allow owner-approved marketplace plugins * fix(codex): preserve marketplace validation and remove unused exports * docs(codex): clarify already-installed plugin authorization
What Problem This Solves
Fixes an issue where Codex-mode OpenClaw users cannot use plugins from repository, bundled/runtime, shared, personal, or enterprise marketplaces when those marketplaces are already available to their Codex account. Previously, native plugin configuration accepted only the curated and workspace-directory marketplace names, so valid plugins from other sources were rejected or lost their connector ownership when a conversation resumed.
Why This Change Was Made
Discover marketplaces through Codex's own app-server catalog, scoped to the bound workspace, including supplemental workspace, shared, and personal catalogs. An authenticated owner or
operator.adminmust explicitly install and authorize eachplugin@marketplace; the owner-scoped agent discovery tool is read-only, and ordinary turns cannot install plugins, enable plugins, or add marketplace sources.Preserve existing curated aliases, automatic recovery, migration, per-plugin destructive-action policies, and account/runtime cache isolation. Codex remains responsible for marketplace source restrictions, workspace administration policy, installation, and connector authorization. Remote plugins that require Codex's installation-confirmation interstitial, or whose upstream confirmation requirement is unknown, are directed to Codex instead of bypassing that protocol requirement. This widens the existing marketplace-name field to Codex's validated identifier format without adding an OpenClaw-specific marketplace allowlist, source trust model, or installation policy. It does not change defaults, enable
allow_all_plugins, or introduce a hook-isolation boundary.User Impact
Owners can ask which plugins Codex can already see, inspect
/codex plugins available, and authorize one plugin with/codex plugins install security-review@company-tools. Already-authorized connector apps become available to later Codex conversations without repeat installation approval, while existing curated/workspace plugins, Computer Use, migration, and connector sign-in restrictions continue to work.Evidence
@, administrator-disabled plugin ownership across curated and enterprise marketplaces, fail-closed account-wide admission, session restoration, connector ownership, migration, Computer Use, MCP, hooks, and approval bridges.node scripts/run-tsgo.mjs -p tsconfig.extensions.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/extensions.tsbuildinfoandnode scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.extensions.test.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/extensions-test.tsbuildinfo.oxlint,oxfmt --check,git diff --check, and repository autoreview/secret scanning were run locally.410c22b30e71:operator.admincapability: models receive read-only discovery, unavailable/admin-disabled plugins are rejected, Codex remains the source/workspace/install-policy authority, remote confirmation-required or unknown-confirmation installations fail closed, and installed plugin skills, apps, MCP servers, and hooks remain within the explicitly documented owner trust decision.