Skip to content

feat(ui): rework the side rail around the agent avatar - #199824

Merged
vyctorbrzezowski merged 29 commits into
mainfrom
brzezowski/side-rail-04-rail-layout
Nov 17, 2026
Merged

vyctorbrzezowski merged 29 commits into
mainfrom
brzezowski/side-rail-04-rail-layout

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The rail mixes the agent, sessions, search and new-session controls in ways that are hard to read, and its default pins do not match what people open most.

User Impact

The agent avatar is the Sessions item and returns to the last session; New session lives in the Sessions header; search sits above Home in the footer; pins start as Automations, Customize and Usage below the separator; the drop zone is calmer; the sidebar closes with the mirrored Panels icon.

Why This Change Was Made

A series of small rail changes that share the rail and its menus, kept in one PR so the new rail reads as a whole. Tests and the website-dashboard and sidebar-customization e2e tests follow the default pins and the avatar Sessions item.

Evidence

Screenshots come from the Control UI mock at the end of the series, so the after image can show later parts too.

Rail and Sessions before and after (left: main, right: after):

Rail and Sessions before and after

  • pnpm tsgo:ui passes at this PR's head.
  • The unit tests of the files this PR touches pass at its head; the full UI unit suite passes at the end of the series (one failure also on main: a Workboard German relative-time string, "vor 1min", from the local ICU).
  • dashboard-website and sidebar-customization UI e2e pass at this head.
  • Local autoreview (Codex) over the whole series; its three findings are fixed in this series.
  • The full UI e2e suite was not run locally.

Known Gap

A browser that saved an empty rail before this change keeps its own list until the profile's preferences arrive, so its default pins can appear a moment after the first paint. The boot-order fix belongs to main and is follow-up work.

Update: test types

The rail test now reads each view button through its attribute, which the UI test typecheck requires.

Side rail series, part 3 of 16. Stacked on #199823; review only this PR's commits.

Update: e2e repair

The full Control UI e2e run on the stack found tests this PR broke or product gaps it introduced; this PR now carries their fixes:

  • test(ui): wait for the Sessions item's return to chat in the shell presentation e2e
  • test(ui): pin Dashboards, not the default Usage pin, in the read-only appearance e2e
  • test(ui): expect the default rail pins in warm-boot and rail e2e tests

Approved navigation-stack JS budget

Vyctor approved the measured JavaScript byte cost for this navigation stack. These cumulative measurements compare this layer with paired main base 1d82bed0a7fef79012c38ea7e6184911aba27e63. Each cap equals the original main cap plus the measured delta, preserving existing headroom without adding another margin.

Metric Cumulative gzip delta Cap
Largest JS asset +2,608 B 575,048 B
Chat boot JS +2,418 B 1,327,998 B
New Session boot JS +2,591 B 819,223 B

CSS ceilings, request counts, startup ceilings and gate logic are unchanged. Byte measurements are delivery-size evidence, not latency measurements.

Landing validation

Reconciled the landed predecessor while preserving this layer's intended change. The integration passed UI and script-consumer typechecks and 116 focused tests.

Current head f827d011bfd082723bdbe935d7650d26e0bb9033 also repairs three obsolete CI expectations without changing production UI:

  • Menu tests verify that menus remain on screen beside the rail, open correctly, dismiss with Escape and restore trigger focus, without fixing their vertical placement.
  • Presence tests distinguish intentional setup navigation from person-row actions and still reject navigation caused by presence updates.
  • Removed the old fixed-size/spacing rail screenshot-geometry tests and their timing entry. Current interaction, filtering, focus and drag coverage remains.

On the corrected source, 112 focused tests and all 3 bundled rail E2E scenarios passed, as did component-test typechecking, focused lint, formatting and diff checks. Independent review found no remaining issue in the correction. Hosted CI for this exact head is still pending.

@clawsweeper

clawsweeper Bot commented Nov 15, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR combines Sessions navigation with the agent avatar, relocates New session and search, and reorganizes default rail shortcuts.

Example: A fresh desktop profile opens the Control UI.

  • Before: The rail has separate agent and Sessions controls, a persistent New session action, and no default shortcuts.
  • After: The avatar serves as Sessions, New session appears in its panel header, and Automations, Customize, and Usage appear as default shortcuts.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) A coherent draft with focused implementation, concrete navigation and consumer defects, and no supplied runtime proof.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 3 actionable review findings remain.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: The rail mixes identity, navigation, search, and creation controls without a clear grouping.
Reason: The maintainer-authored direction is a coherent rail redesign, and its implementation reuses established owners without adding settings or persistence machinery.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep this maintainer-authored draft open: the rework has a coherent scope, but the avatar return path and affected preference tests need repair.

Priority: P2
Reviewed head: 7a26c754eafe7d7b1b13a87234ac050ed3ef614b

