Repository navigation
improve(ui): show plugin card installation and connection states - #200343
Conversation
Keep installation separate from configured MCP authorization, move status beneath the title, and preserve canonical plugin-page actions with responsive cards. Co-authored-by: Patrick-Erichsen <[email protected]>
Keep admitted installation receipts at the application Gateway owner across navigation. Reuse the MCP wizard for inline authorization, cancellation, expiry, retry, and authoritative settlement. Reconcile obsolete failures after external recovery. Co-authored-by: Patrick-Erichsen <[email protected]>
Worked on by: - @Patrick-Erichsen Co-authored-by: Patrick-Erichsen <[email protected]> OpenClaw-Publication: 16776f52-b9ff-4afc-834c-b6444ca3a193
|
🦞👀 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. What this changesThis PR adds installation progress, inline MCP authorization, recovery actions, and larger responsive chat plugin cards. Example: Install Calendar Plus from its plugin page, then return to chat before installation finishes.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 4 items remain Keep open: this maintainer-authored PR provides useful lifecycle feedback, but reconnect recovery and two diff-caused CI failures need repair before merge. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherControl UI chat recommendations consume Gateway catalog and inspection results; shared installation receipts and the existing MCP wizard supply progress and authorization outcomes to their visible controls. flowchart LR
A[Chat recommendation] --> B[Card presentation]
C[Plugin consent owner] --> D[Application installation receipts]
D --> B
B --> E[MCP wizard owner]
C --> F[Gateway]
E --> F
F --> B
Technical reviewBest possible solution: Keep one application-scoped receipt owner and the existing MCP wizard, while retiring obsolete policy-warning receipts so users can request a fresh review after reconnect. Do we have a high-confidence way to reproduce the issue? Current-main source keeps installation receipts inside the Plugins page, establishing the missing cross-navigation feedback; hosted CI also demonstrates the introduced reconnect recovery failure. Is this the best way to solve the issue? Sharing admitted installation receipts and reusing the established MCP wizard is appropriate; the smallest repair preserves that cutover and fixes receipt retirement rather than restoring duplicate page-local tracking. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a958f1d25c1d. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +416, Tests +526, Other +5. Total +947 across 14 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 16, 2026, 8:53 PM ET / November 17, 2026, 01:53 UTC. |
Retire only connection-scoped install-policy reviews on reconnect. Keep admitted writes and saved or uncertain results intact, remove the ad-hoc reactive suppression, and inherit the shared cursor policy. Delete redundant card CSS without raising budgets: full-bundle comparison against CI base b601a4b records 337310 B gzip / 1740080 B raw, below the fixed caps. Production-bundle browser scenarios retain approved rendering and installation/auth recovery. Test allocation: 175 lines above the 400-line allowance covers actual plugin-page install ownership across navigation, correlated failure/retry/success, MCP cancellation/expiry/retry, and same-client reconnect settlement. Reuse the approved media. Co-authored-by: Patrick-Erichsen <[email protected]>
Show localized Ready to install only for authoritative uninstalled, installable recommendations. Preserve checking, unavailable, permission, installation and connection states. Retain the existing 175-line lifecycle test allocation and prior proof. Add the requested label to the existing available/unavailable regression and production-browser matrix without new ownership or styling. Co-authored-by: Patrick-Erichsen <[email protected]>
|
Merged via squash.
|
…nclaw#200343) * improve: clarify chat plugin card setup states Keep installation separate from configured MCP authorization, move status beneath the title, and preserve canonical plugin-page actions with responsive cards. Co-authored-by: Patrick-Erichsen <[email protected]> * improve: show canonical plugin install and authorization progress Keep admitted installation receipts at the application Gateway owner across navigation. Reuse the MCP wizard for inline authorization, cancellation, expiry, retry, and authoritative settlement. Reconcile obsolete failures after external recovery. Co-authored-by: Patrick-Erichsen <[email protected]> * improve(ui): show plugin card installation and connection states Worked on by: - @Patrick-Erichsen Co-authored-by: Patrick-Erichsen <[email protected]> OpenClaw-Publication: 16776f52-b9ff-4afc-834c-b6444ca3a193 * fix(ui): preserve plugin recovery and trim card styles Retire only connection-scoped install-policy reviews on reconnect. Keep admitted writes and saved or uncertain results intact, remove the ad-hoc reactive suppression, and inherit the shared cursor policy. Delete redundant card CSS without raising budgets: full-bundle comparison against CI base 9214453 records 337310 B gzip / 1740080 B raw, below the fixed caps. Production-bundle browser scenarios retain approved rendering and installation/auth recovery. Test allocation: 175 lines above the 400-line allowance covers actual plugin-page install ownership across navigation, correlated failure/retry/success, MCP cancellation/expiry/retry, and same-client reconnect settlement. Reuse the approved media. Co-authored-by: Patrick-Erichsen <[email protected]> * improve(ui): restore ready-to-install card subtext Show localized Ready to install only for authoritative uninstalled, installable recommendations. Preserve checking, unavailable, permission, installation and connection states. Retain the existing 175-line lifecycle test allocation and prior proof. Add the requested label to the existing available/unavailable regression and production-browser matrix without new ownership or styling. Co-authored-by: Patrick-Erichsen <[email protected]> --------- Co-authored-by: Patrick-Erichsen <[email protected]>
What Problem This Solves
Chat plugin cards do not show installation and browser-connection progress or recovery clearly enough.
User Impact
User impact: users can follow installation, connect a configured MCP server, cancel or retry authorization, and distinguish Installed from Connected in the chat card. Cards are larger, responsive, and keep status and spinners beneath the title. Uninstalled, installable cards show “Ready to install”; unavailable, restricted and checking cards do not. No configuration changes or migration are required.
Integrations without a shared account model keep Manage: this does not invent account counts, Add account, or a separate Reconnect state. Disabled plugins continue through the existing Manage/consent flow.
Why This Change Was Made
Admitted installation receipts now belong to one application-Gateway-scoped owner instead of disappearing with the plugin page. The card consumes those receipts and reuses the existing MCP wizard for authorization URLs, confirmed cancellation, typed expiry, retry, and authoritative reinspection. Existing installation and enablement admission stays in the plugin consent flow.
Evidence
Previous-head CI (historical; not the copy correction): run44007460768, head
e1b40862dbc97013307c7aa3ba703369fa590ac9, is still failed, not green. The initial reconnect, suppression, cursor and CSS failures are repaired; performance, all three UI shards, nine E2E shards, lint/types/ratchets and applicable security checks pass. Remaining failures are a60-second cold runtime-build timeout and a30-second Dashboard Restore split menu timeout. Their owners and runtime/build inputs are unchanged from the actual tested main baseline; the failed UI snapshot contains no plugin cards or changed lazy plugin resources. Both original cases passed bounded local and baseline replay, which does not establish a fix or matching baseline failure. The independent causality review found no concrete PR-caused route but retained attribution uncertainty; no inherited-only waiver is claimed. Native auto-merge was canceled and its retirement verified while that investigation remains open.CI correction proof: the full-bundle native correction comparison,
pnpm ui:check-performance:base b601a4b206c26148365c17210e94fed5d8421670on Node 24.22.1, passes: total CSS 337,296 → 337,310 B gzip (+14 B), 1,740,068 → 1,740,080 B raw (+12 B). Keep fixed total-CSS ceilings at 337,312 B gzip / 1,740,234 B raw, preserve approved card geometry, and do not add boot requests. Failed incoming CI measured 337,391 B gzip / 1,740,524 B raw against base 337,279 B / 1,740,068 B. The existing base itself has the same 21 chat requests and 59,194 B largest CSS asset; unchanged baseline violations are not relabeled green. No budget or baseline exception is added.The incoming CI reconnect, suppression-inventory and cursor-policy failures are repaired.
pnpm test:ci-failed 200343 --runpasses those cases and all eight forwarded-browser tests. Its original cold-build timeout was not reproduced (39.6 s, below 60 s), but a different standalone session-transcript worker-graph assertion fails locally (623 forbidden inputs). The graph contains no PR paths; tracked inputs, supporting test/build sources and lock match the fork base. Dependency/generated identities were not independently compared. That investigated local failure remains recorded—not relabeled passing or fixed—and exact new-head hosted CI is still required.The screenshots use the actual production Control UI with synthetic Gateway and authorization-service responses, not live plugin installation or external credentials. The clean/annotated comparison is dark theme at 1280×900; the state gallery is light theme, with separate 393×852 available and authorization mobile captures. Clean and annotated comparisons, the supported-state gallery, and mobile captures are embedded below.
Current available-state correction
Patrick requested restoring Ready to install only for uninstalled, installable cards. No other state copy, Dismiss action, styling or state ownership changed. Before:
e1b40862dbc97013307c7aa3ba703369fa590ac9. After:deeb676db02a8a84e64126d7af2227b863279f1b. Matched light-theme Calendar captures, 1280×900 viewport; same-frame 640×108 card crops below. Actual production UI with synthetic Gateway data.Before
After
The updated regression is red on the preceding head and green here. All 28 focused component/lazy tests, the production-browser lifecycle-state matrix, scoped lint/format, UI types and i18n verification pass. Fresh independent review found no actionable defects. New-head CI44011314425 completed successfully on attempt1; no checks were rerun. Applicable dependency/security-sensitive reviews pass. The enforced CI-gate and applicable security reviews now pass; previous-head timeout failures remain historical failed evidence, not waived.
Historical initial-redesign comparison
The following initial-redesign frames predate the requested Ready to install copy correction; the pair above shows the current available state.
Clean comparison
Before
After
Annotated comparison
Before
After
The approved media is reused; the correction reran all four production-bundle browser scenarios after CSS consolidation and reconnect recovery changes. Before: d29fad4. After: the tested tree published as 3b7db1e; its tree is identical to verified source head 8086e09.
Supported state gallery
Available is refreshed from the copy correction; all other still-valid production-owner captures are reused without reuploading their standalone assets.
Installation and browser-authorization transitions run through the production UI owners against synthetic Gateway and authorization-service responses. These are not live external credentials or real plugin installation.
Mobile
Scope and proof budget
This is one coherent lifecycle change: the appearance-only slice did not cover the approved Installing/cancellation flows. Page-local installation tracking was removed rather than duplicated; MCP authorization continues through the existing owner. The 175-line allocation covers the excess over the normal 400-line allowance for production-owner transition across navigation, correlated failure/retry/success, MCP cancellation/expiry/retry, responsive browser proof and same-client reconnect settlement. Preserve that rationale in the squash body.
Design and direction: @Patrick-Erichsen.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by