Skip to content

fix(ui): keep the personal rail clean instead of listing every page - #169447

Merged
steipete merged 3 commits into
mainfrom
steipete/rail-clean-storage
Oct 12, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/rail-clean-storage

Conversation

@steipete

@steipete steipete commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

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-local sidebarEntries that 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-local railShortcuts) 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:

Before (main) After
Before: rail shows seeded page, plugin, and session shortcuts After: rail shows only the fixed controls
  • Current head 908eb77a5787, based on a75f254400c8. Final rebase kept main’s expanded Sessions/Pages cold-load test intact and changed only its four persisted-key references.
  • All 11 touched unit files pass separately with --maxWorkers=1:229 tests,229.58s total command wall time. UI production/test types, targeted oxlint, oxfmt, docs checks, and diff checks pass.
  • Full native production-build remote proof on 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.
  • Codex P2 autoreview scoped-clean. The final conflict resolution changes no policy: it preserves main’s full test and reapplies the same storage-key substitutions.
  • Initial Testbox proof caught four stale outbox expectations; one assertion was corrected to require removal of the acknowledged empty pending record.

CI disposition

  • 38185491490, older head fdc22e662330: mobile roster Escape assertion failed,13 sibling jobs cancelled. It independently reproduced on current main b3c7dc2af7dd; the11 menu/tooltip/shell owners were identical. Candidate passing replay is not a fix.
  • Head d552509a672e: no CI run attached because later main had a cold-load test merge conflict. Resolved mechanically in the current head.
  • 38197447556, current head: unrelated eager-import-closure.test.ts:173 failed 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 in 2b66ae6c3a31, 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.

@clawsweeper

clawsweeper Bot commented Oct 11, 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 11, 2026
@steipete
steipete marked this pull request as ready for review October 11, 2026 23:45
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 11, 2026
@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This 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.

  • Before: Those legacy destinations appear as personal rail shortcuts.
  • After: Only fixed controls appear until Alex adds shortcuts, which persist under railShortcuts.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused cutover and visible browser evidence are useful, but incomplete stable-upgrade validation prevents a merge-ready assessment.
Proof confidence 🦐 gold shrimp (3/6) The inspected browser screenshots demonstrate removal of seeded shortcuts with synthetic Gateway data; ordinary contributor proof gating is exempt for this maintainer-authored PR, but required stable-upgrade evidence remains incomplete because supplied preservation scenarios use synthetic state and a version-6 cache rather than a released v2026.10.1 installation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Existing saved sidebar data fills a rail intended to contain only personally added shortcuts.
Reason: The maintainer-authored direction explicitly accepts the reset needed to finish the clean-rail behavior.

Regression provenance

Possible 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
Reviewed head: 908eb77a5787a311c0648710af8a52c37aac8bb4

Before merge

  • 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

None.

Tests

  • Missing end-to-end proof: Provide a v2026.10.1-to-candidate upgrade showing the intended empty rail, preserved unrelated settings and cached transcripts, and persistence of a newly added shortcut; baseline-failing regression output is also not supplied.
Agent review details

How this fits together

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

Technical review

Best 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

  • Profile navigation and pending shortcut adoption changes intended behavior with a stated reason (fd01817: Synchronize personal navigation while preserving supported pending sidebar edits.)
  • Browser sidebar order and route-pin import changes intended behavior with a stated reason (88e5af7: Persist an interleaved sidebar containing ordered pages and pinned sessions.)
  • Previously saved shortcuts changes intended behavior with a stated reason (1fed8f3: Stop new imports while retaining shortcuts already saved by existing profiles.)
  • Sidebar boot projection keeps the original intent (561d92d: Restore settled sidebar presentation from a disposable cache separate from transcript records.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit a4c01c1 adds ui/src/app/server-prefs-storage.ts:10 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a4c01c1a77ac; files: ui/src/app/server-prefs-storage.ts)
  • RoboClaw: Raw commit fd01817 adds ui/src/app/server-prefs-state.ts:31 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fd018170c943; files: ui/src/app/server-prefs-state.ts)
  • Shakker: Raw commit 55e1246 adds ui/src/app/server-prefs-state.ts:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 55e1246702c7; files: ui/src/app/server-prefs-state.ts)

PR surface

Source +17, Tests +88, Docs +5. Total +110 across 45 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 8 75 58 +17
Tests 34 498 410 +88
Docs 3 10 5 +5
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 45 583 473 +110

Root-cause cluster

Relationship: canonical
Canonical: #169447
Summary: This PR completes the clean-rail cutover after the original navigation import and its partial removal.

Members:

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

Labels

Label changes:

  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Label justifications:

  • P2: The unwanted shortcuts create confusing navigation with limited impact on the core agent workflow.
  • merge-risk: 🚨 compatibility: The persisted identity changes intentionally reset existing shortcuts; the maintainer explicitly accepts that tradeoff.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • 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 execution lanes are retired.

History

Review history (4 earlier review cycles)
  • reviewed 2026-10-11T23:52:28.717Z sha fdc22e6 :: blocked before merge. :: none
  • reviewed 2026-10-12T00:34:26.115Z sha fdc22e6 :: blocked before merge. :: none
  • reviewed 2026-10-12T02:07:18.959Z sha d552509a672e74a0ebacf9472a5348d32bce36d3 :: blocked before merge. :: none
  • reviewed 2026-10-12T02:59:03.125Z sha 908eb77 :: blocked before merge. :: none

Reviewed October 11, 2026, 11:43 PM ET / October 12, 2026, 03:43 UTC (Revision 5).

@clawsweeper clawsweeper Bot removed the status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. label Oct 12, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

/allow-security-sensitive-change

@steipete
steipete force-pushed the steipete/rail-clean-storage branch from fdc22e6 to d552509 Compare October 12, 2026 01:55
@clawsweeper clawsweeper Bot added the status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. label Oct 12, 2026
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.
@steipete
steipete force-pushed the steipete/rail-clean-storage branch from d552509 to 908eb77 Compare October 12, 2026 02:51
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Oct 12, 2026
@steipete
steipete merged commit 86647d4 into main Oct 12, 2026
68 of 98 checks passed
@steipete
steipete deleted the steipete/rail-clean-storage branch October 12, 2026 04:24
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
…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.
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 merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant