Skip to content

improve(ui): show plugin card installation and connection states - #200343

Merged
roboclaw-bot merged 5 commits into
mainfrom
openclaw/plugin-card-lifecycle
Nov 17, 2026
Merged

roboclaw-bot merged 5 commits into
mainfrom
openclaw/plugin-card-lifecycle

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

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, heade1b40862dbc97013307c7aa3ba703369fa590ac9, 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 b601a4b206c26148365c17210e94fed5d8421670 on 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.

  • 99 focused component/owner/consumer tests pass, including fresh install-policy review after reconnect and preservation of admitted or saved/uncertain outcomes; including persisted installation outcomes, plugin generations, and wizard cancellation settlement.
  • Four production-bundle Chromium scenarios pass: mounted status updates; the supported state matrix and mobile wrapping; canonical page installation followed by navigation back to chat, failure, retry and success; and the actual MCP UI owner through browser authorization, cancellation, expiry, retry and connection. Focused final proof also verifies the application event-bus cutover and the Installing spinner's visible geometry/animation and busy accessibility.
  • The missing Installing transition is red on the prior candidate and green after the shared-owner change. A fresh independent review found an obsolete-failure recovery issue; its regression is red on the reviewed snapshot and green after authoritative reconciliation.
  • Production UI, chat-test, chat-E2E and plugin-page test typechecks pass. Scoped lint, CSS lint, formatter, Control UI ownership guards, i18n verification and diff checks pass. One retired direct-client event listener was removed from its exact baseline; no baseline was raised.
  • Final shared autoreview (Codex CLI, P0–P2), complete staged candidate against d29fad4: no actionable findings after the recovery repair. Local ClawSweeper was unavailable; exact-head CI remains landing follow-through.

The incoming CI reconnect, suppression-inventory and cursor-policy failures are repaired. pnpm test:ci-failed 200343 --run passes 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

Before: available Calendar card with blank subtext

After

After: available Calendar card shows Ready to install

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

Before: compact recommendation with a description and Install action

After

After: rounded recommendation with an icon tile and paired Details and Install actions

Annotated comparison

Before

Before: the original recommendation geometry is outlined

After

After: the larger rounded card and paired actions are outlined

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.

Actual production UI captures of checking, available, installing, installation failure and recovery, sign-in, browser authorization, cancellation, expiry, connection, signed-out, disabled, unavailable, restricted, service failure, and offline states

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

Available Browser authorization
Available plugin card at a 393 by 852 viewport Authorization card at a 393 by 852 viewport with wrapped status and accessible Reopen authorization and Cancel actions
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

roboclaw-bot and others added 3 commits November 17, 2026 00:59
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
@clawsweeper

clawsweeper Bot commented Nov 17, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. 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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 17, 2026
@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This 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.

  • Before: The chat recommendation cannot display the page-local installation progress.
  • After: The card shows Installing, then an authoritative installed state or a recovery action.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful direction with inspectable browser evidence, but a confirmed recovery regression and deterministic CI guard failures prevent merging.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected production-bundle browser captures exercise the changed card presentation and existing install/MCP owners through installation, failure, retry, cancellation, expiry, authoritative connection, and mobile layouts; external installation and authorization responses are explicitly synthetic.
Patch quality 🦪 silver shellfish (2/6) 3 actionable review findings remain.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Chat plugin recommendations provide little feedback while installation or account authorization is underway.
Reason: The maintainer-authored direction improves visible setup and recovery without adding configuration, a universal account model, or another authorization implementation.

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
Reviewed head: 3b7db1efd5f6de6445f9d40ff533d5a2ba06afa4

Before merge

  • [P2] Retire obsolete policy receipts on same-client reconnect (P2) - After an install returns the policy-review warning, this owner retains a finished receipt with canRetry=false. A same-client reconnect clears the consent owner's acknowledgement scope but leaves this receipt intact because only client replacement clears entries. After Continue installation requests a new review, PluginInstallAction still treats the retained receipt as active and renders View status instead of Install, preventing a fresh review request. The existing requires-a-fresh-install-policy-review-after-reconnect test fails with No plugin action matching Install. Retire the obsolete policy-warning receipt when its review scope is retired, while retaining admitted installations and saved or uncertain outcomes.
  • [P2] Account for the added subscription lint suppression (P2) - The added solid/reactivity suppression is absent from the explicit production-suppression inventory. CI's production lint suppressions test reports this exact new entry and fails checks-node-compact-small-1. Remove the suppression through an equivalent supported subscription form, or register this narrowly justified ordered-event exception in the existing inventory.
  • [P2] Preserve the shared cursor policy on the listing button (P2) - The unconditional cursor:pointer declaration adds a button selector outside the cursor policy's link/new-tab exceptions. CI's cursor-policy.node.test.ts reports this exact selector and fails the UI lane. Remove the override so this button continues to inherit the shared action cursor.
  • Resolve merge risk - Before merge, a maintainer must classify the remaining performance-budget and forwarded-disclosure CI failures; the available evidence does not establish whether this diff caused them.

