Skip to content

fix(control-ui): keep the sidebar stable across deep-link reloads - #168206

Merged
steipete merged 25 commits into
mainfrom
steipete/coldload-sidebar-shape
Oct 11, 2026
Merged

steipete merged 25 commits into
mainfrom
steipete/coldload-sidebar-shape

Conversation

@steipete

@steipete steipete commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A signed-in reload of a dashboard deep link rebuilt the sidebar in stages. The campaign's original observation recorded 14 visible states over roughly 15 seconds; the selected row moved from slot 5 to slot 11. The original synthetic reproduction recorded 14 sidebar states and 10 selected-row movements.

User Impact

On reload the sidebar now paints once in its settled shape (synthetic proof on current main: 4 → 1 sidebar states, zero pinned-row movement; original reproduction 14 states and 10 selected-row movements) instead of reshuffling as roster, pins, and plugin rows arrive. Pre-hello routing and the first header read the same cached owner, so the page no longer shows interim session-group lists or an "Owner · Connecting…" footer when a cached profile exists.

Why This Change Was Made

One boot snapshot in the existing chat-snapshot IndexedDB database now owns the settled sidebar projection, primary session rows, routing defaults, and initial-read settlement. Pre-hello routing, the first header, and the sidebar share that owner. Connection or retirement releases routing waiters even when IndexedDB stalls.

Deleted all five legacy session-roster-cache* production modules (752 lines), their separate database lifecycle, and obsolete tests. Database version 6 starts best-effort deletion of openclaw-session-roster. Existing scope invalidation, 30-day expiry, eight-projection pruning, and 512 KiB record bound stay with the snapshot owner. No Gateway schema, durable server shape, config option, or protocol changes.

Main's compact personal navigation rail landed during this refresh. The snapshot also records its selected view, scope-switch visibility, dashboard rows, and resolved pin presentation. Missing personal references remain placeholders. A saved Pages catalog is admitted only for its exact nullable agent filter; selected-chat changes do not invalidate an all-agent Pages catalog. Cached rows stay display-only, actions retain live authority, the footer keeps truthful connection status, and chip snapshots are admitted only for their saved agent. Live handoff happens before rendering; persistence happens after the live render.

Evidence

Full UI e2e on the final head: 3,361 passed, 1 failed, 1 configured skip across 738 files; the single failure (Workboard native bundle overlay focus) reproduces on main 73f2255. Hosted CI on the exact head passed types, lint, guards, and all UI unit shards; checks-ui-e2e (4/9) failed only on that inherited Workboard test and fail-fast cancelled (7/9), whose files passed in the full local run. Details below.

Measurements and screenshots

The current-main comparison uses the same synthetic scenario on 53b811864752, after the rail migration:

Measurement Current main This PR
Sampled sidebar states 4 1
Sidebar state changes after first sample 3 0
Selected rail-pin movements 0 0
Selected pin bounds x=7.5, y=200, 36×60 x=7.5, y=200, 36×60

The rail already fixes the old selected-row movement. This change removes its remaining empty roster/placeholder identity sequence. The earlier pre-rail synthetic comparison was 14→1 states and 10→0 selected-row movements; it is a different layout and is not mixed into the current numbers. These are sidebar state/geometry measurements, not whole-page CLS or load-time claims.

Before hello on current main:

Current main, synthetic sidebar before hello

Before hello with the unified snapshot:

Unified snapshot, synthetic sidebar before hello

All captures use synthetic data and were inspected. No private campaign capture was uploaded.

Manifest

Regenerated with pnpm ui:boot-manifest:gen under the approved host-load limit; generated changes are separate build(control-ui): regenerate boot module manifest commits. No handwritten JSON changes. Both the deleted roster-cache modules and the lazy readiness adapter are absent.

The generator now disables the mock's automatic roster-readiness probe: that diagnostic read otherwise imports the lazy adapter and contaminates the measured boot graph. Existing browser tests verify zero adapter requests before its first explicit read. Other generated changes follow main's rail, capability/settings splits, plugin asset preloading, and Solid presentation modules. Solid loading-skeleton dependencies remain chat-specific rather than entering the New Session group. Final capture: 2,076 shared modules, 89 New Session-only modules, 337 chat-only modules; 15/16 dynamic entries.

