Skip to content

improve(ui): add a model picker to Cmd+K Compose and regroup its settings - #198316

Merged
vyctorbrzezowski merged 9 commits into
mainfrom
openclaw/fresh-shrimp-2
Nov 14, 2026
Merged

vyctorbrzezowski merged 9 commits into
mainfrom
openclaw/fresh-shrimp-2

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #186059

What Problem This Solves

The Cmd+K Compose row had grown to several separate pickers plus an attachment button, which crowded a small composer, and it had no way to choose the model.

User Impact

The Compose row now has two controls beside Send: a settings button at the left and the existing model picker at the right. The settings button opens the New session settings menu as it was before #186059: agent, folder with its machine, the New worktree switch, and Remember settings for Cmd/Ctrl+K, with the same behavior. The bottom tabs and shortcut hints are unchanged.

The model picker is the existing New Session one without the effort control; the model keeps following the ordinary New Session defaults. The palette-only attachment button is removed; image paste and file drop still work.

Why This Change Was Made

The separate agent, project, and worktree chips were rejected in review as too cluttered for this composer. The earlier menu already grouped those choices behind one button, so this restores that view and its tests from the parent of #186059 and only moves its trigger into the Compose row. Remember-settings logic is unchanged from the base. The model picker reuses the New Session model control; no new picker or model-selection logic is added.

Evidence

Maintainer verification on the published production code, including the final test-only cleanup:

  • Independent P0–P3 review found no actionable issues.
  • 80 focused tests, 16 existing Chromium E2E cases, and two source-UI scenarios (1280px dark / 390px light) passed. UI and test typechecks, targeted lint, stylesheet lint, formatting, and diff checks passed.
  • Keyboard search/selection changed the model without submitting. Escape returned focus, and the model popover stayed inside both viewports.
  • One background-session creation request carried the selected non-default model and the complete prompt. The foreground conversation and its draft remained intact. These were actual Control UI interactions with a synthetic Gateway, not live model inference.
  • Typing caused no additional model/config reads: models.list stayed at 2 and config.get at 1. Opening the picker is a separate intentional refresh.
  • The short browser fixture has no authenticated preferences owner, so its Remember control was correctly unavailable; this scenario does not claim authenticated persistence proof. The existing preference owner and its behavior are unchanged.
  • Removed geometry-only font/spacing assertions from the tests while retaining grouping, keyboard navigation and focus coverage. No production repair was needed.

The original-head CI run reported 22 functional failures with the same signatures as the previously reproduced baseline failures. The relevant 22 test/owner inputs were compared with that baseline and were unchanged; the two shared model-view changes add an optional flag whose default preserves existing callers. Those failures are not reported as green CI.

The CI asset comparison measured chat boot at +183 bytes gzip against an already-over-budget base, exceeding its 64-byte variance allowance by 119 bytes. CSS decreased by 52 bytes gzip. The maintainer's standing asset-budget exception applies; no limit or baseline was changed.

Real Control UI with synthetic Gateway data (not a design mock). Desktop viewport: 1280 px.

Before — author baseline capture, desktop light

Before: current-main Cmd+K composer

After — maintainer capture, desktop dark

After: settings button, model picker, and Send with unchanged footer

After: New session settings menu opened from the settings button

Emulated phone — 390 px

After: narrow Cmd+K composer

Worked on by

Work sessions

Linked for team reference; these sessions aren’t public.

roboclaw-bot and others added 2 commits November 13, 2026 14:44
Keep avatar and project choices on the left and reuse the model picker beside Send. Preserve the mode dock and shortcuts. Remember palette settings after accepted creation without changing the full-page defaults.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: a15e4d92-23b4-4fff-9edd-eb9b8327108b
@clawsweeper

clawsweeper Bot commented Nov 13, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: L labels Nov 13, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 13, 2026 14:47
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR simplifies Cmd+K controls, adds model selection, and automatically remembers choices after successful session creation.

Example: Choose example/fast in Cmd+K and successfully create a background session.

  • Before: The palette has no model picker and remembers placement only through an opt-in checkbox.
  • After: The palette offers the existing model picker and remembers the accepted session’s choices automatically.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful, owner-directed simplification with inspected visual proof, but persisted behavior lacks production-path and upgrade evidence and the exact-head performance gate fails.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: People composing a background task in Cmd+K cannot directly choose its model and must explicitly opt into remembering placement.
Reason: The maintainer-authored direction supplies direct selection with fewer controls and explicitly authorizes automatic remembering while preserving ordinary New Session defaults.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this maintainer-authored PR open: direct model selection is useful, and the change largely reuses existing owners, but it is not ready to merge.

Priority: P2
Reviewed head: 9fea7714eef4a76544a3ae4f3ea2b7e1d4e20295

