Repository navigation
feat(ui): rail starts clean with real shortcut icons and a one-row sidebar header - #168997
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 starts personal rails empty, renders recognizable shortcut icons, and consolidates session ownership controls into one header. Example: A saved Release notes shortcut is outside the loaded session list.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep this PR open: it delivers an approved sidebar redesign with clear user value, and the earlier actionable regressions are addressed. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI sidebar combines Gateway session descriptors and profile preferences with browser-local owner selections to render navigation and session lists. flowchart LR
A[Profile preferences] --> B[Navigation preference owner]
C[Browser owner selection] --> D[Session owner controller]
E[Gateway session reads] --> F[Sidebar projection]
B --> F
D --> F
F --> G[Rail and session header]
Technical reviewBest possible solution: Land the approved single-owner rail after demonstrating the intended stable-release upgrade behavior. Do we have a high-confidence way to reproduce the issue? Current-main source and the inspected before screenshot establish the default pins, generic unloaded-shortcut glyphs, and competing owner controls; no target code was run during this review. Is this the best way to solve the issue? The redesign removes competing selection and import paths, reuses existing preference and session owners, and has explicit maintainer direction for its changed defaults. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b5a9b9b41c34. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
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 (11 earlier review cycles; latest 8 shown)
Reviewed October 11, 2026, 12:32 PM ET / 16:32 UTC (Revision 12). |
7f81cc6 to
8c2c9a8
Compare
|
Native landing handoff for reviewed head The exact-head review artifacts validate as READY using the lead's completed Codex autoreview (scoped-clean, P2 threshold), focused unit suites, and native production-UI/Chromium proof covering all 74 affected e2e files. The earlier full matrix passed 98 files / 558 tests. The transient asset-load failure and successful focused follow-up remain part of the evidence; this is not a claim that every initial invocation passed. Existing before/after screenshots remain in the PR body. ClawSweeper's completed review has been read. The owner-preference advisory is acknowledged: v2026.10.1 encoded All owners by an absent key, and this head interprets absence as My sessions. The exact-head landing decision is retained under the explicit maintainer work order; this behavior is not claimed fixed or covered by stable-upgrade preservation proof. Users with that old absent-key choice can select Everyone again. The data-model compatibility request is retained with that same limitation. The conflict advisory does not reproduce in Git: Production LOC is +813/-1352 (net -539); tests/support +1627/-2111 (net -484); docs +82/-55. The reduction removes the competing Mine/All scope, first-run shared-pin import, generic pushpin fallback, and obsolete menu paths. Known unrelated local evidence remains the unused Update: GitHub's conflict projection persisted after a close/reopen and native admission refused before dispatch. A clean task-owned rebase onto Refresh proof: 10 focused unit suites / 149 tests passed; UI typecheck, targeted oxlint, oxfmt and diff check passed. Blacksmith Testbox run 38134619317, lease The branch was force-pushed with an explicit lease against CI follow-up: run 38135575748, attempt 1 failed in Final correction: run 38136496242, attempt 1 cleared the assertion ratchet but failed changed lint because the new owner-picker module imported Lit. The per-file metric increases printed afterward were advisory. Commit Menu lifecycle repair: run 38137590773, attempt 1 reached UI tests. Two transient-menu cases still addressed the removed per-pin button. Updating them to the native context menu exposed a real replacement bug: the shared dropdown DOM was reused for a second pin. Commit Other failures in that attempt were separate: the dashboard Latest advisory review disposition: the P2 transient-menu finding is addressed by The remaining task-caused E2E assumptions from run 38139905084 are repaired in Independently reproduced current-main E2E failures are retained: provider API-key input focus ( Second rebase: current main created real conflicts in personal navigation and rail tests. Head Proof on the resolved head: 109 focused unit tests, UI typecheck, Lit guard, and diff check pass. Blacksmith Testbox 38143321337, lease Final keyboard-fixture correction CI 38148852624, attempt 1 has one root failure: check-test-types-core-3, Third rebase after a new main conflict: native admission stopped before dispatch, and its exact lock was recovered. Current reviewed head is Fresh Codex autoreview is scoped-clean at P2; format and targeted lint pass. Native Testbox 38152519035 verifies the exact head and tree Latest exact-head CI 38153053312 completed with two failed E2E jobs and no collateral cancellations. The pending-Inbox module cases added by main still clicked the removed Collapse sidebar button. Fix The other failure is inherited: Current-head CI 38155362153, attempt1 finished cancelled after one failed UI job: checks-ui(2/3). It contains five independently inherited failures from main’s Activity migration: four Independent proof on exact tested main: all four Activity browser variants reproduce in native Testbox38156346290; the focused refetch-volume test reproduces locally under the native CI runner. These probes use Bun1.4.2; CI uses custom1.4.3, so this is matching-failure/source proof, not a claim of byte-identical runtime. The Activity probe’s first attempt stopped before tests because Bun was missing; canonical runtime setup was completed before the sole actual four-case run. Its lease is completed and proof worktree removed. The successful fail-fast monitor cancelled13 sibling jobs; none is counted as passing. Native admin recovery will use this exact-head inherited-failure evidence, including the checked-out merge’s two parents and reconstructed tree, root/aggregate/cancellation provenance, and passing task-scoped proof. The older plugin failure remains a separately recorded main test debt but is not this attempt’s root failure. No CI reruns, retry-only pushes, guard weakening, or timeout changes were used. |
8c2c9a8 to
356fde7
Compare
38f37d9 to
be930a1
Compare
The personal navigation rail from #168325 rendered every saved entry and fell back to a pushpin glyph for anything outside the loaded session list, while its first-run import seeded each profile with every shared-pinned session. Together that produced a wall of identical pins. The Mine/All scope also overrode the owner filter, so two controls owned one decision. - Rail starts empty; users add shortcuts by dragging sessions, pages, plugins, or people onto it, with a drop zone only while dragging. - Pinned sessions resolve through sessions.describe once per connection and render their icon or a title monogram; unresolvable refs stay saved but hidden. The generic pin fallback and the legacy pinned import are removed. - Reorder by direct drag; Move/Unpin via right-click, Shift+F10, or touch long-press. The per-pin reorder control is gone. - Agent avatar and search move to the top of the rail; the Sessions panel has one header row whose title chip is the only owner filter. The Mine/All scope and its synced navigationScope preference are deleted. - Clicking the active rail view toggles the panel; opening a rail shortcut collapses it on desktop. - Fix owner-filter oscillation while a replacement list loads without its owner facet, and keep the known identity during reconnect so the filter does not widen to all owners.
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…debar header (openclaw#168997) * feat(ui): clean personal rail and single-row sidebar header The personal navigation rail from openclaw#168325 rendered every saved entry and fell back to a pushpin glyph for anything outside the loaded session list, while its first-run import seeded each profile with every shared-pinned session. Together that produced a wall of identical pins. The Mine/All scope also overrode the owner filter, so two controls owned one decision. - Rail starts empty; users add shortcuts by dragging sessions, pages, plugins, or people onto it, with a drop zone only while dragging. - Pinned sessions resolve through sessions.describe once per connection and render their icon or a title monogram; unresolvable refs stay saved but hidden. The generic pin fallback and the legacy pinned import are removed. - Reorder by direct drag; Move/Unpin via right-click, Shift+F10, or touch long-press. The per-pin reorder control is gone. - Agent avatar and search move to the top of the rail; the Sessions panel has one header row whose title chip is the only owner filter. The Mine/All scope and its synced navigationScope preference are deleted. - Clicking the active rail view toggles the panel; opening a rail shortcut collapses it on desktop. - Fix owner-filter oscillation while a replacement list loads without its owner facet, and keep the known identity during reconnect so the filter does not widen to all owners. * fix(ui): document rail event target invariants Document the DOM bindings behind rail gesture casts and remove the obsolete menu assertion allowance. Fixes the PR baseline-ratchet failure without changing runtime behavior or weakening the guard. * refactor(ui): keep owner picker in session filter renderer Fold the single-use owner picker into its existing rendering owner without changing its implementation. Removes the extra Lit module and passes the migration guard. Verified by focused tests, UI build and types, the complete changed-lint path, and isolated Codex autoreview. * fix(ui): isolate rail menu target lifetimes Key each rail dropdown by its captured position so late hide events from a previous pin cannot close the replacement menu. Drive transient-menu regressions through the actual context-menu surface and cover the replacement in Chromium. * test(ui): align navigation proofs with the personal rail Open destinations through Pages, use the active rail view for collapse, and keep layout assertions on the current controls. Preserve draft, archive, plugin lifecycle, overflow, and Workboard invariants without restoring removed pins or reorder grips. * test(ui): preserve empty-list owner proof in the header * test(ui): use rail action in pending Inbox proofs
What Problem This Solves
Fixes: the new sidebar rail fills up with identical pushpin icons, and the sidebar header wastes vertical space with a Mine/All toggle that fights the owner filter.
User Impact
User impact: the rail starts clean and only shows shortcuts you put there, each with the session's own icon or initials; the Sessions panel gets one header row whose title is the owner filter.
navigationScopepreference, and the one-time import that copied every shared-pinned session (including archived ones and teammates' pins) into personal rails. Both landed in feat: organize personal navigation in a compact sidebar rail #168325 and never shipped in a release. Profiles that already ran the import keep their saved shortcuts; unpin them from the rail's context menu.Why This Change Was Made
#168325 rendered every saved rail entry and fell back to a pushpin glyph for anything not in the loaded session list, while its first-run import seeded each profile with every shared-pinned session. Together that produced a wall of identical pins. The scope toggle and the owner filter were two owners for one decision, so "Mine" silently overrode the filter. This change gives each decision one owner: saved rail entries are only what the user added, pinned sessions resolve to their real presentation, and the owner filter is the single owner control.
Two follow-on bugs found by the native e2e matrix are fixed here with regressions: the owner filter could oscillate between "My sessions" and "Everyone" while a replacement list loaded without its owner facet, and it briefly widened to all owners during reconnect while identity was unresolved.
Evidence
Synthetic mock-Gateway data only.
Before / after: same multi-owner scenario on base and candidate, 1440x900. Four saved session shortcuts (two not in the loaded list) plus five saved page shortcuts.
Mobile drawer (after), 390x844:
Clean rail and drag-to-add (after), 1440x900:
test/vitest/vitest.ui-e2e.config.ts, production UI build, Chromium) on Blacksmith Testbox: candidate 98/98 files, 558/558 tests pass; base 016616b 97 files, 564 tests pass. Every candidate failure seen during the run was candidate-caused and repaired (two product bugs above; fixtures that asserted removed behavior rewritten to the new behavior). No skips, timeout increases, or fixture fallbacks.pnpm check:docs, oxlint, oxfmt, UI i18n check, andgit diff --checkpass.envatsrc/plugins/channel-presence-policy.ts:519(present on the base); a timing-sensitive local presence unit assertion (presence.ts:410) reproduces the same mechanism on base and candidate and is not touched here.