Skip to content

fix(ui): give Systems its own sidebar header - #199833

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/side-rail-13-systems-sidebar
Nov 17, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/side-rail-13-systems-sidebar

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Systems shows the Sessions header (owner picker, session filter, new session) above its device list, and the agent avatar does not leave Systems.

User Impact

Systems has its own header with only the collapse control; the device search and filter stay. The agent avatar returns to the last session.

Why This Change Was Made

A page that brings its own sidebar list gets its own title header, and the avatar no longer treats it as the open Sessions list.

Evidence

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

Systems before and after (left: main, right: after):

Systems 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).
  • Local autoreview (Codex) over the whole series; its three findings are fixed in this series.
  • The full UI e2e suite was not run locally.

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

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 +3,714 B 576,154 B
Chat boot JS +3,959 B 1,329,539 B
New Session boot JS +4,143 B 820,775 B

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

Maintainer validation

Reviewed and rebased this layer on predecessor 40cd5c142973c0392e63f28ac30ec4d32cb1ee9d; current head is 333e3e8b47450b6fefd73d876cd929202e1dac87. The own-layer tree, original human authors and signatures were checked. UI typechecking passed on this candidate. Previously verified functional and integrated visual proof was reused where inputs are unchanged; the maintainer also exercised the integrated stack on a real Gateway.

The maintainer authorized sequential CI bypass after repairing known PR-caused failures. Hosted CI may still be running; this is not a claim of full hosted CI success. The unrelated owner-approval timing failure is tracked separately in #200810.

@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:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro 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:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro 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 gives Systems a dedicated sidebar header and makes the rail avatar distinguish its device list from Sessions.

Example: Open Systems with the desktop sidebar expanded, then click the agent avatar.

  • Before: Session controls appear above the devices, and clicking the avatar opens the agent menu.
  • After: A Systems title and collapse control appear above the devices, and clicking the avatar returns to the selected session.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful, narrowly scoped repair with an introduced mobile navigation defect and no supplied behavior 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) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Systems presents session-specific controls above its devices, and the avatar fails to return users to their conversation.
Reason: The maintainer-authored direction corrects misleading controls and navigation using existing sidebar owners.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this maintainer-authored draft open: it addresses a real sidebar mismatch, but introduces a mobile avatar action that does nothing.

Priority: P2
Reviewed head: 3a24b58724504355ade14da1ae437bb362cc3120

Before merge

  • [P2] Complete the mobile avatar action for contextual sidebars (P2) - At a phone viewport such as 390×844, open Systems and expand the navigation drawer, then tap the agent avatar. The new contextualSidebar exclusion makes menuReady false, so the previous agent-menu action is skipped. activate then assigns navigationView = "sessions", which Systems already uses, and its !isMobileNavLayout() checks skip both expansion and route navigation. The router still supplies the Systems context, so app-sidebar-owner.tsx keeps Sessions hidden and the tap has no visible result. Complete this existing activation path so the contextual list can actually yield to Sessions on mobile.

Findings

  • [P2] [P2] Complete the mobile avatar action for contextual sidebars — ui/src/components/app-sidebar-render.tsx:76-80

Tests

  • Missing end-to-end proof: Supply sanitized before/after captures from a real Gateway showing the Systems header, retained device search/filter, and avatar return on desktop and mobile, with a regression red on the base and green on the fix; redact addresses, credentials, and non-public endpoints.
Agent review details

How this fits together

The Control UI sidebar combines rail navigation, shared panel headers, and route-provided lists; route and sidebar state determine the displayed header and avatar action.

flowchart TD
  A[Active route] --> B[Sidebar context]
  B --> C[Shared panel header]
  B --> D[Systems device list]
  E[Rail avatar] --> F[Sessions navigation]
  F --> A
Loading

Technical review

Best possible solution:

Keep the shared contextual header and complete the existing avatar activation handler so Systems has a working return to Sessions on mobile as well as desktop.

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

Source establishes the header mismatch on fetched main and the mobile no-op on this head; no browser reproduction was run under the read-only review constraints.

Is this the best way to solve the issue?

Reusing the shared header and contextual state is the smallest complete approach, but the changed avatar predicate must be paired with an activation path that works on mobile.

