Repository navigation
fix(ui): retire stale plugin lifecycle feedback - #127273
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 21, 2026, 1:06 PM ET / 17:06 UTC. ClawSweeper reviewWhat this changesThe PR clears obsolete Plugins-page removal feedback when a newer plugin lifecycle action starts and prevents an older uninstall from republishing it later. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessThe 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 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherThe 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]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +5, Tests +87. Total +92 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
c13bcdd to
eb613fb
Compare
|
Addressed ClawSweeper’s P2 cross-row ordering finding on final head 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 Final rebased proof:
This applies both rank-up moves from the current review; no review item was skipped. |
|
Land-ready on exact head 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:
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. |
|
Merged via squash.
|
What Problem This Solves
Fixes two manifestations of stale Plugins-page lifecycle feedback:
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-noticestill 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:origin/mainwas patch-identical;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.AI-assisted implementation and verification; no agent transcript is attached.