Repository navigation
fix(ui): keep the personal rail clean instead of listing every page - #169447
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. What this changesThis PR gives personal rail shortcuts separate storage identities and invalidates old sidebar snapshots. Example: Alex opens Chat with legacy sidebarEntries containing route:usage, route:cron, and session:agent:main:planning.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this maintainer-authored PR addresses a storage collision still present on main; no introduced correctness defect was found. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI preference owner reconciles browser settings and authenticated profile preferences, then supplies navigation state to the rail and its cached boot projection. flowchart LR
A[Browser settings] --> C[Preference owner]
B[Gateway profile preferences] --> C
C --> D[Personal rail]
D --> E[Shortcut edits]
E --> C
F[Sidebar boot snapshot] --> D
Technical reviewBest possible solution: Retain the separate rail identity and accepted reset, then verify preservation of unrelated stable-release state. Do we have a high-confidence way to reproduce the issue? Main still reads the legacy identity, and the inspected before screenshot shows seeded destinations rendering through the browser UI; this review executed no target code. Is this the best way to solve the issue? Separating the persisted identities fixes the semantic collision at the existing preference owner, while cache invalidation prevents old boot projections from restoring the unwanted entries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f054d03022e0. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +17, Tests +88, Docs +5. Total +110 across 45 files. Added test files: 0. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (4 earlier review cycles)
Reviewed October 11, 2026, 11:43 PM ET / October 12, 2026, 03:43 UTC (Revision 5). |
|
/allow-security-sensitive-change |
fdc22e6 to
d552509
Compare
The personal rail stored its shortcuts under identities that already held data with a different meaning. On Team, every saved `ui.sidebarEntries` profile row came from #168325's since-deleted first-run import (the old shared sidebar order with all pages, plugin pages, and every shared-pinned session), and stable's browser-local `sidebarEntries` was the old sidebar's full page order. Read as shortcuts, both fill the rail with pages; sessions resolve later, so the rail sometimes shows only pages. Rail shortcuts now persist under a fresh identity (`ui.railShortcuts` and browser-local `railShortcuts`). The retired keys, the per-profile mirror's old field, and the `sidebarPinnedRoutes` shape are no longer read, and the sidebar boot snapshot cache is invalidated so stale entries never flash. Old values are left in place and ignored. Shortcuts saved before this change are not carried over; the rail starts with only its fixed controls until the user drags something in.
The legacy sidebar intent is discarded when parsed. Once the remaining accent preference is acknowledged, the empty pending record is removed. Require that observable cleanup in all four upgrade cases.
Preserve main’s reconnect conflict behavior while checking its pending record under the new railShortcuts identity.
d552509 to
908eb77
Compare
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…penclaw#169447) * fix(ui): keep the personal rail clean instead of listing every page The personal rail stored its shortcuts under identities that already held data with a different meaning. On Team, every saved `ui.sidebarEntries` profile row came from openclaw#168325's since-deleted first-run import (the old shared sidebar order with all pages, plugin pages, and every shared-pinned session), and stable's browser-local `sidebarEntries` was the old sidebar's full page order. Read as shortcuts, both fill the rail with pages; sessions resolve later, so the rail sometimes shows only pages. Rail shortcuts now persist under a fresh identity (`ui.railShortcuts` and browser-local `railShortcuts`). The retired keys, the per-profile mirror's old field, and the `sidebarPinnedRoutes` shape are no longer read, and the sidebar boot snapshot cache is invalidated so stale entries never flash. Old values are left in place and ignored. Shortcuts saved before this change are not carried over; the rail starts with only its fixed controls until the user drags something in. * test(ui): expect retired rail outbox to clear after sync The legacy sidebar intent is discarded when parsed. Once the remaining accent preference is acknowledged, the empty pending record is removed. Require that observable cleanup in all four upgrade cases. * test(ui): use rail storage key in reconnect assertion Preserve main’s reconnect conflict behavior while checking its pending record under the new railShortcuts identity.
What Problem This Solves
Fixes: the Control UI sidebar rail sometimes shows every page (and plugin pages and old pinned sessions) right after #168997, even though it should only show its fixed controls until you drag something in.
User Impact
User impact: the rail starts with only its fixed controls (agent, Pages, Sessions, Online, search, Home, Inbox, profile) for everyone, including profiles that already have saved data; shortcuts you drag in after this change persist as before.
Why This Change Was Made
#168325 stored rail shortcuts under identities that already meant something else: the main-only profile key
ui.sidebarEntries(on Team, all seven saved rows were written by the deleted first-run import: six page routes, four plugin pages, and about 34 sessions in the operator's case), and the browser-localsidebarEntriesthat on stable held the old sidebar's full page order. Page entries render immediately while session entries resolve asynchronously or not at all, so the rail sometimes shows only pages. Giving rail shortcuts their own persisted identity (ui.railShortcuts, browser-localrailShortcuts) makes every rail clean without any data migration or database write. Neither the old profile key nor the per-profile mirror shipped in a release (absent from v2026.10.1 and v2026.10.5-beta.1). The sidebar boot snapshot cache version is bumped so a stale snapshot cannot render old entries before the Gateway connects.Evidence
Synthetic mock-Gateway data only. Same saved state on both builds (a profile whose saved preferences hold the Team-style seeded list), 1440x900:
908eb77a5787, based ona75f254400c8. Final rebase kept main’s expanded Sessions/Pages cold-load test intact and changed only its four persisted-key references.--maxWorkers=1:229 tests,229.58s total command wall time. UI production/test types, targeted oxlint, oxfmt, docs checks, and diff checks pass.d552509a672e:12 files,67/67 tests,zero skips,90.37s;build10.09s. Final mechanical rebase delta: cold-load plus warm-boot7/7 tests,33.21s, using the native production runner.CI disposition
fdc22e662330: mobile roster Escape assertion failed,13 sibling jobs cancelled. It independently reproduced on current mainb3c7dc2af7dd; the11 menu/tooltip/shell owners were identical. Candidate passing replay is not a fix.d552509a672e: no CI run attached because later main had a cold-load test merge conflict. Resolved mechanically in the current head.eager-import-closure.test.ts:173failed on three duplicate PR-wrapper manifest entries; remaining jobs were cancelled. The test/helper/inventory are identical in the PR merge and its main parent. Exact failure reproduces on the candidate. Main fixed it in2b66ae6c3a31, and the same test passes there. Native inherited-failure admission preserves this disposition and does not count cancellations as passes. No CI reruns were requested.Compatibility scope: old shortcuts intentionally reset; unrelated settings and cached transcript data are preserved. The native legacy-storage scenarios and snapshot-store regression use source-matched synthetic records. No released-binary upgrade run is claimed. Root cause was previously verified read-only on the Team Gateway; this task changed no live data.