Repository navigation
improve(ui): add a model picker to Cmd+K Compose and regroup its settings - #198316
Conversation
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
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. What this changesThis 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.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a48a3175600e. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -151, Tests -72, Docs +9. Total -214 across 21 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 13, 2026, 10:06 AM ET / 15:06 UTC. |
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
…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]>
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:
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
After — maintainer capture, desktop dark
Emulated phone — 390 px
Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.