Skip to content

fix(ui): follow visual order in the composer slash menu - #194696

Merged
vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/slash-menu-keyboard-order
Nov 7, 2026
Merged

vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/slash-menu-keyboard-order

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Arrow keys followed a different order from the grouped rows in the full slash menu.

User Impact

ArrowUp and ArrowDown follow the visible rows across categories, and Enter selects the highlighted command. /stop stays preselected.

Why This Change Was Made

The menu state now owns the grouped order; rendering keeps that order. Filtered search ranking stays unchanged. A focused regression in the existing menu test covers navigation and selection, with the required 37-line test allocation.

Evidence

Before After
Before keyboard order After keyboard order

/ then ↓ ×8

Captured from the real Control UI against a local Gateway with no model credentials, so the composer shows No models available.

Focused validation on Tempbook passed: 54 tests across composer menus, composer suggestions, and command ranking. The keyboard regression fails on the original implementation at the selected visible row assertion and passes on this head. The changed menu test file passed all 17 tests in 2.53 seconds wall time (one worker).

Targeted formatting/lint, UI typecheck, source i18n verification, controller guard, test-line ratchet, and git diff --check passed. Lint retains one warning in an untouched test callback. The 37-line allocation exactly covers the meaningful keyboard regression. Independent source review found no actionable P0–P2 issues; no source repair was needed.

Original media is retained under the incoming screenshot recapture waiver. Broad CI, its measured seconds, and final security checks remain with the parent landing workflow; no new E2E suite was run.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 7, 2026
@clawsweeper

clawsweeper Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 7, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 7, 2026 23:39
@vyctorbrzezowski
vyctorbrzezowski merged commit 7043600 into main Nov 7, 2026
165 of 167 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/slash-menu-keyboard-order branch November 7, 2026 23:45
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 8, 2026
)

Keep keyboard navigation and selection aligned with the visible grouped slash-menu order while preserving the stop default and filtered ranking.

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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant