Skip to content

feat(ui): let admins dismiss the sidebar update indicator - #128365

Merged
vyctorbrzezowski merged 11 commits into
mainfrom
feat/sidebar-update-dismiss
Aug 23, 2026
Merged

vyctorbrzezowski merged 11 commits into
mainfrom
feat/sidebar-update-dismiss

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Aug 23, 2026 •

Copy link
Copy Markdown
Member

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

Desktop dark
Rest
Update indicator at rest
Hover
Dismiss control on hover
Tooltip
Dismiss tooltip
Inbox before dismiss
Inbox with update
Inbox after dismiss
Inbox without update
Account chip
Account menu update chip
Read-only operator
Read-only operator without dismiss control

Dark Mobile

Mobile dark
Rest
Mobile update indicator
Inbox before dismiss
Mobile Inbox with update
Inbox after dismiss
Mobile Inbox without update
Account chip
Mobile account menu update chip
Read-only operator
Mobile read-only operator without dismiss control

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.ts
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/update-confirmation.e2e.test.ts
  • OPENCLAW_VITEST_MAX_WORKERS=2 node scripts/check-changed.mjs
  • pnpm ui:build
  • Recursive review against origin/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.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 23, 2026
@clawsweeper

clawsweeper Bot commented Aug 23, 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 app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Aug 23, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Light-theme visual matrix (current head):

Desktop light
Rest
Light desktop update indicator
Hover
Light desktop dismiss hover
Tooltip
Light desktop dismiss tooltip
Inbox before dismiss
Light desktop Inbox with update
Inbox after dismiss
Light desktop Inbox without update
Account chip
Light desktop account menu chip
Read-only operator
Light desktop read-only operator
Mobile light
Rest
Light mobile update indicator
Inbox before dismiss
Light mobile Inbox with update
Inbox after dismiss
Light mobile Inbox without update
Account chip
Light mobile account menu chip
Read-only operator
Light mobile read-only operator

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review August 23, 2026 21:03
@vyctorbrzezowski
vyctorbrzezowski requested a review from a team as a code owner August 23, 2026 21:03
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 23, 2026
@clawsweeper

clawsweeper Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 23, 2026, 5:43 PM ET / 21:43 UTC.

ClawSweeper review

What this changes

Adds a Control UI update-dismissal control shared by the sidebar footer and Inbox, scoped to the update target and current Gateway boot.

Merge readiness

⚠️ Ready for maintainer review - 5 items remain

Keep 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
Reviewed head: 62335416c7d12def9713038c453671f6d76782ac
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The visible interaction proof is strong and the Gateway path is coherent, but the blocking persisted-state migration remains unresolved.
Proof confidence 🦞 diamond lobster (5/6) Not applicable: The MEMBER-authored PR is exempt from the contributor proof gate; its body nevertheless includes an after-fix recording and desktop/mobile visual evidence.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the contributor proof gate; its body nevertheless includes an after-fix recording and desktop/mobile visual evidence.
Evidence reviewed 8 items Current-main persisted contract: Current main keeps updateAvailable in the generic dismissal map and accepts either a string or string array, establishing the legacy browser-local shape that this PR replaces.
Legacy signature producer: Current main creates the old update dismissal signature from current update, campaign, and status state, then persists it through addDismissal.
Current-head compatibility loss: The new loader only retains updateAvailable when it is an object containing version and gatewayBootId; a legacy string or array is omitted.
Findings 1 actionable finding [P1] Migrate existing update dismissals before replacing their stored shape
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/update-confirmation.e2e.test.ts

Result: FAIL (failed) — step 1 run node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/update-confirmation.e2e.test.ts: terminal command did not produce output within 20 seconds: "node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/update-confirmation.e2e.test.ts"

node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/update-confirmation.e2e.test.ts
runner@runnervm76f27:/tmp/clawsweeper-live-proof-128365-GwxquB/target$ node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoad
er runner ui/src/e2e/update-confirmation.e2e.test.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-128365-GwxquB/target

node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/update-confirmation.e2e.test.ts












































Assertions:

  • FAIL expect_output: shares one dismissal across the footer and Inbox until the Gateway boot changes

How this fits together

The 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]
Loading

Decision needed

Question Recommendation
Should the Control UI add this per-Gateway update-dismissal behavior and its boot-ID protocol surface once existing browser-local dismissals are preserved on upgrade? Sponsor with compatibility repair: Keep the feature, first preserving matching legacy update acknowledgements and adding focused upgrade coverage.

Why: The repair is mechanical, but accepting this new operator-facing behavior and protocol fact remains a maintainer product-scope choice.

Before merge

  • Migrate existing update dismissals before replacing their stored shape (P1) - The prior UI stores updateAvailable as a signature string or array, but this loader only accepts the new object. An upgrade therefore drops a matching acknowledgement and immediately re-shows the footer and Inbox. Retain or convert a matching legacy signature once the current target and boot ID are known, and cover both legacy forms.
  • Resolve merge risk (P1) - Merging silently resets existing browser-local update acknowledgements because the new record cannot read the legacy string or array form.
  • Resolve merge risk (P1) - The review environment could not run pnpm commands because Corepack attempted an inaccessible cache write, and GitHub/network history reads failed DNS resolution; no local test run was performed.
  • Complete next step (P2) - A narrow code repair is clear, but this maintainer-authored, maintainer-labeled feature also needs product sponsorship before merge.

