Repository navigation
feat: unify installed and catalog plugin overviews - #149216
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: blocked before merge. Reviewed September 16, 2026, 3:22 PM ET / 19:22 UTC (Revision 9). ClawSweeper reviewWhat this changesUnifies installed and catalog plugin pages with shared lifecycle controls, local README content, tool descriptions, metadata, and a separate Settings view. Merge readiness⛔ Blocked before merge - 1 item remains This remains useful, protected work beyond the merged metadata parent. The prior uninstall-warning and direct-Settings findings are addressed; no new blocking defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI combines Gateway-owned plugin inventory and inspection results with optional ClawHub metadata. It presents plugin details and sends lifecycle or configuration actions through the existing Gateway owners. flowchart LR
A[Local plugin inventory] --> C[Plugin detail owner]
B[ClawHub metadata] --> C
C --> D[Shared overview]
D --> E[Settings editor]
D --> F[Lifecycle controls]
E --> G[Gateway configuration owner]
F --> H[Gateway consent and lifecycle owner]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +13, Tests +569, Docs +3, Other +8. Total +593 across 57 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep one shared overview whose actions follow local inventory, with optional catalog enrichment and configuration writes delegated to their existing owners. Do we have a high-confidence way to reproduce the issue? Not applicable to the overall feature request; the prior defects have focused regression scenarios and current-source repairs, with the warning repair also shown in inspected before/after captures. Is this the best way to solve the issue? Yes. Reusing the existing inventory, consent, configuration, and catalog owners avoids a competing lifecycle implementation while consolidating presentation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e2eb18b701b4. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
5b68e1e to
77505d9
Compare
4b4fe3d to
081ee3d
Compare
77505d9 to
63e6794
Compare
081ee3d to
f5e244b
Compare
63e6794 to
3560725
Compare
|
Addressed the direct-Settings finding and matching rank-up move in 3560725. Route initialization now loads the existing schema/config capability for every configuration entry, including fresh catalog Settings URLs and refresh. The click handler uses that same owner. Both direct routes edit permissions, await the existing writer acknowledgment, and preserve the value after reload. The three built overview routes and 22 routing/cursor cases pass. The capability row also uses the canonical action cursor token, fixing the hosted cursor-policy failure. Before/after captures are attached in the PR body. The following Settings layer adapts the inherited route assertions to its grouped editor and passes the same three built cases. |
Remove the duplicate configuration recovery banner exposed by the combined settings page. Punchcard-Session: crisp-summit-lantern-qk
Use the canonical empty component shape for uninstalled official plugins and verify installed catalog reads expose supported MCP servers without promoting unsupported declarations. Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
Keep explicit detail-route selection independent of stale Gateway snapshots while inventory publication alone starts discovery browse. Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
Keep the removal receipt at the plugin page owner so inventory refresh cannot discard it when the installed detail becomes a catalog offer. Show actionable warnings and config refresh failures; leave clean removals silent. Punchcard-Session: crisp-summit-lantern-qk
421e5c0 to
e739028
Compare
Punchcard-Session: crisp-summit-lantern-qk
|
Revision 9 disposition: the remaining data-model compatibility checkbox does not apply to this layer. The earlier warning and direct-Settings findings are resolved, as Revision 9 confirms. Hosted CI is now green on the reviewed |
|
Merged via squash.
|
* feat: unify installed and catalog plugin overviews Punchcard-Session: crisp-summit-lantern-qk * chore: regenerate plugin overview protocol models Punchcard-Session: crisp-summit-lantern-qk * fix: initialize direct plugin settings routes Punchcard-Session: crisp-summit-lantern-qk * test(ui): pin installed plugin lifecycle actions during catalog races Assert Install remains absent before and after stale catalog enrichment, alongside the existing Enable assertion. Punchcard-Session: crisp-summit-lantern-qk * refactor(ui): remove obsolete catalog promotion link helper Keep the live README and rendered-link contracts after removing the promotional section. Punchcard-Session: crisp-summit-lantern-qk * fix(ui): make plugin settings primary and explain manual reload Follow the running Gateway lifecycle: management changes apply automatically, while Reload remains for code changes or failed runtime application. Qualify compiled bundled code and preserve existing consent and receipts. Punchcard-Session: crisp-summit-lantern-qk * test(ui): preserve administration flows through plugin settings Remove the duplicate configuration recovery banner exposed by the combined settings page. Punchcard-Session: crisp-summit-lantern-qk * test(plugins): reflect mapped components in catalog inspection Use the canonical empty component shape for uninstalled official plugins and verify installed catalog reads expose supported MCP servers without promoting unsupported declarations. Punchcard-Session: crisp-summit-lantern-qk * test(ui): migrate plugin flows to overview and settings Punchcard-Session: crisp-summit-lantern-qk * fix(ui): browse plugins after inventory publication Keep explicit detail-route selection independent of stale Gateway snapshots while inventory publication alone starts discovery browse. Punchcard-Session: crisp-summit-lantern-qk * test(ui): use the current discovery reconnect path * refactor(protocol): give tool catalog schemas their own module Punchcard-Session: crisp-summit-lantern-qk * fix(ui): retain uninstall warnings across catalog refresh Keep the removal receipt at the plugin page owner so inventory refresh cannot discard it when the installed detail becomes a catalog offer. Show actionable warnings and config refresh failures; leave clean removals silent. Punchcard-Session: crisp-summit-lantern-qk * refactor(ui): keep lifecycle receipt formatter private Punchcard-Session: crisp-summit-lantern-qk * fix(ci): count the extracted tool catalog schema owner
What Problem This Solves
Installed and catalog plugins use different detail layouts, with lifecycle actions and useful metadata scattered across tabs.
User Impact
Both routes use one overview: Settings is the primary installed action, with Enable/Disable, secondary Reload and Uninstall, a compact metadata rail, capability rows and the complete available README. Installed controls remain usable when ClawHub is slow or unavailable. Settings stays on the same plugin URL, and permissions remain in Settings.
Repository links show the GitHub icon and owner/name; documentation has its own section. Publisher and audit links use canonical metadata. Setup alerts and promotional ClawHub sections are removed.
Why This Change Was Made
Local inventory owns installed identity and actions; local inspection publishes before optional catalog enrichment. Inventory publication retires stale remote details and starts discovery once. Explicit route selection remains independent of stale Gateway snapshots, so a delayed navigation cannot leave another plugin’s controls at the new URL.
Installation and enablement already apply through the Gateway. Manual Reload preserves enablement/package scope and does not request a Gateway restart. Its hint distinguishes rebuilt external code from compiled bundled code, which also requires a Gateway restart. Existing capability consent, warnings and partial-failure recovery remain authoritative; clean uninstalls do not display a success notice, following CLAW-805.
This follows authored metadata. The ClawHub metadata companion is merged/deployed at production
0b6767d3bdd3; older registries remain readable. Duplicate layouts share one owner. No runtime default, permission grant, persistent schema or install-consent change.Evidence
Comparable built-UI captures use the same synthetic fixtures. They prove UI behavior, not a live security verdict or real installation.
Install → ready → Manage on the same catalog URL.
Settings-first action hierarchy:
Direct Settings entry and refresh with the remote catalog unavailable:
Saved permission after reload: fresh/refresh proof.
Tracks CLAW-878, Cycle 3.
Punchcard-Session: crisp-summit-lantern-qk
Final landing repairs
The authored-metadata parent is merged. This branch is rebased onto main, preserving the shared overview and existing runtime contracts. The former oversized protocol module now delegates its five tool-catalog schemas to
schema/tools-catalog.ts; public exports and the complete generated protocol JSON remain byte-identical. Protocol package build, eight tools.catalog handler tests, and the previously failing line-cap check pass. The reviewed registry count now includes the extracted owner (67 unique modules); full protocol:check passes with unchanged JSON, Swift and Kotlin outputs. The lifecycle receipt formatter is private now that its only caller is internal, and the full dead-code check passes.The latest ClawSweeper finding and Rank-up move are addressed: the plugin page owns removal warnings across installed-to-catalog transitions. Backend warnings and configuration refresh errors remain visible after inventory refresh; a clean uninstall stays quiet. The unchanged failing-before browser case now passes. All 16 affected browser cases and 62 unit cases pass, with UI/test types, lint and formatting. Fresh P0 autoreview is scoped-clean for both repairs. Hosted checks on the new head are still pending.
These comparable captures use the real bundled UI with the canonical mocked-Gateway browser harness. They prove lifecycle presentation, not live package removal. The warning repair adds nine production lines by consolidating formatting and moving rendering to the page owner; the schema extraction adds six import/barrel lines after discounting moved code. No permission defaults, schema keys, persistence, or wire behavior changes.