Skip to content

feat: curate plugin categories and add Computer use discovery - #158686

Merged
Patrick-Erichsen merged 9 commits into
mainfrom
codex/plugin-discovery-curation
Sep 26, 2026
Merged

Patrick-Erichsen merged 9 commits into
mainfrom
codex/plugin-discovery-curation

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Refs #158685 (remaining release/operator work stays open)
Related: openclaw/clawhub#3822 and openclaw/clawhub#3823

What Problem This Solves

Plugin category shelves bury familiar integrations, reorder entries during browsing, and place CUA computer control in Infrastructure.

User Impact

Categories show ClawHub’s selected packages first, followed by download order. Models start with OpenAI, Anthropic, and Google; View all and later pages preserve the same order. Computer use appears after Web, and Other/Uncategorized homepage sections are hidden while search and installed-plugin management remain available.

Why This Change Was Made

ClawHub owns the canonical ordered package identities; the Gateway projects category ranks and joins trusted bundled plugins into the same policy. A shared comparator keeps the Gateway and UI consistent without an official-first fallback. CUA gains staged publication metadata and an explicit trusted catalog identity so its bundled and eventual published forms resolve to one card. build.bundledDist: true preserves bundled distribution and excludes CUA from both standalone release collectors. Publication stays disabled until a released host accepts computer-use; promotion must then set its minimum to that actual supporting release. The current stable host is not claimed to support a published CUA artifact. Maintainer disposition under the explicit autoland request: source may merge with host distribution held until the deployed curated ClawHub API is verified. Merging this PR does not publish a host or plugin release. Standalone CUA publication and the Featured swap remain staged until a supporting host release. These additive category/rank fields do not alter user configuration or require migration.

The coordinated ClawHub backend change supplies category priorities and English homepage eligibility. Featured selections remain backend-owned; Shopify remains featured; replacing the next lowest-install selection (LosslessClaw) with CUA is pending compatible publication and is tracked in #158685.

Evidence

Real before/after Control UI screenshots have been captured and inspected, using the native browser harness and actual discovery client/join source against an isolated ClawHub Convex backend with 63 public fixture packages before and 64 after prospective CUA publication; shared download counts are unchanged. Badges in the screenshots use the synthetic @catalog-proof publisher, while CUA’s official identity derives from the source-owned trusted catalog. The screenshots do not verify company ownership. The screenshots below come from that running system; the full proof gallery includes all categories and the exact source revisions.

Models before Models after
Models before Models after
CUA before — Infrastructure CUA after — Computer use
CUA before CUA after

All 450 plugin UI tests pass after giving the routing, generation, and icon fixtures visible category membership and matching taxonomy; their prior Uncategorized fixtures correctly stopped rendering under the requested behavior. These are fixture-only corrections. Browser E2E fixtures now use the same canonical taxonomy: Local Calendar belongs to Scheduling, install-ownership fixtures belong to Productivity, and navigation includes Computer use without Other. The mobile E2E regression proves Other/Uncategorized shelves are absent while all three matching search results remain visible. All 34 tests pass across five real-browser suites (40.65 s), including the complete two previously failing suites, catalog and hub navigation, and shared-fixture header clearance. Installation, permission and stale-response assertions are preserved; UI test types, lint/format and independent review pass.

CI run 36227453271 reproduced the same unchanged chat-retention assertion twice under the pinned Bun runtime: the released message remained reachable after forced GC. The existing Node retention path passes, including its node:v8 ownership-count assertion. The runtime policy now routes this file through the existing Node-required partition alongside the usage retention test. No test or assertion is disabled. Before the change, the exhaustive partition regression fails because chat is assigned to Bun; afterward, all partition and workflow expectations pass. The affected runner suite passes 153 tests and the complete chat suite passes 265 tests; the wider guard/config run contributes another 336 passing tests (10 existing platform skips). Script/root-test typechecks and targeted lint/format pass. Independent review of this focused CI correction found no issues.

