Skip to content

fix(plugins): restore search icons and separate official results - #148518

Merged
Patrick-Erichsen merged 5 commits into
mainfrom
codex/plugin-search-icons-and-groups
Sep 14, 2026
Merged

Patrick-Erichsen merged 5 commits into
mainfrom
codex/plugin-search-icons-and-groups

Conversation

@Patrick-Erichsen

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

Copy link
Copy Markdown
Contributor

Closes #148507

What Problem This Solves

Plugin search shows generic icons and duplicate installed/ClawHub cards for official packages such as Slack and Microsoft Teams.

User Impact

Official plugins appear once with their package icon, publisher, and installed state. Mixed searches show Official first and Community second; searches containing only one kind, or no results, have no section headings. Ranking within each section and pagination are preserved.

Why This Change Was Made

Normalize registry-relative icon paths with the existing ClawHub URL resolver, and restore 24 missing explicit publication counterparts in package metadata and the discovery catalogs. The existing identity join and image-proxy security rules remain authoritative. Package icons or the generic placeholder remain the only artwork sources.

The counterpart declarations also make these packages eligible for the existing declared ClawHub secondary when their default npm target is unavailable. npm remains the default; explicit source/version selections and install trust checks keep their existing behavior.

Evidence

Real isolated Gateways using the live ClawHub API, baseline bdf98bab5ed versus candidate e4bb1b47b48; same dark theme, search sequence, and viewports. No mocked catalog or image responses. The five commits remain patch-identical after rebasing onto current main (5d461f09667); the later commit changes install tests only.

Search Before After
Slack · desktop Slack · desktop before Slack · desktop after
Teams · desktop Teams · desktop before Teams · desktop after
Teams · mobile Teams · mobile before Teams · mobile after
  • Live: Teams 4 → 3 cards (two distinct official plugins and one community fork); Slack 23 → 22 cards (one official Slack). Both official package icons load through the Gateway proxy with HTTP 200.
  • Official-only, community-only, and empty searches retain the flat layout. Inspected desktop/mobile states plus Teams at tablet/laptop widths; no browser errors. Loading/error rendering is unchanged; existing error and pagination tests remain green.
  • 639 focused tests passed across catalog responses, installed/catalog joins and provenance, image proxy, the skill-image sibling, search rendering, CLI installs, source selection, and managed installs. Icon, duplicate, and grouping regressions were reproduced failing before the repair.
  • Full build, UI typecheck, targeted typed lint, i18n verification, package-lock guards, and generated catalog/document checks passed. Fresh independent autoreview found no P0 findings.
  • CI exposed three stale Brave install expectations after its publication identity became explicit. Corrected the fixture identity and extended existing source-selection coverage: explicit npm: never switches source or retries latest; a default install can use its declared ClawHub beta secondary. All 309 install/selector/management tests pass, including the final affected cases; install runtime policy is unchanged.
  • Initial CI reproduced two unrelated baseline failures: Radius/core test-boundary imports and a missing wizard database-worker registration. Both are now repaired on main by test: route provider integration and wizard recovery tests correctly #148504, and this branch includes that repair through a patch-identical rebase. Required CI is rerunning before landing.
Review details

The parser repair removes 3 runtime lines net; section rendering and its English label add 20. Explicit metadata adds 33 lines; generated projections have no net growth. Tests add 181 lines net. No new icon fallback or name-based identity heuristic.

Inventory investigation also exposed an existing requiredPlatformPackages projection difference for acpx/Codex outside the original external-package parity test. Follow-up: audit that metadata contract separately; no platform-install behavior is changed here.

@clawsweeper

clawsweeper Bot commented Sep 14, 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.

@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review September 14, 2026 20:27
@openclaw-barnacle openclaw-barnacle Bot added size: M maintainer Maintainer-authored PR labels Sep 14, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 14, 2026, 4:59 PM ET / 20:59 UTC (Revision 2).

ClawSweeper review

What this changes

The PR restores plugin search icons and official package identities, groups mixed results into Official and Community sections, and updates publication metadata, generated documentation, and regression coverage.

