Repository navigation
feat(control-ui): move the Ask OpenClaw toggle to the sidebar footer - #125486
Conversation
The sidebar bottom now mirrors its top: big agent selector with inline chevron + small new-session square above, big account identity card with inline chevron + small lobster toggle below. The account chevron moves from the row's far right to directly after the name, matching the top header treatment; the freed edge hosts the toggle. The old top-left shell-chrome placement is removed along with its four-button width reservation (which read-scoped clients paid for without seeing the button). Scope gating, palette entry, and panel wiring are unchanged; gating regressions moved to the sidebar cases.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 9:22 PM ET / August 18, 2026, 01:22 UTC. ClawSweeper reviewWhat this changesMoves the existing admin-gated Ask OpenClaw panel trigger to the Control UI sidebar footer, with the shell chrome retaining it only while the desktop sidebar is collapsed. Merge readinessKeep this maintainer-owned PR open. The previous collapsed-navigation access regression is fixed at the current head, and the remaining state is normal exact-head merge/CI refresh rather than a patch defect. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI renders Ask OpenClaw controls from Gateway capability and operator-scope information. Both controls dispatch the same event to the persistent assistant panel, while collapsed desktop navigation hides the sidebar entirely. flowchart LR
A[Gateway capability snapshot] --> B[Control UI rendering]
B --> C{Desktop navigation collapsed?}
C -->|No| D[Sidebar footer control]
C -->|Yes| E[Chrome fallback control]
D --> F[Shared panel event]
E --> F
F --> G[Ask OpenClaw panel]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +78, Tests -19, Docs 0. Total +59 across 7 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk options
Maintainer options:
Technical reviewBest possible solution: Land the focused placement change after rebasing or refreshing against current main and confirming the exact-head checks; retain the paired footer and collapsed-navigation controls as the single shared-event access path. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a UI-placement refinement, and its relevant behavior is directly covered by focused render tests and the supplied browser E2E scenario. Is this the best way to solve the issue? Yes. The branch reuses the existing Gateway authorization check and panel event, with complementary controls for mutually exclusive expanded and collapsed navigation states. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bb1ce585149a. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Address the ClawSweeper P1: desktop collapse hides the sidebar entirely (display:none, no rail), which would have removed the toggle's only persistent surface. The lobster now joins the chrome strip exactly while the nav is collapsed — the footer stays its home — and the strip's collapsed width reserves four controls for that state. Regression covers collapsed-present/expanded-absent/read-scope-absent.
|
The P1 is addressed at head b826390: the toggle joins the chrome strip exactly while the nav is collapsed (its sidebar-footer home is |
|
Merged via squash.
|
…penclaw#125486) * feat(control-ui): move the Ask OpenClaw toggle to the sidebar footer The sidebar bottom now mirrors its top: big agent selector with inline chevron + small new-session square above, big account identity card with inline chevron + small lobster toggle below. The account chevron moves from the row's far right to directly after the name, matching the top header treatment; the freed edge hosts the toggle. The old top-left shell-chrome placement is removed along with its four-button width reservation (which read-scoped clients paid for without seeing the button). Scope gating, palette entry, and panel wiring are unchanged; gating regressions moved to the sidebar cases. * fix(control-ui): keep Ask OpenClaw reachable while the nav is collapsed Address the ClawSweeper P1: desktop collapse hides the sidebar entirely (display:none, no rail), which would have removed the toggle's only persistent surface. The lobster now joins the chrome strip exactly while the nav is collapsed — the footer stays its home — and the strip's collapsed width reserves four controls for that state. Regression covers collapsed-present/expanded-absent/read-scope-absent.
What Problem This Solves
The Ask OpenClaw toggle shipped in #125107 as a third icon in the top-left
shell-chrome-controlsstrip — a frame-utility cluster (nav collapse, palette) that is the wrong semantic neighborhood for a persistent agent companion, and its four-button width reservation charged read-scoped clients ~28px of dead inset for a button they never see.Why This Change Was Made
Product decision (maintainer): the sidebar's bottom now mirrors its top. Top = big agent selector with inline chevron + small square new-session button; bottom = big account identity card + small square lobster toggle. To complete the mirror, the account chevron moves from the row's far right to directly after the name, matching the top header treatment; the freed right edge hosts the toggle. The old chrome-strip placement is deleted along with its width reservation. Scope gating (
canCallGatewayMethod(…, "operator.admin")), the command-palette entry, and all panel/deferred wiring are unchanged; the admin/read-scope/not-advertised regressions moved to the sidebar test cases.User Impact
Admins summon Ask OpenClaw from a labeled-by-position, always-visible spot that reads as part of the sidebar's identity zone rather than an anonymous chrome icon; read-scoped clients lose a layout wart. Palette access is unchanged.
Evidence
The mirror (light):
Footer close-up — inline chevron + lobster:
Panel opened from the new button (prior session's history intact across gateway restart):
Dark theme (mocked rig):