Skip to content

fix(ui): retire stale plugin lifecycle feedback - #127273

Merged
steipete merged 1 commit into
mainfrom
codex/autoqa-plugin-feedback
Aug 21, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/autoqa-plugin-feedback

Conversation

@steipete

@steipete steipete commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes two manifestations of stale Plugins-page lifecycle feedback:

  • uninstalling and then reinstalling a plugin could leave a page-level “Removed” notice beside the row’s current “Installed” result;
  • a delayed uninstall on one row could republish its global removal notice after a newer lifecycle action had started on another row.

Why This Change Was Made

The shared plugin-mutation owner now retires an obsolete page-level notice whenever it accepts a newer install, enable, disable, or uninstall action. Its existing monotonic mutation token also acts as the page-wide action epoch: successful uninstall publishes a removal notice only while it still owns the newest accepted action. Per-row mutation tokens continue to own independent row completion, so overlapping actions still reconcile their committed plugin and catalog state.

Production LOC: +16/-12 | Tests: +87/-0

User Impact

Plugin lifecycle feedback now reflects the newest accepted action. Reinstalling a plugin after removal shows only the current installed result, and a late completion on another row cannot restore obsolete page-level feedback.

Evidence

An authentic real source-mode Chromium regression was captured before the production edit. The full lifecycle flow installed Calendar Plus, enabled Workboard, uninstalled Calendar Plus, switched to Discover, searched, and reinstalled the exact package. The baseline failed because .plugins-page-notice still contained one stale removal notice after the row reported successful installation (expected 0, received 1).

ClawSweeper then identified the cross-row ordering case. A focused pre-fix regression deferred plugins.uninstall, completed a newer enable action on another row, and resolved the older uninstall. The existing branch failed because the old completion republished “Removed community-thing” (expected null, received the stale success notice). The final owner repair makes that same regression pass while retaining the newer row’s “Enabled Workboard” result.

Final verification on rebased head eb613fbe7a7c4a7ce3a65075cc7759598b49e2e4:

  • 78/78 plugin owner/unit tests passed;
  • all 6/6 Plugins mocked-Gateway E2E cases passed;
  • the full changed-file format, type, lint, guard, and test gate passed;
  • the rebase onto current origin/main was patch-identical;
  • fresh final Codex autoreview found no accepted/actionable finding and rated the patch correct at 0.97 confidence;
  • live open issue/PR searches found no exact duplicate.

The browser scenario also asserts the exact reinstall request { source: "clawhub", packageName: "calendar-plus" }, the enabled installed row, current row-scoped success feedback, the absent stale page notice, and the existing Installed/mobile continuation.

Before After
Plugins page showing contradictory Removed and Installed notices Plugins page showing only the current Installed notice

AI-assisted implementation and verification; no agent transcript is attached.

@clawsweeper

clawsweeper Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Aug 21, 2026
@steipete
steipete marked this pull request as ready for review August 21, 2026 16:20
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 21, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 21, 2026
@clawsweeper

clawsweeper Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 21, 2026, 1:06 PM ET / 17:06 UTC.

ClawSweeper review

What this changes

The PR clears obsolete Plugins-page removal feedback when a newer plugin lifecycle action starts and prevents an older uninstall from republishing it later.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

The revised head addresses the prior cross-row ordering finding with a page-wide freshness guard; no blocking correctness issue was found. Exact-head CI is still running, and the protected maintainer label keeps landing human-owned.

Priority: P2
Reviewed head: eb613fbe7a7c4a7ce3a65075cc7759598b49e2e4

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) The patch directly repairs the responsible UI owner, resolves the prior ordering finding, and has visible before/after proof plus focused regression coverage.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Chromium screenshots directly show the contradictory Removed-plus-Installed state disappearing after reinstall; the PR also supplies matching source-mode E2E coverage.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after Chromium screenshots directly show the contradictory Removed-plus-Installed state disappearing after reinstall; the PR also supplies matching source-mode E2E coverage.
Evidence reviewed 7 items Current-main defect: Current main clears only same-row completions: an uninstall on one row can still assign the shared page notice after a newer action on another row.
Owner-boundary repair: The PR clears the notice when accepting a mutation and only lets uninstall publish it while its row is current and its token is the newest page action.
Ordering regression coverage: The focused owner test defers an uninstall, completes a newer enable action, resolves the uninstall, and asserts the page notice stays absent while the newer row result remains visible.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs run ui/src/pages/plugins/plugins.e2e.test.ts