Before merge

  • Handle off-session navigation before the agent-menu early return (P2) - On desktop, open Usage through the command palette while the Sessions sidebar remains expanded, or load /usage with the default expanded Sessions view. menuReady() is true because it ignores activeRouteId, so clicking the avatar opens the agent menu and returns before selectSession() runs. The promised return to the last session therefore depends on how the page was reached. Handle the off-session return before this early return while preserving the mobile list-only behavior.
  • Update preference tests affected by the populated defaults (P2) - loadUiPreferences() consumes this array for missing or malformed railShortcuts, but unchanged consumers still assert an empty fallback. settings.stable-upgrade.test.ts:58 and :77 expect [] for a legacy fixture without railShortcuts, and settings.node.test.ts:358 expects [] after corrupting that field. These assertions now contradict the production result ["route:cron", "route:plugins", "route:usage"]. Update the affected fallback and upgrade expectations while retaining coverage that explicitly saved empty and custom lists remain intact.

Findings

  • [P2] Handle off-session navigation before the agent-menu early return — ui/src/components/app-sidebar-render.tsx:73-75
  • [P2] Update preference tests affected by the populated defaults — ui/src/app-navigation.ts:65
  • [P3] Update the navigation guide for the replacement layout — docs/web/control-ui/settings.md:592-595

Tests

  • Missing end-to-end proof: Provide before/after browser captures and runtime evidence for avatar navigation, relocated controls, pin grouping, and a fresh-profile/latest-stable upgrade with saved empty and custom shortcuts intact; show the focused regression failing on base and passing on head, and redact IPs, keys, phone numbers, and non-public endpoints.
Agent review details

How this fits together

The Control UI sidebar renders application navigation, session selection, and saved shortcuts through the existing sidebar, menu, router, and preference owners.

flowchart TD
  A[Saved preferences] --> B[Sidebar owner]
  C[Gateway session state] --> B
  B --> D[Rail and panel headers]
  D --> E[Sidebar menus]
  D --> F[Session navigation]
  F --> G[Application router]
Loading

Technical review

Best possible solution:

Retain the existing sidebar owners, handle off-session avatar navigation before opening the switcher, and update the affected preference tests and navigation documentation.

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

Source establishes the early-return trigger and the preference expectation mismatches; no target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

The implementation largely uses the smallest existing owners: the shared avatar helper has two callers, shortcut grouping is derived, and the old creation renderer is removed rather than retained in parallel.

Full review comments:

  • [P2] Handle off-session navigation before the agent-menu early return — ui/src/components/app-sidebar-render.tsx:73-75
    On desktop, open Usage through the command palette while the Sessions sidebar remains expanded, or load /usage with the default expanded Sessions view. menuReady() is true because it ignores activeRouteId, so clicking the avatar opens the agent menu and returns before selectSession() runs. The promised return to the last session therefore depends on how the page was reached. Handle the off-session return before this early return while preserving the mobile list-only behavior.
    Confidence: 0.98
  • [P2] Update preference tests affected by the populated defaults — ui/src/app-navigation.ts:65
    loadUiPreferences() consumes this array for missing or malformed railShortcuts, but unchanged consumers still assert an empty fallback. settings.stable-upgrade.test.ts:58 and :77 expect [] for a legacy fixture without railShortcuts, and settings.node.test.ts:358 expects [] after corrupting that field. These assertions now contradict the production result ["route:cron", "route:plugins", "route:usage"]. Update the affected fallback and upgrade expectations while retaining coverage that explicitly saved empty and custom lists remain intact.
    Confidence: 0.99
  • [P3] Update the navigation guide for the replacement layout — docs/web/control-ui/settings.md:592-595
    The user guide still says shortcuts start empty, the avatar directly opens its menu, and New session stays in the rail across views and collapse. Those instructions become inaccurate with this change. Update the affected settings and sidebar guidance, and correct the PR body's separator description: native section pins render above Pages, while plugin and personal pins render below the separator.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e693b3323e90.