179 focused tests pass across catalog parsing, Gateway entry points, trusted identity joins, UI ordering/pagination, and taxonomy. The new CUA regression failed before trusted registration and passes with exactly one card; duplicate aliases also have red/green regression coverage.

CI caught two generated inventory outputs and a genuine release-distribution mismatch: enabling separate CUA publication while its dist tree remained in core. Both generated docs are now consistent with bundled-only staging. The existing staged-release regression now includes CUA and proves it remains bundled, retains metadata, is excluded from both publication collectors, and is not classified as externally distributed. The explicit CUA release-check command rejects selection as non-publishable. A targeted rerun passed 297 release, catalog, management, and dependency-boundary tests (120.74 s plus 5.61 s for the boundary suite); independent P2 review of the correction is clean. This also addresses the review finding that the current stable host rejects the new category: no incompatible standalone artifact can be published through this staged configuration.

The shared Swift intersection separately reports four declarations in untouched ChatScrollCommand/GatewayConnectionProblem code, not the generated protocol additions; all four declarations are unchanged from this branch’s merge base. Three are covered by the existing native auth cleanup PR; this discovery change does not suppress that optional scan. The live main ruleset requires openclaw/ci-gate.
Core and UI production typechecks, all five touched test-type lanes, targeted oxlint/oxfmt, UI i18n/stylelint, protocol generation, pass. CUA publication admission correctly fails closed while staged. Independent review is complete with no accepted unresolved findings.

Local build limitation: the measured local baseline is 371663 B gzip and the candidate is 371709 B (+46 B), both above the unchanged 371332 B enforcement limit. Hosted CI’s Control UI performance check passes; no budget was relaxed. Full Gateway startup is also blocked by a baseline INEFFECTIVE_DYNAMIC_IMPORT build error, so screenshots use the repository’s native Control UI harness with real catalog source/backend responses rather than a live Gateway process. The isolated fixtures do not demonstrate a production publication or deployment.

Validation commands and test cost

Commands ran in a normal validation checkout with independently installed frozen dependencies:

  • node scripts/run-vitest.mjs targeting the changed catalog, Gateway, UI, contract, management, and static-catalog test files: 179 tests passed.
  • node scripts/run-tsgo.mjs -p tsconfig.core.json and -p tsconfig.ui.json.
  • Test typechecks for plugins/platform, infrastructure, Gateway methods, UI pages, and packages.
  • node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json on changed TypeScript; pinned oxfmt --check; UI i18n and stylelint checks.
  • Gateway JSON/Swift/Kotlin protocol generation; only the expected Swift model changed.
  • node --import ./scripts/tsx.mjs scripts/plugin-clawhub-release-check.ts --selection-mode selected --plugins @openclaw/cua-computer: expected rejection as a non-publishable staged package.
  • Release regressions in test/plugin-npm-release.test.ts and test/plugin-clawhub-release.test.ts, plus the catalog/management/static-catalog suites, rerun after staging CUA.

Single-worker focused run (node scripts/run-vitest.mjs <eight touched/related files> --maxWorkers=1): all 179 tests passed in 26.84 s across five shards. Individual shard walls were 0.73 s (join/category contract), 10.93 s (Gateway handlers), 2.65 s (catalog client), 4.94 s (management/static catalogs), and 3.07 s (UI renderer/controller). Test bodies remain sub-second per suite except the existing catalog-client replay (~1.15 s); compiler/worker setup accounts for most elapsed time. Hosted CI is attached to the exact PR head.

@clawsweeper

clawsweeper Bot commented Sep 26, 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 app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts plugin: cua-computer size: L labels Sep 26, 2026
@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. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. labels Sep 26, 2026
@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 26, 2026, 4:25 AM ET / 08:25 UTC (Revision 5).

ClawSweeper review

What this changes