Result: FAIL (partial) — step 2 expect_output Control UI Plugins mocked Gateway E2E: expected terminal output was not visible within 30 seconds: "Control UI Plugins mocked Gateway E2E"

node scripts/run-vitest.mjs run ui/src/pages/plugins/plugins.e2e.test.tsrunner@runnervm76f27:/tmp/clawsweeper-live-proof-127273-YmSN2D/target$ node scripts/run-
vitest.mjs run ui/src/pages/plugins/plugins.e2e.test.ts
[test] starting test/vitest/vitest.ui-e2e.config.ts
[test] preflight test/vitest/vitest.ui-e2e.config.ts
node scripts/run-vitest.mjs run ui/src/pages/plugins/plugins.e2e.test.ts
[ui-e2e] Using system Chromium at /usr/bin/chromium-browser.
Downloading FFmpeg (playwright ffmpeg v1011) from https://cdn.playwright.dev/dbazure/download/playwright/builds/ffmpeg/1011/ffmpeg-linux.zip
|                                                                                |   0% of 2.3 MiB
|■■■■■■■■                                                                        |  10% of 2.3 MiB
|■■■■■■■■■■■■■■■■                                                                |  20% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■                                                        |  30% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                                |  40% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                        |  50% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                |  60% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                        |  70% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                |  80% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■        |  90% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 2.3 MiB
FFmpeg (playwright ffmpeg v1011) downloaded to /tmp/clawsweeper-live-proof-127273-YmSN2D/profile/cache/ms-playwright/ffmpeg-1011

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-127273-YmSN2D/target






























Assertions:

  • FAIL expect_output: Control UI Plugins mocked Gateway E2E

How this fits together

The Control UI Plugins page calls Gateway plugin operations through a shared mutation owner, then renders row-specific results and a page-level removal notice. The change makes that shared notice follow the newest accepted page action while leaving row completion independent.

flowchart LR
A[Plugin lifecycle action] --> B[Plugins page]
B --> C[Shared mutation owner]
C --> D[Gateway plugin operation]
C --> E[Row-specific feedback]
C --> F[Page removal notice]
D --> C
C --> G[Refreshed plugin catalog]
Loading

Before merge

  • Resolve merge risk (P1) - The repair has a small production increase (+5 lines); it is justified by distinguishing row-current work from page-current feedback, but exact-head hosted checks are still in progress.
Agent review details

Security

None.

PR surface

Source +5, Tests +87. Total +92 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 17 12 +5
Tests 2 87 0 +87
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 104 12 +92

Review metrics

Metric Value Why it matters
Production versus regression coverage production +5 (17 added, 12 removed); tests +87 The small owner-boundary increase carries the page-wide epoch predicate, while the added tests cover both the deferred ordering failure and the visible reinstall flow.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the page-wide freshness predicate in the shared mutation owner and land after the current-head required checks pass; no broader catalog or Gateway change is needed.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the page-wide freshness predicate in the shared mutation owner and land after the current-head required checks pass; no broader catalog or Gateway change is needed.

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

Yes. On current main, defer an uninstall, complete a newer action on a different plugin row, then resolve the uninstall; the existing row-local guard permits the stale shared notice, and the added regression encodes that sequence.

Is this the best way to solve the issue?

Yes. The shared mutation owner is the correct place to distinguish page-wide freshness from row-local completion; moving the guard into a row renderer or Gateway operation would not own the stale UI state.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 081810c9be95.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after Chromium screenshots directly show the contradictory Removed-plus-Installed state disappearing after reinstall; the PR also supplies matching source-mode E2E coverage.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after Chromium screenshots directly show the contradictory Removed-plus-Installed state disappearing after reinstall; the PR also supplies matching source-mode E2E coverage.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after Chromium screenshots directly show the contradictory Removed-plus-Installed state disappearing after reinstall; the PR also supplies matching source-mode E2E coverage.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This repairs stale, contradictory plugin lifecycle feedback in the Control UI without a broader delivery, auth, or data-loss impact.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after Chromium screenshots directly show the contradictory Removed-plus-Installed state disappearing after reinstall; the PR also supplies matching source-mode E2E coverage.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after Chromium screenshots directly show the contradictory Removed-plus-Installed state disappearing after reinstall; the PR also supplies matching source-mode E2E coverage.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after Chromium screenshots directly show the contradictory Removed-plus-Installed state disappearing after reinstall; the PR also supplies matching source-mode E2E coverage.

