Skip to content

improve(ui): refine the slash command menu - #197817

Merged
vyctorbrzezowski merged 6 commits into
mainfrom
brzezowski/slash-menu-refine
Nov 12, 2026
Merged

vyctorbrzezowski merged 6 commits into
mainfrom
brzezowski/slash-menu-refine

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

What changes

Refines the slash command menu with larger icons and text, descriptions beside command names, quieter group labels, and chevrons for available argument choices. Uses existing action titles and displays the current model and effort. Argument choices show a check for the current value without repeating the command icon or invocation. Loading rows keep the same spacing, and New Session anchors the menu to the composer. Search, typing, selection, and command activation stay the same.

Evidence

Scenario Before After
Full list · 1440×900 · dark Full list · 1440×900 · dark before Full list · 1440×900 · dark after
Current model and effort · 1440×900 · dark Current model and effort · 1440×900 · dark before Current model and effort · 1440×900 · dark after
Filtered /go · 1440×900 · dark Filtered /go · 1440×900 · dark before Filtered /go · 1440×900 · dark after
Long results /diag · 1440×900 · dark Long results /diag · 1440×900 · dark before Long results /diag · 1440×900 · dark after
Keyboard selection · 1440×900 · dark Keyboard selection · 1440×900 · dark before Keyboard selection · 1440×900 · dark after
Argument choices · 1440×900 · dark Argument choices · 1440×900 · dark before Argument choices · 1440×900 · dark after
Freeform arguments · 1440×900 · dark Freeform arguments · 1440×900 · dark before Freeform arguments · 1440×900 · dark after
No matches · 1440×900 · dark No matches · 1440×900 · dark before No matches · 1440×900 · dark after
Loading rows · 1440×900 · dark Loading rows · 1440×900 · dark before Loading rows · 1440×900 · dark after
Full list · 390×844 · dark Full list · 390×844 · dark before Full list · 390×844 · dark after
Current model and effort · 390×844 · dark Current model and effort · 390×844 · dark before Current model and effort · 390×844 · dark after
Filtered /go · 390×844 · dark Filtered /go · 390×844 · dark before Filtered /go · 390×844 · dark after
Long results /diag · 390×844 · dark Long results /diag · 390×844 · dark before Long results /diag · 390×844 · dark after
Keyboard selection · 390×844 · dark Keyboard selection · 390×844 · dark before Keyboard selection · 390×844 · dark after
Argument choices · 390×844 · dark Argument choices · 390×844 · dark before Argument choices · 390×844 · dark after
Freeform arguments · 390×844 · dark Freeform arguments · 390×844 · dark before Freeform arguments · 390×844 · dark after
No matches · 390×844 · dark No matches · 390×844 · dark before No matches · 390×844 · dark after
Loading rows · 390×844 · dark Loading rows · 390×844 · dark before Loading rows · 390×844 · dark after
Full list · 1440×900 · light Full list · 1440×900 · light before Full list · 1440×900 · light after
Full list · 390×844 · light Full list · 390×844 · light before Full list · 390×844 · light after
/new full list · 1440×900 · dark /new full list · 1440×900 · dark before /new full list · 1440×900 · dark after
/new argument choices · 1440×900 · dark /new argument choices · 1440×900 · dark before /new argument choices · 1440×900 · dark after
/new full list · 390×844 · dark /new full list · 390×844 · dark before /new full list · 390×844 · dark after
/new argument choices · 390×844 · dark /new argument choices · 390×844 · dark before /new argument choices · 390×844 · dark after

Validation and behavior fixes

Search and rendering now share localized command titles, so /effort, /speed, translated titles, and displayed skill names find the matching command. Selecting a result still uses the canonical invocation. Saved model labels share the model picker's snapshot presentation, and unrelated composer updates retain catalog preparation.

  • 70 focused tests passed, including regressions that failed before the fixes and English/German title matching.
  • 15 browser E2E cases across the affected command flows and 3 Gateway HTTP fixture cases passed. Existing command payload, identity, draft, and access assertions remain; only stale visible-label selectors and a platform-specific keyboard shortcut were updated.
  • UI type checking, targeted lint, formatting, static import-cycle checks, and the production UI build passed.
  • Manual checks against production UI assets with local fixtures verified Effort/Speed search, Tab completion, and Enter applying High effort through sessions.patch. Both the model controls and the command menu displayed High afterward.
  • Existing desktop/mobile light/dark layout captures remain applicable. The title-search change moves only two locale modules into shared boot; no menu renderer became eager. Chat boot gzip changed by +365 bytes and New Session by -139 bytes, with request counts unchanged.
Final behavior Production UI fixture
Search the displayed Effort title Effort title search
Apply High effort and show the current value High effort applied
Search the displayed Speed title Speed title search

CI assessment

The maintainer accepted the reported CSS/JS size-budget increases for this design. The remaining failed E2E shard exhausted its fixture-setup/job deadline before the fresh-visit test created a browser context or executed a UI callback; its Gateway fixture owners are byte-identical to incoming source and live main. The five other ordinary E2E shards passed. The settings skeleton suite was cut off by the job deadline without an assertion failure and passed all 13 cases in isolation; the fresh-visit HTTP suite separately passed all 3 cases. This is a documented setup-infrastructure/suite-interruption exception, not a claim that the same failure was reproduced on baseline.

Exact CI run · asset-size budget · interrupted E2E shard

@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 12, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR restyles slash-command menus, adds action titles and current model/effort values, and adjusts New Session menu placement.

Example: Open the slash menu with effort set to Medium.

  • Before: The /think row shows its syntax and description.
  • After: The Effort row also shows Medium, and the medium argument choice has a check.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The changed visual behavior is demonstrated and source review found no blocking defect, but skipped code-validation checks limit merge confidence.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): The linked Control UI before/after screenshots show larger command rows, action titles, current model and effort labels, a checked argument value, and mobile New Session placement; inspected captures use synthetic content.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Slash-command rows are visually dense, and users cannot see current model or effort values within the menu.
Reason: The maintainer-authored direction improves scanning and exposes existing selection facts with a bounded presentation change.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored draft offers a coherent UI refinement, and source review found no blocking defect.

Priority: P3
Reviewed head: 08d3efb102108f3b89a5e843a8065f4a2260f83b

Before merge

None.

Findings

None.

Agent review details

How this fits together

The shared Control UI composer menu receives command definitions, draft state, and model-selection facts, renders suggestions for Chat and New Session, and delegates activation to the existing command owner.

flowchart LR
  A[Composer draft] --> B[Existing slash menu state]
  C[Command catalog] --> B
  D[Model and effort facts] --> E[Shared menu presentation]
  B --> E
  E --> F[Existing command activation]
Loading

Technical review

Best possible solution:

Land the scoped presentation refinement through the existing menu owners after draft validation is complete.

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

This is an intentional UI refinement rather than a reported malfunction; supplied screenshots visibly establish the before/after presentation.

Is this the best way to solve the issue?

The change uses the existing menu renderer, command state, selection resolvers, and translation catalogs without adding mutation authority or persistent state.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d3ce53dde359.

Provenance checked

  • Command and skill menu presentation changes intended behavior with a stated reason (improve(control-ui): redesign composer slash and skill invocations #129707: Unify command-first invocation sheets and keep command and skill interactions aligned across keyboard and mobile use.)
  • Lazy menu shells and option rendering keeps the original intent (e89e5ad: Keep menu state and keyboard behavior synchronous while loading rich option views separately.)
  • Direct command icon rendering keeps the original intent (4ece87e: Remove unnecessary optional-content wrappers from always-present command icons.)
  • Keyboard order and activation keeps the original intent (7043600: Make keyboard traversal follow the grouped visual order and activate the highlighted command.)
  • New Session menu placement changes intended behavior with a stated reason (74c7b3d: The Solid port preserved existing placement and composer interactions; this PR explicitly moves the slash menu to anchor against the composer.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 7043600 adds ui/src/pages/chat/components/chat-composer-menu.test.tsx:69 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7043600cc494; files: ui/src/pages/chat/components/chat-composer-menu.test.tsx)
  • Peter Steinberger: Raw commit e89e5ad adds ui/src/pages/chat/components/chat-composer-slash-menu.tsx:21 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e89e5adfe69b; files: ui/src/pages/chat/components/chat-composer-slash-menu.tsx)
  • Jesse Merhi: Raw commit f8550bc adds ui/src/pages/chat/components/chat-composer-slash-menu.ts:22 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: f8550bc11d4d; files: ui/src/pages/chat/components/chat-composer-slash-menu.ts)

PR surface

Source +333, Tests +66. Total +399 across 12 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 10 372 39 +333
Tests 2 78 12 +66
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 450 51 +399

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a bounded presentation and discoverability improvement with no established urgent workflow failure.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

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

  • Run the focused composer tests, UI typecheck, and required CI when the draft is ready.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 12, 2026, 11:34 AM ET / 16:34 UTC.

Reuse the saved model presentation and retained catalog preparation in slash menus, and match displayed skill titles.

Co-authored-by: Vyctor H. Brzezowski <[email protected]>
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 12, 2026 20:27
vyctorbrzezowski and others added 2 commits November 12, 2026 18:16
Share localized titles between matching and rendering while retaining canonical command invocations and lazy menu chunks.

Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Keep command payload, draft and access assertions while selecting the approved visible labels. Use the platform-specific start-of-text shortcut for leading-command scenarios.

Co-authored-by: Vyctor H. Brzezowski <[email protected]>
@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) November 12, 2026 21:27
@vyctorbrzezowski
vyctorbrzezowski merged commit 0880fe3 into main Nov 12, 2026
96 of 100 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/slash-menu-refine branch November 12, 2026 21:54
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 13, 2026
Refine slash command rows, current model and effort labels, and argument choices. Share localized titles between search and rendering while preserving canonical invocation, saved model snapshots, keyboard selection, and lazy menu loading.

Validated with 70 focused tests, 15 command-flow browser cases, 3 Gateway HTTP fixture cases, and 13 settings skeleton cases, plus production UI build and manual responsive light/dark checks.

The maintainer accepted the asset-size budget changes and the documented pre-UI fixture setup/job-deadline interruption; no matching-baseline failure is claimed.

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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. 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.

1 participant