Validation

Head: c1ee746907d7dd6a1afed6efb7b06d55ddb138d2. Contains db6449d3f609, 2bf00b83d309, and 4ceb3918b445. Fresh detached reviews are clean, including the rail adaptation and regenerated manifest.

Focused proof passed: snapshot lifecycle (21), snapshot admission (4), snapshot persistence (13), warm roster (31), session projection (36), row rendering (7), rail (19), Online workload (17), plugin runtime (16), bootstrap warm boot (6), route warm boot (11), chunking (5), readiness E2E (4), mobile/desktop PR presentation (12), sidebar cold load (1), dashboard cold load (1), and provider browser login (1). The cached-to-live plugin failure exposed a stale reference to main's removed plugin-navigation set; that path was deleted and the error-recovery E2E now passes. The dedicated Online view retains its empty list after the last user disconnects. The mobile PR test now waits for the same containment bounds after resizing; no bounds were relaxed.

The full canonical UI E2E suite completed on this exact head with node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --maxWorkers=2, with no include/exclude or real-Gateway skip flags. Wall time: 5,774.83 seconds (96m 15s). Result: 736 files passed, one failed, one skipped; 3,361 tests passed, one failed, one skipped.

Full-suite classification Result
All remaining 736 files Passed, including all 28 session-management files / 120 cases
Sidebar and dashboard cold load, readiness, live preferences, provider browser login Passed
ui/src/pages/workboard/workboard-native-bundle.e2e.test.ts — Chromium returns focus to the card after closing details Same line-199 failure as CI and clean current main 73f2255d77f0; inherited, outside the changed owners
ui/src/e2e/desktop-resize.real-gateway.e2e.test.ts Existing skipIf(!fixturePath) for the unconfigured external desktop carrier

The Workboard failure is the sole failed case in both final-head local proof and CI. The earlier full attempt was deliberately stopped when the independent Pages-scope regression was discovered; it is not counted as completed proof.

Testbox tbx_01m4janzqyr0swhz0e3jbmpq9g encountered two workspace-sync failures before testing and was stopped. Proof uses the authorized local fallback, one focused file at a time, and the explicit load-bounded full-suite/generator exceptions. No real account or operator Gateway was used.

Focused single-file wall times

Single-worker results from the repository runner (pnpm test <file> --maxWorkers=1, invoked through its equivalent node scripts/run-vitest.mjs entry); E2E uses the canonical UI configuration. Longer E2E files exercise browser navigation, persisted reload, or actual HTTPS Gateway/provider restart boundaries. CI UI job seconds are unavailable because fail-fast canceled those jobs.

File Wall seconds
ui/src/app/app-host-refresh-control-ui.test.ts 3.26
ui/src/app/bootstrap.warm-boot.test.ts 5.13
ui/src/app/control-ui-chunking.test.ts 3.07
ui/src/app/control-ui-favicon.browser.test.ts 3.64
ui/src/app/gateway-store.device-credential.test.ts 2.52
ui/src/components/app-sidebar-session-projection.test.ts 3.68
ui/src/components/app-sidebar-session-row-render.test.ts 4.42
ui/src/components/session-data-controller.warm-boot.test.ts 4.12
ui/src/components/app-sidebar-online.test.ts 9.04
ui/src/components/sidebar-online-order.test.ts 2.71
ui/src/components/sidebar-snapshot-controller.test.ts 3.78
ui/src/components/sidebar-snapshot-model.test.ts 2.99
ui/src/e2e/chat-footer.e2e.test.ts 28.95
ui/src/e2e/chat-pull-requests.e2e.test.ts 27.65
ui/src/e2e/dashboard-cold-load.e2e.test.ts 13.51
ui/src/e2e/provider-browser-login.real-gateway.e2e.test.ts 82.12
ui/src/e2e/session-active-resources.e2e.test.ts 37.30
ui/src/e2e/sidebar-cold-load.e2e.test.ts 15.72
ui/src/e2e/warm-boot.e2e.test.ts 30.73
ui/src/lib/agents/roster-activity-store.test.ts 3.09
ui/src/lib/sessions/session-presentation.test.ts 2.81
ui/src/lib/sessions/session-roster-warm-boot.test.ts 4.02
ui/src/pages/chat/session-snapshot-store.test.ts 6.30
ui/src/pages/chat/sidebar-snapshot-store.test.ts 3.24
ui/src/plugins/control-ui-runtime.test.ts 3.53