Evidence

What I checked:

Likely related people:

  • steipete: Current-main blame attributes the shared Plugins-page mutation owner to Peter Steinberger, who is represented by this PR's maintainer account. (role: introduced the current mutation-owner behavior; confidence: medium; commits: 75c44b2b98d5; files: ui/src/pages/plugins/plugins-page.ts, ui/src/pages/plugins/plugins-page.test.ts)

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-08-21T16:26:18.748Z sha c13bcddb3f9de7e48a7bc84adc2b398a55e0c9de :: needs changes before merge. :: [P2] Fence page notices against later lifecycle actions

@steipete
steipete force-pushed the codex/autoqa-plugin-feedback branch from c13bcdd to eb613fb Compare August 21, 2026 16:59
@steipete steipete changed the title fix(ui): clear stale plugin removal notice after reinstall fix(ui): retire stale plugin lifecycle feedback Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

Addressed ClawSweeper’s P2 cross-row ordering finding on final head eb613fbe7a7c4a7ce3a65075cc7759598b49e2e4.

The shared mutation token now also fences page-wide notice publication: an uninstall may publish “Removed” only while it remains the newest accepted lifecycle action. Per-row tokens still own independent row completion, so both committed mutations continue to reconcile normally.

Added an authentic deferred regression that starts uninstall on community-thing, completes a newer Workboard enable, then resolves the older uninstall. Before the repair it failed because “Removed community-thing” reappeared; now the page notice stays absent and the newer Enabled Workboard row result remains.

Final rebased proof:

  • node scripts/run-vitest.mjs run ui/src/pages/plugins/plugins-page.test.ts ... — 78/78 owner tests passed
  • node scripts/run-vitest.mjs run ui/src/pages/plugins/plugins.e2e.test.ts — 6/6 source-Chromium mocked-Gateway E2Es passed
  • node scripts/check-changed.mjs — full changed-file gate passed
  • final Codex autoreview — clean, patch correct at 0.97 confidence
  • patch ID remained 7f80066cefa13a2cb2a299783af442bb9c3b2586 across the rebase onto current origin/main

This applies both rank-up moves from the current review; no review item was skipped.

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready on exact head eb613fbe7a7c4a7ce3a65075cc7759598b49e2e4.

The shared Plugins mutation owner now gives every accepted lifecycle activation page-wide feedback ownership while retaining row-scoped completion ownership. This fixes both the original uninstall-then-reinstall stale notice and the deferred cross-row ordering race without serializing independent plugin rows.

Final proof:

  • authentic pre-fix source-Chromium uninstall/reinstall failure showed contradictory Removed and Installed feedback; the before and after screenshots were inspected
  • authentic deferred cross-row regression failed before the final repair because an older uninstall republished Removed community-thing after a newer Workboard enable
  • node scripts/run-vitest.mjs run ui/src/pages/plugins/plugins-page.test.ts ... — 78/78 owner tests passed
  • node scripts/run-vitest.mjs run ui/src/pages/plugins/plugins.e2e.test.ts — 6/6 source-Chromium mocked-Gateway E2Es passed
  • node scripts/check-changed.mjs — full changed-file gate passed
  • fresh Codex autoreview — clean, patch correct at 0.97 confidence
  • ClawSweeper review — no actionable findings on this head; prior P2 finding and both rank-up moves resolved
  • exact-head hosted CI run 32505818942 — green
  • repo-native review artifacts validated; OPENCLAW_TESTBOX=1 scripts/pr prepare-run 127273 passed hosted CI/Testbox gates

Production LOC: +17/-12 (net +5); tests: +87/-0. The small production increase adds the missing page-wide ownership predicate at the existing shared owner. No known proof gaps remain.

@steipete
steipete merged commit f9b5693 into main Aug 21, 2026
168 checks passed
@steipete
steipete deleted the codex/autoqa-plugin-feedback branch August 21, 2026 17:32

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 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: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S 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.

2 participants