Before merge

  • Keep New Session boot growth within its enforced allowance (P2) - The shared model-control change also reaches the ordinary New Session boot surface. The exact-head base comparison reports 816167 B gzip against 816097 B on the base, exceeding the allowed 64 B growth by 6 B and failing both control-ui-performance and the aggregate CI gate. Reduce the introduced shared-control bundle growth within the existing allowance; the source-level byte contribution has not been isolated by the available annotations.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

  • [P2] Keep New Session boot growth within its enforced allowance — ui/src/pages/new-session/model-control-view.tsx:93-99
  • [P3] Explain the next action when remembering settings fails — ui/src/i18n/locales/en-command-palette.ts:11

Tests

  • Missing end-to-end proof: Provide redacted real-Gateway output or a recording showing accepted choices restored after reopening, cancelled or failed creation leaving defaults intact, and an upgrade from v2026.11.3 preserving existing preferences.
Agent review details

How this fits together

The Control UI palette receives prompts, attachments, and session choices, submits through the existing session draft owner, and saves last-used choices through authenticated users.prefs.

flowchart TD
  A[Cmd K composer] --> B[Existing agent and project controls]
  A --> C[Existing model control]
  B --> D[Session draft owner]
  C --> D
  D --> E[Gateway session creation]
  E --> F[Accepted session callback]
  F --> G[Authenticated preference queue]
Loading

Technical review

Best possible solution:

Reuse the existing picker, session submission, and authenticated preference owners while remembering only accepted palette choices.

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

Current-main source and the before capture establish the missing palette model picker; this review performed source and artifact inspection without executing the product.

Is this the best way to solve the issue?

The approach is appropriately small: it removes the old opt-in save machinery, reuses the model control, and extends the existing released-draft lifetime rather than creating another preference manager.

Full review comments:

  • [P2] Keep New Session boot growth within its enforced allowance — ui/src/pages/new-session/model-control-view.tsx:93-99
    The shared model-control change also reaches the ordinary New Session boot surface. The exact-head base comparison reports 816167 B gzip against 816097 B on the base, exceeding the allowed 64 B growth by 6 B and failing both control-ui-performance and the aggregate CI gate. Reduce the introduced shared-control bundle growth within the existing allowance; the source-level byte contribution has not been isolated by the available annotations.
    Confidence: 0.94
  • [P3] Explain the next action when remembering settings fails — ui/src/i18n/locales/en-command-palette.ts:11
    When session creation succeeds but the preference write fails, the new warning reports the failure without explaining how to recover. The retry control was removed, so tell users that they can reselect their choices and that the next successfully created session will try saving them again.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.9

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit e2bcb16 adds ui/src/pages/new-session/palette-session-preferences.ts:15 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e2bcb1614de0; files: ui/src/pages/new-session/palette-session-preferences.ts)

PR surface

Source -151, Tests -72, Docs +9. Total -214 across 21 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 13 152 303 -151
Tests 7 196 268 -72
Docs 1 11 2 +9
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 21 359 573 -214

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:

  • P2: This improves a working command-palette workflow with limited user impact and no established urgent regression.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 13, 2026, 10:06 AM ET / 15:06 UTC.

roboclaw-bot and others added 6 commits November 13, 2026 23:58
Return the New worktree switch to the composer row beside the project, grow the agent avatar to 24px so it balances Send, and trim the palette-only model change hook to stay inside the Control UI size budget.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: c25fd66e-c1c1-4a8d-9c06-dd2bb68b2bf6
Move New worktree back inside the project menu so the composer row stays at agent, project, model, and Send. The closed project chip shows the branch icon and names the worktree in its label while the switch is on. The menu row marks the on state with the menu's existing check instead of importing the switch component into startup code.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: a3cc0294-6a5d-4998-b29f-1b81368fc6dc
Bring back the New session settings menu from before #186059 (agent, folder with machine, New worktree switch, Remember settings) and open it from a settings button at the left of the Compose row. The opt-in Remember behavior and its retry handling are restored unchanged. The only addition over that menu is the existing model picker beside Send, without the effort control. The palette-only attachment button stays removed; paste and drop still work.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 510385c7-e6cb-48e6-a92e-e5f65cf509b7
@roboclaw-bot roboclaw-bot changed the title improve(ui): simplify Cmd+K session controls improve(ui): add a model picker to Cmd+K Compose and regroup its settings Nov 14, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 8c18a7b into main Nov 14, 2026
71 of 77 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/fresh-shrimp-2 branch November 14, 2026 01:07
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
…ings (openclaw#198316)

Group Cmd+K Compose placement options in the existing New session settings menu and reuse the New Session model picker beside Send. Preserve background creation, keyboard navigation, preferences, and image paste/file drop.

Co-authored-by: vyctorbrzezowski <[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 docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants