Repository navigation
fix(codex): stop marketplace polling when native plugins are disabled - #137485
Conversation
… are disabled
When Codex `features.plugins` is off, `plugin/list` returns an empty
inventory immediately (codex-rs app-server plugins.rs), and the
`experimentalFeature/enablement/set { plugins: true }` request is dropped
because `plugins` is not a supported runtime-enablement key
(config_processor.rs) — the acknowledgement is `{}` whether plugins are
on or off. The Computer Use readiness owner treated that empty inventory
as discovery in progress and polled `plugin/list` every 2 s for the full
`marketplaceDiscoveryTimeoutMs` window on the blocking startup path.
Read the effective `plugins` feature via `experimentalFeature/list` only
when the first inventory is empty and the discovery wait would start. A
conclusive `enabled: false` returns the existing `marketplace_missing`
result at once with actionable guidance; enabled/unknown keeps the
existing polling. Type the request, allow it as a read-only
control-plane method in the sandbox guard, and add regression coverage.
Fixes openclaw#125360
Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 8, 2026, 5:58 PM ET / 21:58 UTC (Revision 3). ClawSweeper reviewWhat this changesThe Codex plugin stops waiting for Computer Use marketplace discovery when native plugins are explicitly disabled and returns actionable guidance, with protocol typing, regression coverage, and documentation. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: current main and the latest release still perform the unnecessary discovery wait. No blocking correctness findings remain, and the supplied real Gateway evidence addresses the earlier proof request. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw checks Computer Use readiness before starting Codex agent turns and when handling explicit installation commands. The Codex plugin reads native marketplace and feature state, then either continues installation or reports why readiness failed. flowchart TD
A[Agent startup or install command] --> B[Computer Use readiness]
B --> C[Read marketplace inventory]
C --> D{Discovery wait needed?}
D -->|Yes| E[Read native plugin feature]
E -->|Disabled| F[Return actionable readiness failure]
E -->|Enabled or unknown| G[Continue marketplace discovery]
D -->|No| H[Continue existing readiness flow]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +30, Tests +74, Docs +1. Total +105 across 6 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep the effective-state check in the shared readiness owner; its small typed RPC addition is justified because neither empty inventory nor the existing enablement acknowledgement establishes native plugin state. Do we have a high-confidence way to reproduce the issue? Yes. Current main enters the discovery loop with native plugins disabled, auto-install enabled, and no explicit marketplace selector; native source proves why inventory remains empty, and supplied before/after command observations corroborate it. Is this the best way to solve the issue? Yes. Reading the authoritative feature state at the existing discovery boundary preserves valid polling; shortening the global timeout or trusting the empty enablement acknowledgement would not distinguish disabled support from delayed discovery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fd285cc6826a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Thanks for the review. Both asks are now addressed in the PR body (Evidence section), no code change needed:
Traces contain only temp-dir paths; the driver lives outside the repo. Also re-checked: the +30 production lines are the typed request, the sandbox-guard classification, and the single owner-boundary probe — there is no existing feature-state accessor in |
|
Thanks @shojikumaru! Proof: The real Gateway handled
Enabled and unknown-state controls retained the full wait. Immediate marketplace discovery skipped the feature query; status-only stayed nonwaiting. All 94 focused tests and exact-head CI passed. Fresh source-blind acceptance exercised 12 cases on both versions and found no behavior failure; its internal/final-gate limits are retained with the source and boundary evidence. The unknown-state case is a labeled dependency fault with original and delivered frames preserved. The local plugin fixture has no desktop tools, so its later missing-server result is not a claim of desktop readiness. No macOS desktop operation is claimed. AI-assisted verification; contributor implementation and human credit retained. Merged as |
…openclaw#137485) Fixes openclaw#125360 ## What Problem This Solves When native Codex plugins are disabled, an empty inventory cannot become ready through polling. Computer Use readiness still waited the full discovery window and returned generic marketplace advice. This delayed startup and explicit install commands by about a minute. ## Why This Change Was Made Read the effective native `plugins` feature after the first empty Computer Use inventory, only when the existing discovery wait would start. A conclusive disabled state returns the existing `marketplace_missing` result with the setting and rerun command. Enabled or unknown state retains polling. The feature query uses the existing read-only control-plane policy. The native contract was checked directly at 0.153.4, the current integration pin, and the documented 0.149.0 floor. Both return the complete effective feature catalog when no limit is supplied. The existing enablement call excludes `plugins` from its supported keys, so its empty acknowledgement cannot establish state. ## User Impact Operators get a prompt, actionable diagnostic when native plugins are disabled. Existing discovery, marketplace selection, status-only behavior and sandbox protections remain. No global timeout, plugin enablement, configuration key, schema or protocol version changes. ## Evidence The real Gateway received `/codex computer-use install` through authenticated `chat.send`. The normal command owner leased a real app-server, and the client received a correlated terminal reply. Every condition used a fresh isolated native home. A transparent configured-command recorder forwarded normal traffic unchanged. | Native version | Pinned-main command | Candidate command | Inventory requests, before → after | | --- | --- | --- | --- | | 0.153.4 | 60.6 s; generic marketplace failure | 0.6 s; disabled setting and rerun guidance | 31 → 1 | | 0.149.0 | 60.9 s; generic marketplace failure | 0.4 s; disabled setting and rerun guidance | 31 → 1 | Candidate disabled runs make one feature query after the first inventory and no install request. Full startup traffic is retained separately from the install-owner counts. Times run from command send to terminal reply, including native client acquisition but excluding Gateway startup. - Enabled discovery retains the full 60-second window and 31 inventory reads on both versions. Native catalogs start empty and can populate unrelated plugins while Computer Use remains absent. - A separately labeled dependency-fault control removes only the `plugins` feature entry from the real response. Original and delivered frames are retained; unknown state keeps the full wait. Naturally absent native catalogs are not claimed. - A real local marketplace is found on the first inventory without a feature query. Native installation and readback succeed for a metadata-only plugin, then report its missing tool server. This proves discovery behavior, not desktop readiness. - Status-only remains nonwaiting with one inventory, no feature query, no enablement call and no install. - All 94 focused Computer Use, marketplace and request-policy tests passed. The disabled-state regression fails on original production for the expected generic-message result. That negative run also reports the same assertion through its pending promise; current candidate tests are clean. - Fresh source-blind acceptance exercised 12 cases across both versions: 14 clauses passed, no behavior failure was found, and four internal or final gates remained outside its interface. Source and focused boundary evidence cover the internal result code, sandbox classification and unchanged configuration contracts. The original independent report and its limits are retained. No model turn or desktop action was requested through the observed native stream. Network egress was not packet-captured. This is Linux catalog/readiness proof; macOS desktop operation is not claimed. Complete source, raw command/native observations, provenance, failures and review evidence are retained privately. AI-assisted verification. Contributor implementation and human credit retained. Co-authored-by: Ayaan Zaidi <[email protected]>
Fixes #125360
What Problem This Solves
When native Codex plugins are disabled, an empty inventory cannot become ready through polling. Computer Use readiness still waited the full discovery window and returned generic marketplace advice. This delayed startup and explicit install commands by about a minute.
Why This Change Was Made
Read the effective native
pluginsfeature after the first empty Computer Use inventory, only when the existing discovery wait would start. A conclusive disabled state returns the existingmarketplace_missingresult with the setting and rerun command. Enabled or unknown state retains polling. The feature query uses the existing read-only control-plane policy.The native contract was checked directly at 0.153.4, the current integration pin, and the documented 0.149.0 floor. Both return the complete effective feature catalog when no limit is supplied. The existing enablement call excludes
pluginsfrom its supported keys, so its empty acknowledgement cannot establish state.User Impact
Operators get a prompt, actionable diagnostic when native plugins are disabled. Existing discovery, marketplace selection, status-only behavior and sandbox protections remain. No global timeout, plugin enablement, configuration key, schema or protocol version changes.
Evidence
The real Gateway received
/codex computer-use installthrough authenticatedchat.send. The normal command owner leased a real app-server, and the client received a correlated terminal reply. Every condition used a fresh isolated native home. A transparent configured-command recorder forwarded normal traffic unchanged.Candidate disabled runs make one feature query after the first inventory and no install request. Full startup traffic is retained separately from the install-owner counts. Times run from command send to terminal reply, including native client acquisition but excluding Gateway startup.
pluginsfeature entry from the real response. Original and delivered frames are retained; unknown state keeps the full wait. Naturally absent native catalogs are not claimed.No model turn or desktop action was requested through the observed native stream. Network egress was not packet-captured. This is Linux catalog/readiness proof; macOS desktop operation is not claimed. Complete source, raw command/native observations, provenance, failures and review evidence are retained privately.
AI-assisted verification. Contributor implementation and human credit retained.