The branch orders plugin discovery from ClawHub category pins and downloads, adds Computer use discovery for bundled CUA, and updates the Gateway protocol, Control UI, docs, tests, and CI test routing.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open for landing: current main and the latest release do not satisfy the linked request. Bundled-only staging addresses the earlier CUA publication finding, and the documented distribution hold covers the remaining rollout dependency.

Priority: P2
Reviewed head: 3766b5237b76770081f8f19232905cbe4721b240

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has strong visual and focused boundary evidence, with rollout coordination explicitly retained outside this source merge.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The changed Gateway discovery join and Control UI ordering were exercised with the actual client and renderer against an isolated ClawHub backend; inspected before/after screenshots show the Models reorder and Computer use shelf. The final head changes only browser fixtures. This does not establish production deployment; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The changed Gateway discovery join and Control UI ordering were exercised with the actual client and renderer against an isolated ClawHub backend; inspected before/after screenshots show the Models reorder and Computer use shelf. The final head changes only browser fixtures. This does not establish production deployment; no stored-data contract changes.
Evidence reviewed 11 items Still needed on main: The fetched main taxonomy has Web followed by Media; it has no Computer use category.
Latest release check: The latest release tag also lacks Computer use in the plugin taxonomy.
Dependency contract: The merged ClawHub source owns ordered category pins, including Models and Computer use, and returns them as category metadata. Its API change is a direct dependency of this PR's ranking behavior.
Findings None None.
Security None None.

How this fits together

ClawHub supplies plugin listings and category policy to the Gateway, which joins them with bundled plugin metadata. The Control UI uses that result to render discovery shelves, category pages, and search results.

flowchart LR
 A[ClawHub categories and packages] --> C[Gateway discovery join]
 B[Bundled plugin metadata] --> C
 C --> D[Shared category ordering]
 D --> E[Control UI shelves]
 D --> F[Category pages]
 G[Search requests] --> C
Loading

Before merge

  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
Agent review details

Security

None.

PR surface

Source +79, Tests +302, Docs +6, Config +21, Other +37. Total +445 across 35 files.

View PR surface stats
Area Files Added Removed Net
Source 10 132 53 +79
Tests 19 367 65 +302
Docs 2 9 3 +6
Config 1 22 1 +21
Generated 0 0 0 0
Other 3 40 3 +37
Total 35 570 125 +445

Review metrics

Metric Value Why it matters
Production and test LOC production +194/−57; tests +367/−65 The production growth has a stated purpose in shared ranking, protocol projection, and CUA staging, with focused regression coverage.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #158685
Summary: This PR supplies the source-side implementation for the canonical issue, which remains open for deployment, compatible publication, and the Featured change.

Members:

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

Technical review

Best possible solution:

Land the shared discovery projection under the recorded distribution hold, then complete API deployment verification and CUA publication through the linked rollout issue.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is a discovery feature. Current-main source and inspected before/after browser images establish the behavior being changed.

Is this the best way to solve the issue?

Yes: ClawHub owns the pin policy, while the Gateway and UI share its ordering projection; bundled-only CUA staging preserves the publication boundary.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 2d5c68187a38.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded plugin-discovery improvement with limited user impact.
  • merge-risk: 🚨 compatibility: The updated host expects ClawHub's curated API; the recorded distribution hold accepts that rollout dependency until deployment is verified.
  • 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 (screenshot): The changed Gateway discovery join and Control UI ordering were exercised with the actual client and renderer against an isolated ClawHub backend; inspected before/after screenshots show the Models reorder and Computer use shelf. The final head changes only browser fixtures. This does not establish production deployment; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed Gateway discovery join and Control UI ordering were exercised with the actual client and renderer against an isolated ClawHub backend; inspected before/after screenshots show the Models reorder and Computer use shelf. The final head changes only browser fixtures. This does not establish production deployment; no stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed Gateway discovery join and Control UI ordering were exercised with the actual client and renderer against an isolated ClawHub backend; inspected before/after screenshots show the Models reorder and Computer use shelf. The final head changes only browser fixtures. This does not establish production deployment; no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • Patrick-Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: 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 (4 earlier review cycles)
  • reviewed 2026-09-26T06:09:14.250Z sha 2539eb1 :: blocked before merge. :: none
  • reviewed 2026-09-26T07:17:46.388Z sha c058386 :: blocked before merge. :: [P2] Gate published CUA on a host that recognizes Computer use
  • reviewed 2026-09-26T07:59:38.609Z sha 7287891 :: blocked before merge. :: none
  • reviewed 2026-09-26T08:10:51.867Z sha 787c4ff :: blocked before merge. :: none