Findings

  • [P2] [P2] Retire obsolete policy receipts on same-client reconnect — ui/src/pages/plugins/install-progress.ts:73-78
  • [P2] [P2] Account for the added subscription lint suppression — ui/src/pages/chat/components/chat-clawhub-card-body.tsx:299-301
  • [P2] [P2] Preserve the shared cursor policy on the listing button — ui/src/styles/chat/clawhub-card.css:29
Agent review details

How this fits together

Control 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
Loading

Technical review

Best 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:

  • [P2] [P2] Retire obsolete policy receipts on same-client reconnect — ui/src/pages/plugins/install-progress.ts:73-78
    After an install returns the policy-review warning, this owner retains a finished receipt with canRetry=false. A same-client reconnect clears the consent owner's acknowledgement scope but leaves this receipt intact because only client replacement clears entries. After Continue installation requests a new review, PluginInstallAction still treats the retained receipt as active and renders View status instead of Install, preventing a fresh review request. The existing requires-a-fresh-install-policy-review-after-reconnect test fails with No plugin action matching Install. Retire the obsolete policy-warning receipt when its review scope is retired, while retaining admitted installations and saved or uncertain outcomes.
    Confidence: 0.99
  • [P2] [P2] Account for the added subscription lint suppression — ui/src/pages/chat/components/chat-clawhub-card-body.tsx:299-301
    The added solid/reactivity suppression is absent from the explicit production-suppression inventory. CI's production lint suppressions test reports this exact new entry and fails checks-node-compact-small-1. Remove the suppression through an equivalent supported subscription form, or register this narrowly justified ordered-event exception in the existing inventory.
    Confidence: 1
  • [P2] [P2] Preserve the shared cursor policy on the listing button — ui/src/styles/chat/clawhub-card.css:29
    The unconditional cursor:pointer declaration adds a button selector outside the cursor policy's link/new-tab exceptions. CI's cursor-policy.node.test.ts reports this exact selector and fails the UI lane. Remove the override so this button continues to inherit the shared action cursor.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Provenance checked

  • Installation receipt ownership changes intended behavior with a stated reason (976cc1c: Progress correlation was folded into consent because it had one production consumer; the PR now needs application lifetime and a second consumer.)
  • Installation settlement and recovery keeps the original intent (87a4643: The final request result owns settlement, and saved, policy-continuation, or transport-unknown outcomes must not authorize duplicate installation.)
  • Chat sign-in action changes intended behavior with a stated reason (8737497: Account inspection exposed missing sign-in and routed users to canonical plugin details; this PR explicitly moves authorization presentation into the card using the same wizard.)
  • Deferred card status keeps the original intent (d33ff24: Keep lazy card rendering and retained artwork while authoritative asynchronous status controls installation actions.)
  • Card geometry and description changes intended behavior with a stated reason (5501fa9: Descriptions were clamped to keep recommendations compact; the approved redesign deliberately replaces that space with lifecycle status and larger geometry.)
  • Shared wizard cancellation keeps the original intent (287b38a: The runner owns cancellation settlement while presentation preserves visible failures and protected background completion.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test ui/src/pages/plugins/plugins-page.test.ts ui/src/pages/plugins/plugins-consent.test.ts ui/src/pages/chat/components/chat-clawhub-card.test.ts --maxWorkers=1
  • pnpm test test/scripts/lint-suppressions.test.ts ui/src/styles/cursor-policy.node.test.ts --maxWorkers=1
  • pnpm tsgo:ui
  • pnpm check:control-ui-controllers
  • pnpm ui:i18n:verify

What I checked:

Likely related people:

  • Patrick Erichsen: Raw commit 87a4643 adds ui/src/pages/plugins/install-progress.ts:4 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 87a464345229; files: ui/src/pages/plugins/install-progress.ts)
  • Peter Steinberger: Raw commit 18cd308 adds ui/src/components/wizard-login-controller.tsx:35 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 18cd3088f476; files: ui/src/components/wizard-login-controller.tsx)
  • RoboClaw: Raw commit 8737497 adds ui/src/pages/chat/components/chat-clawhub-card-body.tsx:177 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 873749707c73; files: ui/src/pages/chat/components/chat-clawhub-card-body.tsx)

PR surface

Source +416, Tests +526, Other +5. Total +947 across 14 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 8 638 222 +416
Tests 4 541 15 +526
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 6 1 +5
Total 14 1185 238 +947

Preflight source

Source 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

Metric Value Why it matters
Production versus test growth Production +416 lines; tests +526 lines Net changes against the pinned merge base include styles and English copy; growth supports shared receipt lifetime, inline authorization, and production-browser transition coverage.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The improvement has clear value, but its introduced recovery defect affects a limited plugin installation path.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

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]>
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) November 17, 2026 03:06
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]>
@roboclaw-bot
roboclaw-bot merged commit 8c089d5 into main Nov 17, 2026
116 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/plugin-card-lifecycle branch November 17, 2026 03:52
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 17, 2026
…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]>
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 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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant