Skip to content

improve(ui): quiet slash command menu hierarchy - #122237

Merged
vyctorbrzezowski merged 7 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/control-ui-slash-command-menu
Aug 12, 2026
Merged

vyctorbrzezowski merged 7 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/control-ui-slash-command-menu

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Aug 11, 2026 •

Copy link
Copy Markdown
Member

Closes #122225

What Problem This Solves

Fixes an issue where the Control UI composer slash-command menu gives command names, icons, the selected row, and instant metadata the same brand-red emphasis. The result is visually noisy in both themes and makes the command hierarchy harder to scan.

Why This Change Was Made

In this PR, slash-command rows use a consistent two-column grammar: icon and medium-weight command name on the left, with muted description and value metadata aligned to the right. Empty icon slots stay reserved so every name starts on the same column. The menu uses the existing neutral palette and shared menu geometry, with a subtle neutral hover surface and no section dividers.

Option counts remain visible as plain muted metadata, while the ambiguous instant pills are removed.

The rounded sheet now owns clipping while a nested viewport owns scrolling, preserving all four corners and leaving the scrollbar track transparent. All command tiers render directly in that scrollable list; the Show more state and the redundant keyboard-hint footer are removed.

instant represented no-argument Control UI commands that submit immediately when selected, generally without a model round trip. It was not a latency guarantee: those paths may still queue, request confirmation, or await Gateway RPC. The execution behavior is unchanged.

The row classes are also shared by composer skill suggestions, so both suggestion modes keep one consistent neutral hierarchy instead of diverging CSS paths. Group headers use the same small, muted treatment as other Control UI navigation labels.

User Impact

Users get a calmer, more legible command picker in light and dark themes. Every available command is immediately searchable and scrollable without an expander or footer chrome. Command behavior, keyboard navigation, descriptions, and option counts remain unchanged.

Evidence

Both pairs show the full / command list in the same deterministic mocked-Gateway state.

Theme Before Proposed in this PR
Light Before: slash-command menu in light theme with red names, icons, selection, and instant pills Proposed: streamlined two-column slash-command sheet in light theme with four rounded corners, no hint footer, and a clean scroll surface
Dark Before: slash-command menu in dark theme with red names, icons, selection, and instant pills Proposed: streamlined two-column slash-command sheet in dark theme with four rounded corners, no hint footer, and a clean scroll surface

Validation:

  • Regression tests failed before the respective fixes because /stop rendered the instant badge and power-tier commands were hidden behind the expander. They pass after the change while confirming option-count badges remain.
  • node scripts/run-vitest.mjs ui/src/pages/chat/chat-view.test.ts ui/src/styles/theme-contrast.test.ts — 240 passed.
  • node scripts/run-vitest.mjs ui/src/pages/chat/chat-view.test.ts ui/src/pages/chat/chat-responsive.browser.test.ts — 319 passed; slash and skill keyboard navigation keep the active option visible in the nested scroll viewport, including short landscape overflow.
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-slash-command-ranking.e2e.test.ts — 1 passed against the real picker.
  • pnpm ui:i18n:verify — passed after removing the obsolete keyboard-hint baseline entries.
  • Final light/dark captures were taken from the Control UI mocked-Gateway harness at this head.
  • Runtime inspection at this head: 53 options in the list, no footer or expander, four-corner shell clipping, and transparent scrollbar track.
  • Blacksmith exact-head CI — green for 8b8c57640f2 after remote-only reruns: https://github.com/openclaw/openclaw/actions/runs/31553420014
  • Structured pre-ship review — clean, no actionable findings.
  • Production LOC: +163 / -230 (net -67). Test LOC: +158 / -12. Generated i18n baseline: -42.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 11, 2026
@clawsweeper

clawsweeper Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 11, 2026
@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. labels Aug 11, 2026
@clawsweeper

clawsweeper Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 9:29 PM ET / August 12, 2026, 01:29 UTC.

ClawSweeper review

What this changes