Merge readiness

⛔ Blocked before merge - 1 item remains

The repair remains useful and is not implemented on the inspected main branch. No actionable introduced defect was found; the earlier migration concern is resolved by the existing source-preservation contract and the clarified install coverage.

Priority: P2
Reviewed head: d9cb0b00285a411ce038beb8ce0ca04a3c8ccb4c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with convincing visual proof and relevant regression coverage; no blocking correctness finding remains.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected real-Gateway before/after desktop screenshots demonstrate corrected Slack and Teams identities, icons, and grouping; the reported live proxy results support icon loading. GitHub blob comparison preserves this proof across the rebase because only install tests changed afterward.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected real-Gateway before/after desktop screenshots demonstrate corrected Slack and Teams identities, icons, and grouping; the reported live proxy results support icon loading. GitHub blob comparison preserves this proof across the rebase because only install tests changed afterward.
Evidence reviewed 9 items Still necessary on inspected main: The fetched main retains the unnormalized icon field and flat search rendering. Its Slack package metadata also lacks the explicit ClawHub counterpart. These comparisons establish current behavior, not additional PR-owned changes.
Latest-release check: GitHub's contents API for v2026.9.4 returns catalog-source blob cc925b547844128446369bc88e1d5f1eb5947f8b; line 169 still reads the icon field without resolving registry-relative paths.
Existing identity owner: The join uses explicit ClawHub package identity, and management discovery scopes official counterparts to the public registry. The patch supplies missing declarations instead of introducing name-based matching.
Findings None None.
Security None None.

How this fits together

Plugin discovery combines ClawHub listings with Gateway-owned installation facts. The Control UI displays those combined results, while existing image-proxy and install owners handle artwork and installation.

flowchart TD
  A[ClawHub listings] --> C[Normalize catalog icons]
  B[Package metadata and installed state] --> D[Join publication identities]
  C --> D
  D --> E{Mixed search results}
  E --> F[Official and Community sections]
  E --> G[Flat results]
  C --> H[Existing image proxy]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +17, Tests +181, Docs 0, Config +24, Other +9. Total +231 across 60 files.

View PR surface stats
Area Files Added Removed Net
Source 3 45 28 +17
Tests 5 271 90 +181
Docs 25 48 48 0
Config 24 24 0 +24
Generated 0 0 0 0
Other 3 22 13 +9
Total 60 410 179 +231

Review metrics

Metric Value Why it matters
Declared publication counterparts 24 added; npm remains first These declarations repair discovery identity and enable the existing availability-only secondary install path.

Stored data model

Persistent data-model change detected: vector/embedding metadata: extensions/memory-lancedb/package.json. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #148507
Summary: This PR is the implementation candidate for the directly linked plugin-search report.

Members:

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

Technical review

Best possible solution:

Keep publication identity in package metadata, normalize icons through the shared resolver, and reuse existing rendering and install owners while preserving recorded user choices.

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

Yes: searching Slack or Teams reaches the source-proven relative-icon rejection and missing-counterpart join paths on inspected main; supplied baseline screenshots corroborate both. This review did not execute the application.

Is this the best way to solve the issue?

Yes: the patch repairs metadata and parsing at their existing owners, reuses section rendering, and preserves explicit install intent without adding a competing identity heuristic.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 2f04a9e2069e.

Labels

Label justifications:

  • P2: Missing icons and duplicate plugin cards are a bounded discovery defect with useful, demonstrated repair.
  • 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): Inspected real-Gateway before/after desktop screenshots demonstrate corrected Slack and Teams identities, icons, and grouping; the reported live proxy results support icon loading. GitHub blob comparison preserves this proof across the rebase because only install tests changed afterward.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected real-Gateway before/after desktop screenshots demonstrate corrected Slack and Teams identities, icons, and grouping; the reported live proxy results support icon loading. GitHub blob comparison preserves this proof across the rebase because only install tests changed afterward.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected real-Gateway before/after desktop screenshots demonstrate corrected Slack and Teams identities, icons, and grouping; the reported live proxy results support icon loading. GitHub blob comparison preserves this proof across the rebase because only install tests changed afterward.