Findings

  • [P1] Migrate existing update dismissals before replacing their stored shape — ui/src/components/sidebar-attention-dismissals.ts:50-55
Agent review details

Security

None.

PR surface

Source +467, Tests +376, Other -1. Total +842 across 39 files.

View PR surface stats
Area Files Added Removed Net
Source 25 549 82 +467
Tests 12 382 6 +376
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 1 2 -1
Total 39 932 90 +842

Review metrics

Metric Value Why it matters
Production versus test delta production +454/-82; tests/support +477/-8 The positive production growth implements a new UI capability and Gateway lifecycle projection; the missing upgrade migration is the material remaining concern.

Stored data model

Persistent data-model change detected: vector/embedding metadata: ui/src/components/sidebar-attention.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #128232
Summary: This PR is the explicitly linked implementation candidate for the related feature request.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Preserve matching legacy dismissals (recommended)
    Convert a matching legacy update signature to the new target-and-boot record and prove both legacy storage forms retain the acknowledgement only for the current live target.
  2. Accept an intentional reset
    Merge only if maintainers explicitly choose to reset all pre-existing update dismissals and document that upgrade behavior in the PR.

Technical review

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

  • [P1] Migrate existing update dismissals before replacing their stored shape — ui/src/components/sidebar-attention-dismissals.ts:50-55
    The prior UI stores updateAvailable as a signature string or array, but this loader only accepts the new object. An upgrade therefore drops a matching acknowledgement and immediately re-shows the footer and Inbox. Retain or convert a matching legacy signature once the current target and boot ID are known, and cover both legacy forms.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 3dd3003f49ce.

Labels

Label changes:

  • add proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. The MEMBER-authored PR is exempt from the contributor proof gate; its body nevertheless includes an after-fix recording and desktop/mobile visual evidence.

Label justifications:

  • P3: This is a non-blocking Control UI attention-management feature.
  • merge-risk: 🚨 compatibility: The PR changes the persisted browser-local update dismissal from a legacy signature to a structured target-and-boot record.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The MEMBER-authored PR is exempt from the contributor proof gate; its body nevertheless includes an after-fix recording and desktop/mobile visual evidence.
  • proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. The MEMBER-authored PR is exempt from the contributor proof gate; its body nevertheless includes an after-fix recording and desktop/mobile visual evidence.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Current-main blame attributes the legacy dismissal shape and signature path to commit b977ccb, and this PR continues work on that owner boundary. (role: recent area contributor; confidence: medium; commits: b977ccb21e2b, 62335416c7d1; files: ui/src/components/sidebar-attention-dismissals.ts, ui/src/components/sidebar-attention.ts)
  • Peter Steinberger: Commit 3e21c2f introduced the sidebar attention-dismissal feature whose stored update record this PR changes. (role: introduced dismissal behavior; confidence: medium; commits: 3e21c2f2567e; files: ui/src/components/sidebar-attention-dismissals.ts, ui/src/components/sidebar-attention.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Migrate only a matching legacy update dismissal to the new target-and-boot fact.
  • Add string and array legacy-storage cases that fail before the migration and preserve unrelated dismissals.

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-23T21:10:59.850Z sha 375c713954480762c4aacecde06814195428584e :: found issues before merge. :: [P1] Migrate existing update dismissals before replacing their stored shape

@vyctorbrzezowski
vyctorbrzezowski force-pushed the feat/sidebar-update-dismiss branch from 375c713 to 6233541 Compare August 23, 2026 21:35
@clawsweeper clawsweeper Bot added the proof: 🎥 video Contributor real behavior proof includes video or recording evidence. label Aug 23, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the feat/sidebar-update-dismiss branch from 6233541 to 3eae85c Compare August 23, 2026 22:13
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Land-ready at 3eae85cb5c3c6c60d1509474411fde36446083e5.

Verified:

  • Focused Gateway/UI Vitest: 72 passed.
  • Control UI update-confirmation E2E: 9 passed.
  • Captured registration and provider-auth parity regressions: 64 passed across three lanes.
  • node scripts/check-changed.mjs passed for both the UI and captured-runtime repairs.
  • pnpm build passed; Control UI startup CSS remains within the 45 KiB gzip budget.
  • Fresh autoreview --mode branch --base origin/main: no accepted/actionable findings.
  • Exact-head CI run 32669930649 passed: https://github.com/openclaw/openclaw/actions/runs/32669930649
  • Native OPENCLAW_TESTBOX=1 scripts/pr prepare-run 128365 passed using hosted exact-head gates.

ClawSweeper rank-up skip: the cited legacy updateAvailable string/array persistence shape does not appear in any release tag checked, including v2026.8.1-beta.2; it was a main-only intermediate shape, so adding a runtime migration would preserve an unshipped contract.

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.

@vyctorbrzezowski
vyctorbrzezowski merged commit 6669872 into main Aug 23, 2026
236 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

@vyctorbrzezowski
vyctorbrzezowski deleted the feat/sidebar-update-dismiss branch August 23, 2026 22:21
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 24, 2026
…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
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 cli CLI command changes gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts 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.

feat(ui): allow dismissing the sidebar update indicator

1 participant