Provenance checked

  • Default shortcuts and rail ordering changes intended behavior with a stated reason (1fed8f3: The clean rail avoided automatically seeded clutter and kept personal shortcuts explicitly user-added; the new commits deliberately introduce three defaults and separate display groups while preserving saved order.)
  • New session placement changes intended behavior with a stated reason (41a83ad: Persistent rail placement made creation available across views and collapsed layouts; this PR explicitly moves creation into the Sessions header and accepts its disappearance with that panel.)
  • Avatar and workspace menu activation changes intended behavior with a stated reason (e80558a: The Solid migration preserved direct menu activation, later carried into the inline renderer; this PR deliberately makes activation depend on Sessions and panel state.)
  • Collapse icon changes intended behavior with a stated reason (c04c6ae: The earlier quieter-sidebar change selected panelLeftClose; this PR explicitly replaces it with a mirrored session Panels glyph.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

PR surface

Source +58, Tests +138. Total +196 across 50 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 10 228 170 +58
Tests 40 289 151 +138
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 50 517 321 +196

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded navigation improvement with a source-visible interaction defect and incomplete consumer updates.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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.

Reviewed November 15, 2026, 6:04 PM ET / 23:04 UTC.

@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-03-customize-hub branch from a4bbd33 to 3429ce9 Compare November 16, 2026 07:05
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-04-rail-layout branch from 7a26c75 to e0655e0 Compare November 16, 2026 07:05
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Nov 16, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-03-customize-hub branch from 3429ce9 to 3641709 Compare November 16, 2026 18:11
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-04-rail-layout branch from 878c01c to 71c8764 Compare November 16, 2026 18:11
vyctorbrzezowski and others added 4 commits November 17, 2026 11:21
Add outline and filled variants for the navigation sections (dashboards,
usage, automations, sessions, systems, meetings, customize, portals,
workboard, clawrouter, knowledge, at-sign, access) plus a filled users
icon, ported unchanged from the approved rail design. Nothing uses them
yet.

The filled forms cut details out with SVG masks. Icon now suffixes each
id and url(#id) reference per rendered instance, so repeated icons no
longer share document-wide ids; this also covers the lobster gradient.
Navigation icons follow one rule: outline at rest, filled while their
page is current. Icon takes a `filled` flag and swaps to the filled form
when one exists. Route links, plugin tabs and plugin navigation links
fill when active, and the rail's People view fills while it is open, so
the rule holds for rail pins and the Pages list alike.

Section routes move to the new icon set: Dashboards, Usage, Cron
(automations), Sessions, Systems, Meetings, Plugins (customize),
Portals and Workboard. Bundled plugins register the matching icons for
Workboard, ClawRouter, Knowledge, X (at-sign) and Access.
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-04-rail-layout branch from 492b611 to 932a889 Compare November 17, 2026 18:31
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-03-customize-hub branch from 3641709 to 1c8d311 Compare November 17, 2026 18:31
vyctorbrzezowski and others added 8 commits November 17, 2026 12:02
The rail item, Pages entry and window title for the Plugins hub now read
Customize. The hub's first tab and its heading keep the Plugins name, as
do plugin settings and back links, since they still refer to plugins.
Templates leaves the Pages catalog and becomes a tab of the Customize
hub, after Plugins, Skills and Skill workshop. The tab follows the same
experimental flag as the Templates route, and Customize stays selected
in the sidebar while Templates is open.

Accepted edge case: a rail pin saved as route:templates is no longer a
known destination and is dropped by the existing pin normalization;
Templates stays reachable from Customize.
Apps no longer appears in Pages or as a pinnable rail destination. It
stays reachable from the profile menu's Get apps entry and the command
palette; moving it fully into the profile menu is separate work.

Accepted edge case: a rail pin saved as route:apps is dropped by the
existing pin normalization.
The avatar at the top of the rail (or the workspace mark in roster mode)
is now the Sessions item and replaces the separate Sessions button:

- outside Sessions, a click opens Sessions;
- in Sessions with the sidebar closed, a click opens the sidebar;
- in Sessions with the sidebar open, a click opens the existing agent
  switcher, and hover-open is limited to that same state.

Like the other rail views it reads as selected only while its panel is
open, and it is the focus target when the panel collapses. Right-click
still opens the switcher from anywhere. Collapsing an open Sessions
panel now uses the panel's Collapse sidebar button or the keyboard
shortcut; tests that collapsed through the old Sessions button do so.
The rail now reads top to bottom: pinned native sections, the Pages
control drawn as "⋯", a separator, then plugin pins (bundled plugins
included) and session and person pins. No plugin item appears above the
"⋯". The separator shows only when something sits below it.

The saved pin order is unchanged; the rail partitions it for display.
Move up and Move down in a pin's menu stay within its group, so they
never try to cross the separator. A drag across groups is kept in the
saved order but renders on its own side of the separator.
Baseline-Refresh: 10b36f68d3f195e396cde31bfb6e1909f0b4488a
@vyctorbrzezowski
vyctorbrzezowski merged commit b4bf350 into main Nov 17, 2026
116 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/side-rail-04-rail-layout branch November 17, 2026 21:09
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 18, 2026
feat(ui): rework the side rail around the agent avatar

Preserve the reviewed navigation design and state owners. Repair obsolete rail geometry and setup expectations while retaining current focus, filtering, navigation and drag coverage. Validated with focused browser tests, bundled E2E, types, lint and formatting.

Co-authored-by: Vyctor H. Brzezowski <[email protected]>
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. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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.

1 participant