Repository navigation
fix(ui): follow visual order in the composer slash menu - #194696
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
vyctorbrzezowski
marked this pull request as ready for review
November 7, 2026 23:39
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
/stopstays 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
/ 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 --checkpassed. 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.