Repository navigation
feat(ui): let admins dismiss the sidebar update indicator - #128365
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 23, 2026, 5:43 PM ET / 21:43 UTC. ClawSweeper reviewWhat this changesAdds a Control UI update-dismissal control shared by the sidebar footer and Inbox, scoped to the update target and current Gateway boot. Merge readinessKeep open: the previous P1 remains on the current head—legacy browser-local update dismissals are silently discarded, re-showing the footer and Inbox update surfaces after upgrade. Likely related people: Vyctor H. Brzezowski (recent source owner, medium) and Peter Steinberger (original dismissal owner, medium). Priority: P3 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherThe Gateway includes a boot generation in its WebSocket hello response; the Control UI combines that lifecycle fact with browser-local dismissal state to decide whether update attention appears in the sidebar, Inbox, and account menu. flowchart LR
A[Gateway boot lifecycle] --> B[WebSocket hello]
B --> C[Control UI update state]
D[Browser-local dismissal] --> E[Attention decision]
C --> E
E --> F[Sidebar and Inbox]
E --> G[Account-menu reminder]
Decision needed
Why: The repair is mechanical, but accepting this new operator-facing behavior and protocol fact remains a maintainer product-scope choice. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +467, Tests +376, Other -1. Total +842 across 39 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: At the UI persistence owner, recognize a legacy update signature only when it matches the live update state, convert it to the target-and-boot fact, persist that conversion, and cover both legacy storage forms. Do we have a high-confidence way to reproduce the issue? Yes, from source: load a legacy updateAvailable string or array into the browser-local dismissal key while the matching update is active; the current loader drops it and the sidebar and Inbox reappear. Is this the best way to solve the issue? No: the UI owner must preserve or narrowly migrate matching legacy update dismissals before replacing their stored representation. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3dd3003f49ce. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
375c713 to
6233541
Compare
6233541 to
3eae85c
Compare
|
Land-ready at Verified:
ClawSweeper rank-up skip: the cited legacy Known proof gap: lifecycle producer and hello propagation are covered separately; no single WebSocket test spans two independently started Gateway process generations. The attached desktop/mobile visual evidence covers footer/Inbox synchronization, account reminder, read-only behavior, and restart resurfacing. |
|
Merged via squash.
|
…28365) * feat(ui): let admins dismiss the sidebar update indicator Refs openclaw#128232 * refactor(ui): clean up update dismissal flow * fix(ui): align update action state * fix(ui): keep update reconciliation non-actionable * fix(ui): preserve update reconciliation visibility * fix: validate update dismissal facts * fix(ui): resurface active updates * fix(ui): show applying update campaigns * fix(gateway): preserve boot identity * perf(ui): split sidebar update styles * fix(test): provide captured plugin runtime












Closes #128232
What Problem This Solves
Resolves a problem where administrators could not temporarily clear the sidebar update indicator after acknowledging an available update, leaving both the footer and Inbox attention surfaces persistently occupied.
Why This Change Was Made
Restores the existing sidebar update presentation and gives administrators one synchronized dismissal for the footer and Inbox, scoped to the target update and current Gateway boot. A new target or Gateway restart restores the indicator, while active, blocked, or failed update states surface immediately. Read-only operators continue to see update status without receiving the dismiss control.
User Impact
Administrators can hide an acknowledged update until the next restart or update, then still find a discreet “Update available” chip in the account menu. The update automatically returns when it becomes operationally relevant.
Evidence
The recording shows hover and dismiss animation, synchronized footer/Inbox removal, the account-menu chip, and reappearance after a simulated Gateway restart.
update-dismiss-full-flow.webm
Dark Desktop
Dark Mobile
Validation:
pnpm test ui/src/components/sidebar-attention.test.ts src/gateway/server-start.boot-id.test.ts src/gateway/server/ws-connection/connect-hello.update-scope.test.tsnode scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/update-confirmation.e2e.test.tsOPENCLAW_VITEST_MAX_WORKERS=2 node scripts/check-changed.mjspnpm ui:buildorigin/main: no actionable correctness regressions.New tests: 9 declarations (13 cases), all fail on their owning pre-fix revisions. Proof: focused unit and E2E commands above; the pre-fix browser run records the expected 12px-vs-8px and reconciliation-actionability failures.
Diff classification: production
+454/-82; tests, test support, mock fixture, and baseline+477/-8. Production growth implements the new dismiss capability and carries the Gateway boot identity needed to expire that fact. Test growth covers dismissal lifecycle and failure resurfacing, the Gateway protocol boundary, and the real footer/Inbox browser flow.