Evidence

What I checked:

  • Still necessary on inspected main: The fetched main retains the unnormalized icon field and flat search rendering. Its Slack package metadata also lacks the explicit ClawHub counterpart. These comparisons establish current behavior, not additional PR-owned changes. (src/infra/clawhub-plugin-catalog.ts:205, 2f04a9e2069e)
  • Latest-release check: GitHub's contents API for v2026.9.4 returns catalog-source blob cc925b547844128446369bc88e1d5f1eb5947f8b; line 169 still reads the icon field without resolving registry-relative paths. (src/infra/clawhub-plugin-catalog.ts:169, 3a9d69db306c)
  • Existing identity owner: The join uses explicit ClawHub package identity, and management discovery scopes official counterparts to the public registry. The patch supplies missing declarations instead of introducing name-based matching. (src/plugins/catalog-discovery.ts:201, d9cb0b00285a)
  • Publication metadata scope: All 24 changed package manifests add only an existing clawhubSpec field and already declare publication to ClawHub and npm. Generated catalog changes mirror those declarations. The Codex package change does not alter its dependency, harness, runtime, or protocol, so it supplies no affirmative Codex dependency-inspection signal. (extensions/codex/package.json:26, d9cb0b00285a)
  • Earlier compatibility concern resolved: No stored schema or migration changes are introduced. Existing update documentation preserves recorded registry choices; install-source selection remains npm-first and switches only for unavailable targets. The revised CLI cases cover explicit npm refusal, successful npm selection, declared ClawHub beta fallback, and persisted source/version. These tests were inspected, not executed during this read-only review. (src/cli/plugins-cli.install.test.ts:2143, d9cb0b00285a)
  • Inspected real visual evidence: Inspected all four prepared desktop images from the captured PR body. Slack changes from duplicate local/published cards to one official card; Teams changes from four cards to two distinct official plugins and one community fork. Package icons and section headings are visible. The body reports isolated real Gateways using live ClawHub responses and HTTP 200 icon-proxy responses. Mobile images were not included in the prepared manifest and are not part of this visual assessment. (e4bb1b47b48c)

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 (1 earlier review cycle)
  • reviewed 2026-09-14T20:47:27.104Z sha e4bb1b47b48c78fa340ba70129d37393450bab07 :: blocked before merge. :: none

@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/plugin-search-icons-and-groups branch from 298c908 to d9cb0b0 Compare September 14, 2026 20:51
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

The data-model compatibility flag is a path-based false positive. At d9cb0b00285a411ce038beb8ce0ca04a3c8ccb4c, the entire extensions/memory-lancedb/ diff is one added publication identifier: openclaw.install.clawhubSpec = "clawhub:@openclaw/memory-lancedb". Removing that field makes the before/after package JSON identical. No vector/embedding fields, dependencies, runtime files, database schema, or persistence behavior change, so no data migration is required. The existing npm default remains unchanged; the declared-source behavior and explicit source/version protections are covered by the 309 passing install/selector/management tests.

The initial Radius and wizard CI failures were reproduced on the unchanged baseline and are both fixed by merged #148504. This head includes that fix through a patch-identical rebase, and all 279 post-rebase CLI/boundary/wizard regression cases pass. Required hosted CI is still running.

@Patrick-Erichsen
Patrick-Erichsen merged commit 914530a into main Sep 14, 2026
342 of 346 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the codex/plugin-search-icons-and-groups branch September 14, 2026 21:40
@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 15, 2026
…nclaw#148518)

* fix(plugins): join official installations to their published listings

* fix(plugins): resolve published catalog icon paths

* feat(plugins): group mixed searches by official and community publishers

* refactor(plugins): reuse catalog field parsing and simplify test selection

* test(plugins): preserve install intent with published counterparts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. 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. size: M 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]: Plugin search loses package icons and local publication identity

1 participant