Skip to content

fix(codex): stop marketplace polling when native plugins are disabled - #137485

Merged
obviyus merged 1 commit into
openclaw:mainfrom
shojikumaru:fix/125360-computer-use-plugins-disabled
Sep 8, 2026
Merged

obviyus merged 1 commit into
openclaw:mainfrom
shojikumaru:fix/125360-computer-use-plugins-disabled

Conversation

@shojikumaru

@shojikumaru shojikumaru commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

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 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.

… 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]>
@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: codex size: S labels Sep 3, 2026
@shojikumaru
shojikumaru marked this pull request as ready for review September 3, 2026 18:41
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 8, 2026, 5:58 PM ET / 21:58 UTC (Revision 3).

ClawSweeper review

What this changes

The 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
Reviewed head: 331c09251905d2c57e054aa059623c71e55494eb

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-boundary repair with convincing real command observations, supported dependency contracts, and no blocking findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): Supplied real Gateway chat.send observations exercise the installation command through the production readiness owner and real Codex clients, showing prompt disabled-state failure on 0.153.4 and 0.149.0 with relevant discovery controls; Linux catalog proof is sufficient for this change without claiming macOS desktop readiness.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): Supplied real Gateway chat.send observations exercise the installation command through the production readiness owner and real Codex clients, showing prompt disabled-state failure on 0.153.4 and 0.149.0 with relevant discovery controls; Linux catalog proof is sufficient for this change without claiming macOS desktop readiness.
Evidence reviewed 11 items Introduced owner-boundary change: The pinned introduction adds a feature-state query only after empty inventory and only when the existing discovery wait would run. Explicit selectors, immediately available marketplaces, and nonwaiting status checks retain their existing paths.
Caller and shared readiness boundary: Agent startup awaits ensureCodexComputerUse; explicit installation reaches the same inspection and marketplace resolver. The command's owner/operator restriction remains unchanged. Other desktop integrations are documented as separate implementations.
Still necessary on main: Fetched main retains the unconditional empty-inventory loop and lacks the native feature probe; the owner otherwise matches the reviewed implementation.
Findings None None.
Security None None.

How this fits together

OpenClaw 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +30, Tests +74, Docs +1. Total +105 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 3 31 1 +30
Tests 2 75 1 +74
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 107 2 +105

Review metrics

Metric Value Why it matters
Production versus regression coverage Production net +30 lines; tests net +74 lines; documentation +1 line Production growth supplies the missing effective-state query and typed control-plane classification without adding another readiness flow.
Observed disabled-state latency Approximately 60 seconds → under 1 second on 2 native versions The supplied real Gateway observations demonstrate the intended operator-visible improvement.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #125360
Summary: This PR is the explicit implementation candidate for the reported disabled-plugin discovery delay.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This repairs a repeatable minute-long readiness delay limited to Computer Use configurations with native plugins disabled.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): Supplied real Gateway chat.send observations exercise the installation command through the production readiness owner and real Codex clients, showing prompt disabled-state failure on 0.153.4 and 0.149.0 with relevant discovery controls; Linux catalog proof is sufficient for this change without claiming macOS desktop readiness.
  • proof: sufficient: Contributor real behavior proof is sufficient. Supplied real Gateway chat.send observations exercise the installation command through the production readiness owner and real Codex clients, showing prompt disabled-state failure on 0.153.4 and 0.149.0 with relevant discovery controls; Linux catalog proof is sufficient for this change without claiming macOS desktop readiness.

Evidence

What I checked:

Likely related people:

  • jalehman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • obviyus: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-03T18:53:34.608Z sha 331c092 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-03T19:17:50.933Z sha 331c092 :: needs maintainer review before merge. :: none

@shojikumaru

Copy link
Copy Markdown
Contributor Author

Thanks for the review. Both asks are now addressed in the PR body (Evidence section), no code change needed:

  • Real behavior proof: drove the actual exported installCodexComputerUse against real codex app-server binaries with features.plugins = false in an isolated CODEX_HOME. Base 5f9f69d229: 60,023 ms and 31 plugin/list calls. This PR: 23 ms and 1 plugin/list call on 0.153.0, 20 ms / 1 call on 0.149.0. Control with plugins = true and no marketplace registered: the existing polling window is preserved (31 calls, generic marketplace_missing). On the wire, experimentalFeature/enablement/set { plugins: true } really returns { "enablement": {} } on both versions, and experimentalFeature/list returns one page (nextCursor: null) with { name: "plugins", stage: "stable", enabled: false, defaultEnabled: true }.
  • Support-floor compatibility (0.149.0): experimentalFeature/list exists with the same contract at the documented external floor — verified in source at tag rust-v0.149.0 (protocol/common.rs:1030, catalog_processor.rs:266, features/src/lib.rs:1210, plugins.rs:565-566) and live against the real 0.149.0 binary from npm (row 3 of the table). No app-server in the supported range lacks the method, so I did not add a compatibility gate; happy to add one if maintainers prefer a wider floor.

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 extensions/codex to absorb them (config/read does not project features.plugins).

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 3, 2026
@obviyus obviyus self-assigned this Sep 8, 2026
@obviyus obviyus changed the title fix(codex): skip Computer Use marketplace polling when native plugins are disabled fix(codex): stop marketplace polling when native plugins are disabled Sep 8, 2026
@obviyus
obviyus merged commit 896fa45 into openclaw:main Sep 8, 2026
264 checks passed
@obviyus

obviyus commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Thanks @shojikumaru!

Proof: The real Gateway handled /codex computer-use install through chat.send and returned the correlated terminal reply using real Codex 0.153.4 and 0.149.0 binaries.

  • Bug: Disabled native plugins produced an empty inventory, but readiness still polled for the full minute.
  • Fix: The existing readiness owner now reads effective plugin state before polling and returns the setting and rerun command when plugins are disabled.
Before After
About 60.6–60.9 seconds, 31 inventory requests, generic marketplace advice About 0.4–0.6 seconds, one inventory request and one feature query, actionable disabled-plugin guidance

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 896fa451da77aa1c72fabe67283e99169efe96cc after a clean exact-head final review and successful required CI. Issue #125360 is closed.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 9, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: codex P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Codex Computer Use polls plugin/list for 60s when native plugins are disabled

2 participants