Repository navigation
feat(ui): rework the side rail around the agent avatar - #199824
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: needs changes before merge. What this changesThis 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.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e693b3323e90. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +58, Tests +138. Total +196 across 50 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label 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 Reviewed November 15, 2026, 6:04 PM ET / 23:04 UTC. |
a4bbd33 to
3429ce9
Compare
7a26c75 to
e0655e0
Compare
3429ce9 to
3641709
Compare
878c01c to
71c8764
Compare
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.
492b611 to
932a889
Compare
3641709 to
1c8d311
Compare
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
|
Merged via squash.
|
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]>
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):
pnpm tsgo:uipasses at this PR's head.dashboard-websiteandsidebar-customizationUI e2e pass at this head.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:
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.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
f827d011bfd082723bdbe935d7650d26e0bb9033also repairs three obsolete CI expectations without changing production UI: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.