Exact-head CI

Run 38101487182 is terminal; it was not rerun. Native Workboard's Chromium overlay-focus assertion (workboard-native-bundle.e2e.test.ts:199) fails identically on clean current main 73f2255d77f0 (1 failed, 1 passed; WebKit passes). Its card does not regain focus after closing the dialog. This PR changes neither that test nor the Workboard focus owner.

Job class Result
Production types, all test-type stripes, lint Passed
Source contracts and architecture/other guards Passed
UI unit shards (3/3) Passed
Changed Node, boundary Node, compact Node shards Passed
Performance, i18n, security, fast ratchets/protocol, packaging/preflight Passed
Selected UI E2E Six shards passed; 4/9 failed on inherited Workboard focus; 7/9 canceled by fail-fast
CI gate Failed because of the inherited E2E assertion

Overall: 40 jobs passed, 22 skipped, one canceled, and two failures (the originating E2E shard and the gate). The separately required full UI suite completed with the same sole inherited Workboard failure.

Production size

The requested production-stat command reports +892 net lines (+1,860/-968), including +50 generated manifest lines. Excluding the manifest: +842, down from the original +1,202. Growth beyond the previously approved cutover carries main's new rail-view/scope and dashboard/pin presentation contracts, the pre-render live handoff, and generator instrumentation control; there is still one persistence owner, one database, and one initial-read lifecycle.

Per-file production LOC
File Added Removed Net
ui/config/control-ui-boot-modules.json 70 20 +50
ui/scripts/control-ui-boot-manifest.mts 5 1 +4
ui/src/app/bootstrap-warm-boot.ts 2 10 -8
ui/src/components/app-sidebar-base.ts 23 7 +16
ui/src/components/app-sidebar-online.ts 48 43 +5
ui/src/components/app-sidebar-personal-navigation.ts 13 1 +12
ui/src/components/app-sidebar-rail.ts 40 21 +19
ui/src/components/app-sidebar-render.ts 50 13 +37
ui/src/components/app-sidebar-session-list-render.ts 1 1 +0
ui/src/components/app-sidebar-session-navigation-logic.ts 44 2 +42
ui/src/components/app-sidebar-session-navigation.ts 22 6 +16
ui/src/components/app-sidebar-session-projection.ts 23 1 +22
ui/src/components/app-sidebar-session-row-render.ts 12 15 -3
ui/src/components/app-sidebar-session-types.ts 2 0 +2
ui/src/components/app-sidebar.ts 116 5 +111
ui/src/components/session-data-controller.ts 6 14 -8
ui/src/components/session-row-subtitle.ts 32 0 +32
ui/src/components/sidebar-agent-roster.ts 39 7 +32
ui/src/components/sidebar-navigation-catalog.ts 4 1 +3
ui/src/components/sidebar-online-order.ts 93 0 +93
ui/src/components/sidebar-snapshot-capture.ts 120 0 +120
ui/src/components/sidebar-snapshot-controller.ts 239 0 +239
ui/src/components/sidebar-snapshot-data.ts 140 0 +140
ui/src/components/sidebar-snapshot-model.ts 116 0 +116
ui/src/lib/agents/roster-activity-store.ts 21 8 +13
ui/src/lib/sessions/index.ts 13 7 +6
ui/src/lib/sessions/session-boot-roster.ts 88 0 +88
ui/src/lib/sessions/session-boot-snapshot.ts 128 0 +128
ui/src/lib/sessions/session-capability.ts 2 0 +2
ui/src/lib/sessions/session-roster-cache-database.ts 0 75 -75
ui/src/lib/sessions/session-roster-cache-lifecycle.ts 0 171 -171
ui/src/lib/sessions/session-roster-cache.reader.ts 0 256 -256
ui/src/lib/sessions/session-roster-cache.runtime.ts 0 167 -167
ui/src/lib/sessions/session-roster-cache.ts 0 83 -83
ui/src/pages/chat/session-snapshot-database.ts 46 21 +25
ui/src/pages/chat/session-snapshot-invalidation-events.ts 22 1 +21
ui/src/pages/chat/session-snapshot-invalidation.ts 1 1 +0
ui/src/pages/chat/session-snapshot-prewarm.ts 113 1 +112
ui/src/pages/chat/session-snapshot-store.ts 132 1 +131
ui/src/plugins/control-ui-capability.ts 1 0 +1
ui/src/plugins/control-ui-runtime.ts 22 0 +22
ui/src/styles/layout.css 1 1 +0
ui/src/test-helpers/app-sidebar.ts 1 0 +1
ui/src/test-helpers/control-ui-e2e-readiness.ts 6 4 +2
ui/src/test-helpers/control-ui-mock-presence.ts 3 3 +0