The PR gives Control UI slash-command and skill menus a neutral two-column layout, removes the tier expander and shortcut footer, and scrolls both menus through a nested viewport.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

No blocking code defect found at the current PR head. This remains open because it is maintainer-authored/labeled and deliberately changes the default command-discovery policy, which needs maintainer acceptance alongside exact-head CI completion.

Priority: P2
Reviewed head: 8b8c57640f24e96087e0f51609480388acd0a940
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent, net-negative UI refactor with focused coverage; remaining review is the intentional default-discovery choice, not a demonstrated patch defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The author is a repository member, so the external-contributor proof gate does not apply; the PR body additionally reports mocked-Gateway captures and focused UI validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The author is a repository member, so the external-contributor proof gate does not apply; the PR body additionally reports mocked-Gateway captures and focused UI validation.
Evidence reviewed 6 items Current-main behavior: Current main still filters power-tier commands through slashMenuExpanded and renders the accent-heavy menu styling, so the central UI problem is not already solved on main.
PR owner-boundary change: The PR makes the composer request all command tiers and wraps command rows in the viewport that owns scrolling.
Sibling path covered: Skill selection now targets the same nested scroll viewport, rather than the non-scrollable outer skill menu.
Findings None None.
Security None None.

How this fits together

The Control UI chat composer turns / and $ input into keyboard-navigable command and skill menus. These menus expose available actions to the operator before selection updates or submits the composer draft.

flowchart LR
  A[Composer input] --> B[Command or skill matching]
  B --> C[Menu rows]
  C --> D[Nested scroll viewport]
  D --> E[Keyboard selection]
  E --> F[Composer draft or action]
Loading

Decision needed

Question Recommendation
Should the Control UI show all slash-command tiers by default instead of retaining progressive disclosure through Show more? Adopt the full-list default: Keep the PR’s scrollable all-tier command list and neutral visual hierarchy.

Why: The patch correctly implements either presentation, but the default discoverability-versus-density choice is a product decision rather than a mechanical correctness question.

Before merge

  • Resolve merge risk (P1) - The default picker changes from progressive disclosure with a Show more control to an immediately scrollable full command list; automated tests cannot decide whether that density tradeoff is the intended product direction.
  • Complete next step (P2) - A maintainer must accept the default full-list UX policy and wait for exact-head CI; no narrow mechanical repair is outstanding.
Agent review details

Security

None.

PR surface

Source -109, Tests +146. Total +37 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 8 163 272 -109
Tests 2 158 12 +146
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 321 284 +37

Review metrics

Metric Value Why it matters
Production versus test delta production +163/-230 (net -67); tests +158/-12; generated baseline -42 The UI refactor removes more production code than it adds while expanding regression coverage for both menu paths.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #122225
Summary: This PR is the candidate implementation for the canonical Control UI slash-menu hierarchy report.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Mantis proof suggestion

A short Control UI chat interaction can directly confirm the changed slash-menu hierarchy and all-tier scrolling behavior. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis web UI chat proof: verify that typing / shows the full neutral command list and keyboard navigation keeps the active row visible.

Merge-risk options

Maintainer options:

  1. Accept the full-list interaction (recommended)
    Merge after a maintainer confirms that immediate access to power-tier commands is preferred over the prior progressive-disclosure default.
  2. Keep the disclosure policy
    Restore the prior expander behavior while retaining the visual and nested-scroll repairs.

Technical review

Best possible solution:

Confirm that all command tiers should be visible by default, then land the neutral hierarchy and shared nested-scroll behavior after exact-head checks finish green.

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

Yes—typing / on current main reaches the tier-filtered composer menu, and current source plus the prepared light/dark captures establish the reported visual hierarchy.

Is this the best way to solve the issue?

Yes, conditional on accepting the full-list default: the nested viewport is the shared owner for slash and skill scrolling, and the final head covers both paths.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 021ea774ab6f.

Labels

