Repository navigation
fix(ui): load plugin catalog home from one snapshot - #144569
Conversation
|
🦞👀 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 10, 2026, 10:59 PM ET / September 11, 2026, 02:59 UTC (Revision 5). ClawSweeper reviewWhat this changesLoads the plugin marketplace home from one ClawHub snapshot joined with local installation state, while preserving explicit pagination for expanded views. Merge readiness✅ Ready for maintainer review This PR remains useful: current main still drains catalog cursors before displaying results. The prior findings are resolved, the ClawHub dependency is merged and deployed, and no remaining blocking defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI plugin marketplace receives catalog metadata from ClawHub through the Gateway. The Gateway combines it with local plugin state, and the UI presents category shelves, search results, and installation actions. flowchart LR
A[Marketplace request] --> B{Home or filtered view}
B -->|Home| C[ClawHub overview]
B -->|Search or expansion| D[Bounded catalog page]
C --> E[Gateway catalog join]
D --> E
F[Local plugin state] --> E
E --> G[UI shelves and results]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -177, Tests -127, Other +20. Total -284 across 20 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep ClawHub responsible for the bounded home projection, the Gateway responsible for local state, and explicit pagination responsible for expanded browsing. Do we have a high-confidence way to reproduce the issue? Yes: current-main source drains every catalog cursor before returning results, matching the recorded slow marketplace load. This review verified the mechanism without executing it. Is this the best way to solve the issue? Yes: the snapshot removes redundant client traversal while retaining the existing Gateway state owner and paginated catalog endpoint; the required dependency is deployed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e62272f04a3e. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Addressed the latest ClawSweeper findings at
Validation: 67 focused tests plus the added controller regressions, The external endpoint dependency remains intentionally ordered: ClawHub PR #3664 must merge and be deployed before this consumer merges. |
|
Addressed the latest ClawSweeper finding and exact-head CI type failure at |
|
Addressed the latest ClawSweeper and browser-CI findings at |
|
Dependency rollout is complete: ClawHub #3664 merged at |
|
Merged via squash.
|
* fix(ui): load plugin catalog home from one snapshot * fix(ui): preserve bounded plugin catalog browsing * fix(ui): reconcile plugin catalog continuation * fix(ui): align plugin overview lifecycle tests * test(ui): satisfy plugin overview lint rules
Summary
Depends on openclaw/clawhub#3664.
Root cause and repair
The marketplace controller serially traversed every ClawHub cursor before exposing ordinary shelves, then issued separate requests for categories, Featured, Trending, and category hydration. Unified search also downloaded every official plugin page just to classify local bundled entries.
ClawHub is the owner of the marketplace home projection, so the canonical repair is one cacheable, bounded overview endpoint. The Gateway joins that response with authoritative local state; the UI builds every shelf from the one existing browse result. Search and
View allremain bounded paginated reads.Removed paths: catalog cursor draining, per-shelf Task fanout, category hydration, the complete-official-catalog cache, and its separate categories result type.
Production/test LOC delta: 149 additions / 420 deletions in production; 85 additions / 360 deletions in tests. Net total: 234 additions / 780 deletions.
Performance proof
Fresh isolated browser contexts, unchanged main and candidate against the exact same local ClawHub backend:
This is 65.6% lower latency / 2.91x faster. The original production-backed reproduction took 110.108 s and 20 cursor requests before the first ordinary category appeared; the candidate renders all ordinary shelves from one RPC.
Unified cold search also improved from a 5.628 s median / 3 HTTP calls / 195 entries to 2.267 s / 1 call / 90 bounded entries (59.7% lower, 2.48x faster).
Validation
pnpm check:changed: all code/type/dead-code/core lint gates passed; app lint initially lacked the pinned SwiftLint binary in the clean clonePATH=$PWD/.build/swift-tools:$PATH pnpm lint:swift: 0 violationspnpm protocol:checkplugins.catalog.browseRPCProduction-after timing against deployed ClawHub can only be measured after the dependency endpoint lands; the controlled same-backend benchmark above isolates the code-path improvement.