No merge requested or attempted.

@clawsweeper

clawsweeper Bot commented Oct 10, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XL labels Oct 10, 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 Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR restores sidebar presentation and initial session-routing facts from one scoped browser snapshot before live data arrives.

Example: Reload Project dashboard 6 while Gateway hello is delayed.

  • Before: The sidebar initially shows an empty roster and placeholder identity.
  • After: Saved dashboard rows, Harbor, Forge, Scout, rail pins, and Riley’s identity appear before hello.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Strong visual evidence supports a useful cutover, but the unresolved P2 finding and compatibility gate prevent merge readiness.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the running Control UI restoring saved sidebar rows and identity before hello in an isolated synthetic browser setup; the database-version change still needs a v2026.10.1-to-candidate existing-state upgrade run with sanitized output.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A signed-in deep-link reload shows an empty sidebar before rebuilding saved navigation and identity.
Reason: The maintainer-authored direction extends established warm rendering and demonstrates a remaining improvement after the rail migration.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this useful PR open; its unified snapshot remains distinct from main, but the previously reported live-handoff defect still blocks merge.

Priority: P2
Reviewed head: c1ee746907d7dd6a1afed6efb7b06d55ddb138d2

Before merge

  • Determine count readiness from live presence (P2) - In a profileless scope with profileId null, save a sidebar snapshot containing profile user Ada, then reload after Ada leaves and live presence contains no profile identities. The scope still matches, but this predicate reads saved Ada from sidebarOnlineOrder and waits for counts. SessionDataController.synchronizeOwnerSessionCounts uses live presence and supplies no session source, leaving counts and error null indefinitely. The snapshot therefore never releases, retaining stale navigation and disabling sidebar creation and mutation controls after live loading finishes. Derive readiness from the live presence/count owner and cover this transition through the actual sidebar lifecycle. This is the previously reported unresolved finding, verified again on the unchanged reviewed head.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

  • [P2] Determine count readiness from live presence — ui/src/components/app-sidebar.ts:133-138

Tests

  • Missing end-to-end proof: Show a v2026.10.1-to-candidate browser upgrade with existing settings and session data preserved; candidate-created reload fixtures do not establish that transition.
Agent review details

How this fits together

The Control UI projects Gateway sessions, agents, presence, and plugin navigation into the sidebar and stores scoped display and routing facts in its browser snapshot database.

flowchart TD
A[Gateway live data] --> B[Session and presence owners]
B --> C[Sidebar projection]
C --> D[Shared snapshot database]
D --> E[Scoped boot admission]
E --> F[Sidebar and route rendering]
B --> F
Loading

Technical review

Best possible solution:

Keep one scoped browser snapshot whose live handoff follows the current presence/count owner and preserves existing browser state through upgrade.

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

The supplied browser comparison demonstrates the reload problem, and the inspected production owners establish the cached-presence/live-count mismatch; no target code was executed.

Is this the best way to solve the issue?

Sharing the existing snapshot database removes competing cache lifecycles, but readiness must follow authoritative live presence rather than retained display membership.