Label changes:

  • 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 author is a repository member, so the external-contributor proof gate does not apply; the PR body additionally reports mocked-Gateway captures and focused UI validation.
  • remove proof: sufficient: Current real behavior proof status is not_applicable, not sufficient.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.
  • remove proof: 📸 screenshot: Current real behavior proof evidence kind is not_applicable.

Label justifications:

  • P2: This is a bounded but recurring Control UI command-picker behavior and usability change.
  • merge-risk: 🚨 other: The PR intentionally changes the default command-discovery policy from progressive disclosure to a full scrollable list.
  • 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 author is a repository member, so the external-contributor proof gate does not apply; the PR body additionally reports mocked-Gateway captures and focused UI validation.

Evidence

What I checked:

Likely related people:

  • joshavant: Current-main blame and history attribute the command filtering, scrolling, and menu styling to this implementation. (role: current menu implementation author; confidence: high; commits: 2fbf4fdbe6aa; files: ui/src/pages/chat/components/chat-composer-slash-menu.ts, ui/src/pages/chat/components/chat-composer-skill-menu.ts, ui/src/styles/chat/layout.css)

Rank-up moves

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

  • Obtain maintainer confirmation that the full default command list is the desired interaction policy.
  • Wait for exact-head CI to finish before landing.

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 (3 earlier review cycles)
  • reviewed 2026-08-11T19:56:53.739Z sha 0c1d9ddd80d25507d72c1413e2c6f7bf57b8d80f :: needs maintainer review before merge. :: none
  • reviewed 2026-08-11T21:07:10.554Z sha 37802fb :: needs maintainer review before merge. :: none
  • reviewed 2026-08-12T00:54:48.313Z sha 1cb82bf :: needs changes before merge. :: [P2] Keep skill keyboard scrolling on the nested viewport

@vyctorbrzezowski

vyctorbrzezowski commented Aug 11, 2026 •

Copy link
Copy Markdown
Member Author

Compaction pass is up at 37802fb1d87: fully muted group headers, softer medium-weight command text, 28px rows, a smaller 288px panel, lighter separators, and a subtler neutral active surface. Both-theme after screenshots in the PR body are refreshed against the final built UI. Focused UI/contrast tests and the final Blacksmith Testbox changed-scope gate are green. No merge.

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

The two-column polish pass is up at a74c0e9f1c9: command names and icons now share a stable leading column, descriptions and values align in a muted trailing column, and the row/section chrome is quieter. Both-theme screenshots are refreshed in the PR body. No merge.

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

The four follow-up adjustments are up at 6646c9c1a59: the sheet keeps all four rounded corners, keyboard hints and the command expander are gone, every command is in the scrollable list, and the scrollbar track is transparent. Light/dark screenshots are refreshed in the PR body. No merge.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. and removed 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. labels Aug 12, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 12, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Addressed both Rank-up moves at 98892f444e1: skill keyboard navigation now scrolls the shared nested viewport, with focused interaction and short-landscape browser coverage.

Verified locally: 319 focused UI tests passed. @clawsweeper re-review

@clawsweeper clawsweeper Bot added 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 proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Aug 12, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Maintainer decision recorded: the full scrollable command list is the intended interaction; Vyctor explicitly requested removal of the Show more disclosure after testing this head in the local mock. Exact-head CI is green after remote reruns; no code finding remains.

@vyctorbrzezowski
vyctorbrzezowski merged commit 7630d06 into openclaw:main Aug 12, 2026
254 of 259 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/control-ui-slash-command-menu branch August 12, 2026 02:01
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 12, 2026
* improve(ui): quiet slash command menu hierarchy

* improve(ui): compact slash command menu

* improve(ui): polish slash command rows

* improve(ui): streamline slash command sheet

* chore(ui): refresh command copy baseline

* fix(ui): keep skill selection in view

* test(ui): type skill menu viewport stub
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 maintainer Maintainer-authored PR merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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.

[Bug]: Control UI slash-command menu overuses accent color

1 participant