Full review comments:

  • [P2] [P2] Complete the mobile avatar action for contextual sidebars — ui/src/components/app-sidebar-render.tsx:76-80
    At a phone viewport such as 390×844, open Systems and expand the navigation drawer, then tap the agent avatar. The new contextualSidebar exclusion makes menuReady false, so the previous agent-menu action is skipped. activate then assigns navigationView = "sessions", which Systems already uses, and its !isMobileNavLayout() checks skip both expansion and route navigation. The router still supplies the Systems context, so app-sidebar-owner.tsx keeps Sessions hidden and the tap has no visible result. Complete this existing activation path so the contextual list can actually yield to Sessions on mobile.
    Confidence: 0.98

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

  • Contextual sidebar header keeps the original intent (7144907: The shared header shell keeps panel headers pinned above scrolling lists with consistent collapse-control geometry.)
  • Avatar Sessions predicate changes intended behavior with a stated reason (feat(ui): rework the side rail around the agent avatar #199824: The rail avatar opens Sessions outside its list and opens the agent menu when the Sessions list is already open.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

PR surface

Source +17. Total +17 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 19 2 +17
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 19 2 +17

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: The sidebar mismatch and introduced mobile no-op affect a bounded navigation flow without blocking the whole application.
  • 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-12-customize-sidebar branch from 660d8fd to e8fc761 Compare November 16, 2026 07:06
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-13-systems-sidebar branch from 3a24b58 to f928c61 Compare November 16, 2026 07:06
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-12-customize-sidebar branch from e8fc761 to aad852b Compare November 16, 2026 16:09
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-13-systems-sidebar branch from f928c61 to 00d5dcb Compare November 16, 2026 16:09
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-12-customize-sidebar branch from aad852b to a921a74 Compare November 16, 2026 16:34
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-13-systems-sidebar branch from 00d5dcb to 777ef4a Compare November 16, 2026 16:34
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-12-customize-sidebar branch from a921a74 to f35ad71 Compare November 16, 2026 18:12
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-13-systems-sidebar branch from 777ef4a to 050be7b Compare November 16, 2026 18:12
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-12-customize-sidebar branch from f35ad71 to b6c848f Compare November 16, 2026 22:53
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-13-systems-sidebar branch from 050be7b to 23f62ad Compare November 16, 2026 22:53
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-12-customize-sidebar branch from b6c848f to 23561b7 Compare November 17, 2026 00:43
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-13-systems-sidebar branch from 23f62ad to 37bcd4a Compare November 17, 2026 00:44
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-12-customize-sidebar branch from 23561b7 to b46015e Compare November 17, 2026 16:54
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-13-systems-sidebar branch 2 times, most recently from 8b13abd to 530edc1 Compare November 17, 2026 18:31
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-12-customize-sidebar branch 2 times, most recently from 7b89a8d to a7b90b5 Compare November 17, 2026 18:52
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-13-systems-sidebar branch from 530edc1 to 1ab318c Compare November 17, 2026 18:52
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-13-systems-sidebar branch from 1ab318c to eb9091b Compare November 17, 2026 19:22
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Nov 17, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-12-customize-sidebar branch from ea4d67d to e56613d Compare November 17, 2026 22:15
@vyctorbrzezowski
vyctorbrzezowski changed the base branch from brzezowski/side-rail-12-customize-sidebar to main November 17, 2026 22:17
vyctorbrzezowski and others added 2 commits November 17, 2026 15:17
…ssions

Systems brings its own device list into the sidebar, but kept the Sessions header above it (owner picker, session filter, new session). Its sidebar now has a Systems header with only the collapse control; the device search and filter stay. The agent avatar no longer treats Systems as the open Sessions list, so it returns to the last session instead of opening the agent menu.
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-13-systems-sidebar branch from eb9091b to 333e3e8 Compare November 17, 2026 22:17
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 17, 2026 22:17
@vyctorbrzezowski
vyctorbrzezowski merged commit 3a0ca90 into main Nov 17, 2026
102 of 106 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/side-rail-13-systems-sidebar branch November 17, 2026 22:18
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged as 3a0ca90 after reviewing the layer and its integration with main. Preserved the approved design and human credit. Known PR-caused failures were repaired and focused checks passed; CI bypass was explicitly authorized by the maintainer. The inherited owner-approval test timing issue is tracked separately in #200810.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 18, 2026
Preserve the approved navigation design. Reviewed the own-layer change, current main integration and applicable focused proof. Known PR-caused failures were repaired before landing; the maintainer explicitly authorized CI bypass. The unrelated owner-approval test timing issue is tracked separately in openclaw#200810.

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 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: XS 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