Full review comments:

  • [P2] Determine count readiness from live presence — ui/src/components/app-sidebar.ts:133-138
    In a profileless scope with profileId null, save a sidebar snapshot containing profile user Ada, then reload after Ada leaves and live presence contains no profile identities. The scope still matches, but this predicate reads saved Ada from sidebarOnlineOrder and waits for counts. SessionDataController.synchronizeOwnerSessionCounts uses live presence and supplies no session source, leaving counts and error null indefinitely. The snapshot therefore never releases, retaining stale navigation and disabling sidebar creation and mutation controls after live loading finishes. Derive readiness from the live presence/count owner and cover this transition through the actual sidebar lifecycle. This is the previously reported unresolved finding, verified again on the unchanged reviewed head.
    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 medium; reviewed against 5b5a476b836e.

Provenance checked

  • Warm roster persistence and routing changes intended behavior with a stated reason (24ae0fc: Restore bounded, scoped cached rows before hello while preserving live reconciliation and releasing stalled routing waits.)
  • Account-scoped offline cache admission keeps the original intent (9764de1: Allow previously signed-in users to read retained conversations offline without assigning unscoped history to another account.)
  • Online people ordering and counts keeps the original intent (improve(ui): filter and sort online people #163664: Keep running activity visible and allow presence, workload, and name sorting through existing sidebar controls.)
  • Personal navigation rail keeps the original intent (fd01817: Separate destinations, conversations, and people while preserving personal preferences and live access boundaries.)
  • Incognito browser persistence keeps the original intent (7f50ce0: Keep Incognito history out of browser storage.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test ui/src/components/app-sidebar-session-row-render.test.ts --maxWorkers=1
  • pnpm test ui/src/components/sidebar-snapshot-controller.test.ts --maxWorkers=1
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/sidebar-cold-load.e2e.test.ts
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 0e7f8c9 adds ui/src/pages/chat/session-snapshot-database.ts:18 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0e7f8c9ce963; files: ui/src/pages/chat/session-snapshot-database.ts)
  • RoboClaw: Raw commit 8e57f54 adds ui/src/components/session-data-controller.ts:233 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 8e57f5447edd; files: ui/src/components/session-data-controller.ts)

PR surface

Source +889, Tests +1476, Docs +2. Total +2367 across 72 files. Added test files: 6.

