Skip to content

feat(control-ui): move the Ask OpenClaw toggle to the sidebar footer - #125486

Merged
steipete merged 2 commits into
mainfrom
steipete/custodian-sidebar-footer-toggle
Aug 18, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/custodian-sidebar-footer-toggle

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Ask OpenClaw toggle shipped in #125107 as a third icon in the top-left shell-chrome-controls strip — 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

  • Full UI suite 9289 passed post-rebase; custodian e2e re-shot with the footer selectors (2/2); oxlint/oxfmt/tsgo:ui/stylelint/check-changed clean; Codex autoreview clean. Production delta +36/−24.
  • Live screenshots (isolated dev gateway, real model, this branch's build):

The mirror (light):

footer closed

Footer close-up — inline chevron + lobster:

footer close-up

Panel opened from the new button (prior session's history intact across gateway restart):

panel open

Dark theme (mocked rig):

dark

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.
@clawsweeper

clawsweeper Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 18, 2026 01:00
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 18, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 18, 2026
@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 9:22 PM ET / August 18, 2026, 01:22 UTC.

ClawSweeper review

What this changes

Moves 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 readiness

⚠️ Ready for maintainer review - 1 item remains

Keep 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
Reviewed head: b826390a269ca897fac8ac387f137d51c0f64e64

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused implementation and regression coverage are sound, with only normal exact-head refresh work remaining.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this maintainer-authored PR; its body nevertheless includes after-fix UI screenshots.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this maintainer-authored PR; its body nevertheless includes after-fix UI screenshots.
Evidence reviewed 6 items Current-main behavior: Current main still renders the authorized Ask OpenClaw control in shell chrome, so this branch remains a distinct UI-placement refinement rather than already-implemented work.
Expanded-navigation owner boundary: The footer checks the same advertised Gateway method and operator-admin scope before rendering, then dispatches the existing shared panel-toggle event.
Collapsed-navigation repair: The shell renders the chrome trigger only when navigation is collapsed and uses the same event contract, preserving reachability without duplicating panel behavior.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Complete next step (P2) - No repair lane is needed: the prior P1 is addressed, and the remaining work is standard rebase/merge and exact-head CI handling.
Agent review details

Security

None.

PR surface

Source +78, Tests -19, Docs 0. Total +59 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 4 93 15 +78
Tests 2 18 37 -19
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 112 53 +59

Review metrics

Metric Value Why it matters
Production versus test delta production +29 (38 added, 9 removed); docs 0 (1 added, 1 removed); tests/support +30 (73 added, 43 removed) The modest production growth implements the relocated control and collapsed-sidebar fallback; the larger test change covers authorization, dispatch, and navigation-state behavior.

Stored data model

Persistent data-model change detected: migration/backfill/repair: docs/web/control-ui.md, serialized state: ui/src/e2e/custodian-panel-toggle.e2e.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

  • GitHub currently reports the branch as mergeable but behind current main, so landing should use a refreshed merge result and exact-head required checks.

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is a low-risk Control UI ergonomics refinement after the prior access regression was repaired.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this maintainer-authored PR; its body nevertheless includes after-fix UI screenshots.
  • remove P1: Current review triage priority is P3, so this older priority label is no longer current.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 compatibility: Current PR review selected no merge-risk labels.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is a low-risk Control UI ergonomics refinement after the prior access regression was repaired.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this maintainer-authored PR; its body nevertheless includes after-fix UI screenshots.

Evidence

What I checked:

Likely related people:

  • steipete: Current history attributes both the merged persistent Ask OpenClaw feature and this collapsed-navigation follow-up to this contributor. (role: feature owner and recent area contributor; confidence: high; commits: aeee42618076, b826390a269c; files: ui/src/app/app-shell-view.ts, ui/src/components/app-sidebar-render.ts, ui/src/e2e/custodian-panel-toggle.e2e.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Rebase or refresh against current main and let required checks complete on the exact head.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-18T01:06:48.991Z sha c068913 :: found issues before merge. :: [P1] Keep the toggle reachable with a collapsed sidebar

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.
@steipete

Copy link
Copy Markdown
Contributor Author

The P1 is addressed at head b826390: the toggle joins the chrome strip exactly while the nav is collapsed (its sidebar-footer home is display:none in that state), still admin-gated; the strip's collapsed width reserves four controls for that state only. Regression: collapsed-present / expanded-absent / read-scope-absent in app-host.dock-suppression.test.ts.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 18, 2026
@steipete
steipete merged commit 49cdd54 into main Aug 18, 2026
153 checks passed
@steipete
steipete deleted the steipete/custodian-sidebar-footer-toggle branch August 18, 2026 01:26
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 18, 2026
…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.
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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant