Repository navigation
fix(ui): remove excess space before the model picker chevron - #199089
Conversation
Size New Session model labels to their content, preserving truncation and the mobile chevron anchor. Cover short/long model selection and permit only the intended chip leading-edge resize during catalog arrival. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 7f4efdc9-2bf1-4005-8fe6-3cd1b60872e7
|
🦞👀 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: needs maintainer review before merge. What this changesThis PR makes the New Session model chip fit short names while preserving long-name truncation and mobile chevron alignment. Example: Select GPT 5.5 in the New Session composer.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: the spacing defect remains on current main, the supplied screenshots demonstrate the correction, and no introduced correctness defect was found. The failing browser check still needs CI disposition. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe New Session composer renders model catalog labels through shared model-picker controls; its page-specific CSS controls label width and mobile alignment. flowchart LR
A[Model catalog] --> B[New Session model selection]
B --> C[Shared model picker]
C --> D[Label and chevron]
E[New Session stylesheet] --> D
D --> F[Composer controls]
Technical reviewBest possible solution: Retain the focused CSS correction and rendered geometry regressions, then resolve the recorded inherited CI failure through the repository's existing landing policy. Do we have a high-confidence way to reproduce the issue? Current-main CSS explains the fixed empty label space, and the supplied before screenshot shows it; no target code was executed during this read-only review. Is this the best way to solve the issue? The patch uses the existing stylesheet owner, retains shared ellipsis behavior, removes superseded alignment rules, and tests short-to-long-to-short selection without adding production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3f7d2a1c77f5. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -8, Tests +74. Total +66 across 3 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:
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 14, 2026, 1:49 PM ET / 18:49 UTC. |
Fit the model label to its content up to the existing cap, keep the mobile chevron anchored, and preserve surrounding composer controls during catalog updates. Co-authored-by: vyctorbrzezowski <[email protected]>
What Problem This Solves
Fixes the large gap between short model names and the chevron in the New Session composer.
User Impact
The model chip fits its label on desktop and mobile, while long names still truncate. No configuration changes are required.
Why This Change Was Made
A fixed-width label reserved empty space even after the model name was available. Use a maximum width instead and keep the mobile chevron anchored beside the other controls. The chip’s leading edge can resize when catalog metadata supplies its name; surrounding controls stay fixed.
Evidence
ad6738d48408b82; it is not changed or masked here.Real bundled Control UI with synthetic model data; desktop at 1440×900. Phone-width behavior was also verified.
Before
After
Contributor credit: @vyctorbrzezowski reported the problem and directed the fix.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by
Maintainer verification
Reviewed the complete three-file change and inspected the published before/after captures. The label uses its content width up to the existing cap; the mobile picker still owns the available track, and the chevron stays anchored beside the adjacent controls. The accepted late-catalog trade-off is limited to the chip's leading edge. Long-label truncation and draft/caret behavior retain their existing coverage.
The remaining failure in CI run 43627248920 is the empty-catalog model-to-microphone gap: 46 px versus an expected maximum of 32 px. The same 46 px failure was independently reproduced on main's UI while reviewing the separate Automations removal, and this PR's own baseline comparison documents the same result. It is not the label-to-chevron gap corrected here. Other checks passed, including the bundle budgets. The inherited failure is retained as such; no passing CI run or repair to that separate spacing issue is claimed.