View PR surface stats
Area Files Added Removed Net
Source 42 1850 961 +889
Tests 29 2076 600 +1476
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 72 3928 1561 +2367

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The reload improvement has limited scope, and the introduced handoff defect affects profileless reloads after the last profile user leaves.
  • 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.
  • 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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (23 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-10T18:55:42.223Z sha c269cfc7cd976764cc620bb188d5e18db53b7fdc :: blocked before merge. :: [P2] Determine count readiness from live presence
  • reviewed 2026-10-10T19:27:13.609Z sha 7040f0d82d719c231c01a0b36a996ca5f6df156a :: blocked before merge. :: [P2] Determine count readiness from live presence | [P2] Align chunking assertions with the regenerated lazy debug modules
  • reviewed 2026-10-10T19:55:58.494Z sha fdaff63 :: blocked before merge. :: [P2] Determine count readiness from live presence
  • reviewed 2026-10-10T23:42:13.571Z sha 580333826d7798a2f785ab0c1ced5df1e5cde2db :: blocked before merge. :: [P2] Determine count readiness from live presence
  • reviewed 2026-10-11T00:00:32.748Z sha 580333826d7798a2f785ab0c1ced5df1e5cde2db :: blocked before merge. :: [P2] Determine count readiness from live presence
  • reviewed 2026-10-11T00:56:39.551Z sha bb6691c :: blocked before merge. :: [P2] Determine count readiness from live presence
  • reviewed 2026-10-11T01:31:14.074Z sha c1ee746 :: blocked before merge. :: [P2] Determine count readiness from live presence
  • reviewed 2026-10-11T02:06:32.874Z sha c1ee746 :: blocked before merge. :: [P2] Determine count readiness from live presence

Reviewed October 10, 2026, 11:14 PM ET / October 11, 2026, 03:14 UTC (Revision 24).

@steipete
steipete force-pushed the steipete/coldload-sidebar-shape branch 2 times, most recently from 5c4c18d to b0629a8 Compare October 10, 2026 06:02
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 10, 2026
@steipete
steipete force-pushed the steipete/coldload-sidebar-shape branch from b0629a8 to 331ce3c Compare October 10, 2026 06:31
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Oct 10, 2026
@steipete
steipete force-pushed the steipete/coldload-sidebar-shape branch 5 times, most recently from 5c628e2 to 3cacc1d Compare October 10, 2026 13:28
@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Oct 10, 2026
@steipete
steipete force-pushed the steipete/coldload-sidebar-shape branch from 3cacc1d to fd412e5 Compare October 10, 2026 15:36
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Oct 10, 2026
@steipete
steipete force-pushed the steipete/coldload-sidebar-shape branch 2 times, most recently from c269cfc to 7040f0d Compare October 10, 2026 19:07
@steipete

Copy link
Copy Markdown
Contributor Author

Landed with an admin squash merge pinned to the reviewed head c1ee746907d7.

The only failing test on this head was ui/src/pages/workboard/workboard-native-bundle.e2e.test.ts → "loads the native bundle and preserves overlay focus and card identity in chromium" (checks-ui-e2e 4/9: 444 passed, 1 failed). It reproduces on main 73f2255d77f0; the Workboard UI was recently re-rendered with Solid 2 in #168606, and this PR does not touch Workboard. Fail-fast then cancelled checks-ui-e2e (7/9); those files passed in the lane's full UI e2e run on this exact head (3,361 passed, only the same Workboard failure). Types, lint, guards, and all UI unit shards passed on the exact head.

@steipete
steipete deleted the steipete/coldload-sidebar-shape branch October 11, 2026 03:21
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 11, 2026
…enclaw#168206)

One boot snapshot in the existing chat-snapshot IndexedDB database now owns the settled sidebar projection, primary session rows, routing defaults, and initial-read settlement, so pre-hello routing, the first header, and the sidebar paint from the same cached owner and the sidebar no longer reshuffles as roster, pins, and plugin rows arrive. Deletes the five legacy session-roster-cache modules and their separate database (best-effort deletion of openclaw-session-roster). Cached rows stay display-only and scoped per gateway/profile/agent filter; actions keep live authority. Regenerates ui/config/control-ui-boot-modules.json.
steipete added a commit that referenced this pull request Oct 15, 2026
## What Problem This Solves

An aborted IndexedDB transaction could report that an account-scoped chat snapshot clear succeeded, even though its cached records remained.

## User Impact

Explicit scope clearing now reports transaction errors. Ordinary single-session cache eviction remains best effort. No schema, rendered UI, config, or protocol changes.

## Why This Change Was Made

Use the existing transaction completion owner instead of treating complete, error, and abort as equivalent success events. The narrow regression uses a real IndexedDB transaction abort and verifies the record was not deleted.

## Best-effort tradeoffs accepted

- Single-session eviction remains intentionally best effort; explicit scope clearing rejects on failure. No new best-effort concession is introduced. The swallowed transaction outcomes originated in #162428 and survived #167780/#168206; the regression demonstrates the bug without claiming a human incident.

Net production LOC: **2 removed**. This is a silent-failure bug fix, exempt from the cleanup batch floor.

## Evidence

- Before repair: the scope-clear regression failed because its promise resolved instead of rejecting; the single-session control passed.
- After repair: 23 tests passed across the new invalidation regression and the existing snapshot store suite. New regression bodies: 6 ms; loaded-host wrapper: 167.37 s (Vitest 112.44 s).
- Formatting and `git diff --check` pass.
- Independent P0-P2 review found no issue in this packet. The complete multi-packet review found one unrelated MCP diagnostic issue, corrected separately.
- Targeted production and regression graph typecheck passes, including after the fixture lint repair. Runtime import cycles: zero. Production import edges are unchanged, so this cut cannot add a static import component. The full madge scan was stopped after30minutes without a result; no full static scan pass is claimed.
- Changed-file check: conflict-marker and line-cap gates pass. Max-lines itself passed but its combined command failed on inherited environment-count ratchet drift (452 variables, budget453). The subsequent broad assertion scan was deliberately stopped after the aggregate command exceeded20minutes; no passing aggregate check is claimed.
- Lint-suppression test:2/3 pass, existing inventory mismatch96vs94 in untouched `ui/src/test-helpers/control-ui-streaming-reply.ts` (no-unnecessary-type-conversion and unbound-method, two each). No baseline/suppression changes. Exact-head hosted CI remains the broad gate.
- Targeted source-backed lint found one unbound-method reference in the regression. The fixture now binds the native method to its test database; no suppressions were added. The fixed graph typecheck and affected two-case regression pass (120.26s wrapper /71.77s Vitest; bodies435ms). No fixed-head lint pass is claimed; exact-head hosted lint is required before merge.

The change does not modify rendering; behavior is proved at the IndexedDB boundary.

Exact-head hosted CI run38824831588 completed with the ci-gate successful; no failed jobs, CI reruns, dispatches or green-only pushes. Hosted lint supplies the fixed-fixture lint gate. Earlier draft-only skipped CI is not counted as proof.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
## What Problem This Solves

An aborted IndexedDB transaction could report that an account-scoped chat snapshot clear succeeded, even though its cached records remained.

## User Impact

Explicit scope clearing now reports transaction errors. Ordinary single-session cache eviction remains best effort. No schema, rendered UI, config, or protocol changes.

## Why This Change Was Made

Use the existing transaction completion owner instead of treating complete, error, and abort as equivalent success events. The narrow regression uses a real IndexedDB transaction abort and verifies the record was not deleted.

## Best-effort tradeoffs accepted

- Single-session eviction remains intentionally best effort; explicit scope clearing rejects on failure. No new best-effort concession is introduced. The swallowed transaction outcomes originated in openclaw#162428 and survived openclaw#167780/openclaw#168206; the regression demonstrates the bug without claiming a human incident.

Net production LOC: **2 removed**. This is a silent-failure bug fix, exempt from the cleanup batch floor.

## Evidence

- Before repair: the scope-clear regression failed because its promise resolved instead of rejecting; the single-session control passed.
- After repair: 23 tests passed across the new invalidation regression and the existing snapshot store suite. New regression bodies: 6 ms; loaded-host wrapper: 167.37 s (Vitest 112.44 s).
- Formatting and `git diff --check` pass.
- Independent P0-P2 review found no issue in this packet. The complete multi-packet review found one unrelated MCP diagnostic issue, corrected separately.
- Targeted production and regression graph typecheck passes, including after the fixture lint repair. Runtime import cycles: zero. Production import edges are unchanged, so this cut cannot add a static import component. The full madge scan was stopped after30minutes without a result; no full static scan pass is claimed.
- Changed-file check: conflict-marker and line-cap gates pass. Max-lines itself passed but its combined command failed on inherited environment-count ratchet drift (452 variables, budget453). The subsequent broad assertion scan was deliberately stopped after the aggregate command exceeded20minutes; no passing aggregate check is claimed.
- Lint-suppression test:2/3 pass, existing inventory mismatch96vs94 in untouched `ui/src/test-helpers/control-ui-streaming-reply.ts` (no-unnecessary-type-conversion and unbound-method, two each). No baseline/suppression changes. Exact-head hosted CI remains the broad gate.
- Targeted source-backed lint found one unbound-method reference in the regression. The fixture now binds the native method to its test database; no suppressions were added. The fixed graph typecheck and affected two-case regression pass (120.26s wrapper /71.77s Vitest; bodies435ms). No fixed-head lint pass is claimed; exact-head hosted lint is required before merge.

The change does not modify rendering; behavior is proved at the IndexedDB boundary.

Exact-head hosted CI run38824831588 completed with the ci-gate successful; no failed jobs, CI reruns, dispatches or green-only pushes. Hosted lint supplies the fixed-fixture lint gate. Earlier draft-only skipped CI is not counted as proof.
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 docs Improvements or additions to documentation 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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