@Patrick-Erichsen Patrick-Erichsen self-assigned this Sep 26, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

The generated inventory is refreshed at e4b2192; its check and docs formatting pass. Production behavior is unchanged from the inspected screenshots.

The PR body now states the rollout contract explicitly: deploy and verify ClawHub’s merged curated API before distributing this OpenClaw host change. Main merge itself does not publish a host or plugin release. The additive category/rank metadata requires no user configuration migration. The coordinated ClawHub PRs are merged, and deployment verification is tracked separately.

The earlier optional shared Swift scan reports only untouched declarations, with existing cleanup work linked in the body. No generated protocol additions were reported dead.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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. labels Sep 26, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Head 916d07234f1e3ded6ebaf2c3ca6e9193178d09f6 addresses the CUA compatibility finding through the existing staged-release convention. build.bundledDist: true keeps CUA in the host and out of both standalone publication collectors; the selected release-check rejects it as non-publishable. No future supporting version is guessed. Explicit bundled metadata also takes precedence in dependency-repair ownership, while non-bundled installs still get dependency checks. All 297 related release/catalog/identity tests pass, as do affected type/static checks and independent P2 review.

Issue #158685 remains open for an actual supporting host release, compatible CUA promotion/publication, and the live Featured replacement. The backend API must be deployed and verified before host distribution; this main-source merge publishes neither a host nor a plugin release. The existing images remain prospective publication proof with their stated fixture boundary.

@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The final head is 7287891478b0e098cbe7cdb5379855e1261ebb04. Since the staged CUA correction, only three UI test fixtures changed: they now provide real visible category membership and matching taxonomy instead of relying on the intentionally removed Uncategorized section. All450 plugin UI tests (28files) and affected test types/lint pass. Production bytes and the CUA staged-publication decision are unchanged from916d072; all prior release/identity evidence still applies. Please bind the completion to this final head for native landing.

@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 26, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Maintainer disposition while executing Patrick’s explicit source-autoland request: proceed with this source merge once the enforced gates pass. I am retaining custody of this task’s rollout follow-through in #158685. Host distribution under this task remains held until the deployed ClawHub curated category API is verified; this does not claim control of unrelated future releases. Standalone CUA publication and the Featured swap remain staged until a supporting host release exists and its actual minimum version is set.

The category/rank protocol fields are optional and additive, with no user-config migration. CUA remains bundled-only; the current stable host cannot receive an incompatible standalone artifact through these publication collectors. This PR itself publishes no host or plugin release. The final CI correction received independent agent review; this is not a claim that Patrick personally reviewed it.

@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/plugin-discovery-curation branch from 3766b52 to d0e90a4 Compare September 26, 2026 09:24
@Patrick-Erichsen
Patrick-Erichsen merged commit 7f41da0 into main Sep 26, 2026
234 of 235 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the codex/plugin-discovery-curation branch September 26, 2026 09:55
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
…aw#158686)

* feat: prioritize plugin categories with ClawHub curation

* feat: prepare CUA for trusted ClawHub discovery

* docs: regenerate CUA plugin distribution inventory

* docs: refresh generated CUA install reference

* fix: keep CUA publication staged with bundled host

* test: give discovery page fixtures visible categories

* test: run chat retention proof on Node

* test: align plugin browser fixtures with curated shelves

* test: retain icon coverage in curated plugin shelves
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: cua-computer proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L 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.

1 participant