Skip to content

fix(ui): remove excess space before the model picker chevron - #199089

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/marine-crayfish
Nov 14, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/marine-crayfish

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

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

  • Reproduced on unchanged main: about 69px of name-to-chevron space on desktop and 68px on mobile. The regression now requires at most 8px through short → long → short model selection.
  • Six focused browser scenarios passed against the real bundled Control UI with synthetic Gateway data, including desktop/mobile selection, long-name truncation, throttled catalog arrival, and typing during metadata loading. Final run: 26.46 seconds.
  • Scoped type-aware lint, stylesheet lint, formatting and whitespace checks passed. The UI bundle built successfully. Broad CI and live-provider traffic were not run locally.
  • One existing empty-catalog mobile-spacing test still fails with a 46px gap against its 32px limit. The identical failure was reproduced on unchanged main ad6738d48408b82; it is not changed or masked here.
  • Author simplification/review completed: removed the forced label track and superseded empty-only alignment rule. Production CSS: 6 additions, 14 deletions. Tests: 75 additions, 1 deletion, covering spacing and the intentional leading-edge resize without permitting other layout shifts. No independent helper review was run.

Real bundled Control UI with synthetic model data; desktop at 1440×900. Phone-width behavior was also verified.

Before

Before: excess space before the model chevron

After

After: model chip fits its label

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.

roboclaw-bot and others added 2 commits November 14, 2026 18:32
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
@clawsweeper

clawsweeper Bot commented Nov 14, 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The short name leaves roughly 69 pixels of blank space before the desktop chevron.
  • After: The chevron sits beside the name, with the regression requiring a gap of at most 8 pixels.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, visually demonstrated correction with meaningful geometry coverage; CI remains red on the empty-catalog case reported as inherited.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after images show the changed model chip in the bundled Control UI with synthetic Gateway data; they directly demonstrate the short-label spacing correction, supported by the reported desktop/mobile selection and deferred-catalog scenarios.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Short model names leave a conspicuous blank gap before the New Session model-picker chevron.
Reason: The visible defect is demonstrated, the production change is small, and maintainer authorship supplies direction for the explicitly described leading-edge resize tradeoff.

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
Reviewed head: 59ac7117c0435b0a5c1f7ddab3ec4fbe85872791

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Fixed model-label track and catalog-arrival geometry changes intended behavior with a stated reason (2e2faf0: Reserve label space so background catalog metadata does not shift model controls.)
  • Mobile trigger sizing and empty-catalog trailing alignment keeps the original intent (fix(ui): keep empty model picker beside composer actions #198593: Keep an empty model status beside Dictate while preserving the reserved mobile control track.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source -8, Tests +74. Total +66 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 6 14 -8
Tests 2 75 1 +74
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 81 15 +66

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:

  • add P3: The change corrects visible composer spacing without blocking model selection or message entry.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: The change corrects visible composer spacing without blocking model selection or message entry.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • 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.

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 14, 2026, 1:49 PM ET / 18:49 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 5fa918a into main Nov 14, 2026
107 of 110 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/marine-crayfish branch November 14, 2026 19:34
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
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]>
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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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.

2 participants