Skip to content

fix: picker option labels collapse to ellipsis at phone widths - #123085

Merged
steipete merged 2 commits into
mainfrom
fix/team-picker-labels-0813
Aug 13, 2026
Merged

steipete merged 2 commits into
mainfrom
fix/team-picker-labels-0813

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where the unified model/channel picker dropdown rendered option labels as 1–2 characters ("G..", "D..", "a..") in narrow viewports — the fixed icon and check columns kept their width while the label collapsed to 0px, making options indistinguishable.

Why This Change Was Made

Web Awesome sizes the listbox to its trigger, and the shared picker allowed min-width: 0, so narrow new-session controls squeezed the whole select to ~35px. The shared component now carries the readable floor (138px, previously a chat-only CSS rule that got deleted as duplicate), and the new-session composer controls wrap before squeezing the picker. Channel options inherit the same fix through the shared renderer.

After, at 364px:

mobile picker with readable labels

User Impact

Picker options stay readable at phone widths across every surface using the shared component.

Evidence

  • Extended mobile E2E at 364px requires ≥8ch of visible label width: failed pre-fix (label width 0px, required 75.64px), passes post-fix.
  • Model/channel picker component tests: 4 passed; existing mobile chat test passes.
  • Production LOC net −1 (tests +39).

Preserve readable unified model and channel option labels while allowing new-session mode controls to wrap at narrow widths.
@clawsweeper

clawsweeper Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 13, 2026 08:55
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 13, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 13, 2026
@clawsweeper

clawsweeper Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 13, 2026, 5:22 AM ET / 09:22 UTC.

ClawSweeper review

What this changes

The PR prevents the shared model and channel picker from collapsing its option labels on phones and lets the new-session controls wrap instead.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep this maintainer-authored, maintainer-labeled PR open for normal merge review. The shared-owner repair is correct: current main still permits the picker to shrink to zero, while the branch centralizes the existing readable floor and proves the mobile result.

Priority: P2
Reviewed head: 8ab55745802403d8d7aff59d0692bfe22bba6445
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused shared-owner repair with direct mobile proof and an observable browser regression test; exact-head checks still need refresh before merge.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): The PR body provides an after-fix 364px screenshot directly showing readable labels, and the added browser E2E measures the same result.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The PR body provides an after-fix 364px screenshot directly showing readable labels, and the added browser E2E measures the same result.
Evidence reviewed 6 items Current defect remains on main: The shared picker still sets a zero minimum width; both model and channel picker renderers call it, leaving non-chat callers without the chat-specific readable floor.
Branch repairs the owner boundary: The branch moves the 138px constraint into the shared picker, removes the duplicate chat-only rule, and permits the new-session flex row to wrap.
Behavior-focused regression coverage: The updated browser E2E opens the picker at 364px, requires two visible options, and checks every rendered label has at least eight characters of width while the control row has no overflow.
Findings None None.
Security None None.

How this fits together

The Control UI uses one picker renderer for model, channel, and workboard selections. Its trigger width feeds the Web Awesome select menu, so a narrow composer can make option labels unreadable.

flowchart LR
  A[Mobile viewport] --> B[New-session controls]
  B --> C[Shared picker]
  C --> D[Select trigger width]
  D --> E[Option list]
  E --> F[Readable labels]
Loading

Decision needed

Question Recommendation
Should the shared picker retain the existing 138px readable floor for all current consumers rather than only chat? Approve the shared invariant: Keep the shared 138px floor and new-session wrapping, subject to refreshed required checks.

Why: The change deliberately turns a chat-specific layout invariant into the canonical behavior for model, channel, and workboard picker consumers; the maintainer label requires explicit human handling.

Before merge

  • Resolve merge risk (P1) - The Web Awesome 3.10.0 implementation was unavailable in this read-only checkout, so its internal trigger/listbox sizing contract was not independently inspected; the branch's browser proof directly mitigates that evidence gap.
  • Resolve merge risk (P1) - The branch is behind main and the supplied check rollup includes failures, so required checks need an exact-head refresh before merge.
  • Complete next step (P2) - This maintainer-authored, maintainer-labeled PR needs normal owner approval and exact-head CI rather than an automated repair lane.
Agent review details

Security

None.

PR surface

Source -1, Tests +39. Total +38 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 3 4 5 -1
Tests 1 46 7 +39
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 50 12 +38

Review metrics

Metric Value Why it matters
Production vs test LOC production +4/-5 (net -1); tests +46/-7 (net +39) The bug fix remains net-negative in production while adding focused browser coverage for the observable label-width invariant.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain the single shared 138px picker floor and the new-session wrap behavior, then merge after exact-head required checks are green.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain the single shared 138px picker floor and the new-session wrap behavior, then merge after exact-head required checks are green.

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

Yes, from source and supplied PR proof: current main allows the shared picker to reach zero minimum width, and the branch adds a 364px browser assertion that fails before the floor and passes after it. I did not run the artifact-producing E2E locally in this read-only review.

Is this the best way to solve the issue?

Yes. Both model and channel controls pass through the shared picker, while the new-session composer is the layout owner that must wrap; this replaces the existing chat-only duplicate rather than adding another caller-specific workaround.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5ed9bc2bd296.

Labels

Label changes:

  • add P2: Unreadable picker choices on phone-sized Control UI layouts are a concrete, bounded user-facing regression.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides an after-fix 364px screenshot directly showing readable labels, and the added browser E2E measures the same result.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body provides an after-fix 364px screenshot directly showing readable labels, and the added browser E2E measures the same result.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR body provides an after-fix 364px screenshot directly showing readable labels, and the added browser E2E measures the same result.

Label justifications:

  • P2: Unreadable picker choices on phone-sized Control UI layouts are a concrete, bounded user-facing regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR body provides an after-fix 364px screenshot directly showing readable labels, and the added browser E2E measures the same result.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides an after-fix 364px screenshot directly showing readable labels, and the added browser E2E measures the same result.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body provides an after-fix 364px screenshot directly showing readable labels, and the added browser E2E measures the same result.

Evidence

What I checked:

  • Current defect remains on main: The shared picker still sets a zero minimum width; both model and channel picker renderers call it, leaving non-chat callers without the chat-specific readable floor. (ui/src/components/select-picker.ts:42, 5ed9bc2bd296)
  • Branch repairs the owner boundary: The branch moves the 138px constraint into the shared picker, removes the duplicate chat-only rule, and permits the new-session flex row to wrap. (ui/src/components/select-picker.ts:42, 8ab557458024)
  • Behavior-focused regression coverage: The updated browser E2E opens the picker at 364px, requires two visible options, and checks every rendered label has at least eight characters of width while the control row has no overflow. (ui/src/e2e/new-session-page.workspace-memory.e2e.test.ts:207, 8ab557458024)
  • History and likely ownership: Blame attributes the existing chat-only floor and new-session zero-minimum layout to the current shared UI change; recent mobile-composer fixes are also by Peter Steinberger. (ui/src/styles/chat/layout.css:3771, eda22ae1d578)
  • Dependency signal and inspection limit: The changed component imports Web Awesome select registration and the UI package pins version 3.10.0. Its installed source is absent from this read-only checkout and network resolution was unavailable, so the dependency's internal sizing implementation was not independently inspected; the submitted browser proof directly covers the claimed outcome. (ui/src/components/web-awesome-select.ts:2, 5ed9bc2bd296)
  • Clean, net-negative production diff: Whitespace validation reports no errors; production changes are +4/-5 and the browser test is +46/-7. (ui/src/components/select-picker.ts:42, 8ab557458024)

Likely related people:

  • steipete: Authored recent main-history fixes for mobile composer picker behavior and has the deepest sampled history across this surface. (role: recent mobile-composer contributor; confidence: high; commits: f0d6cc4adeee, bfe1f33ea0ec; files: ui/src/styles/chat/layout.css, ui/src/styles/new-session.css, ui/src/e2e/new-session-page.workspace-memory.e2e.test.ts)
  • Dallin Romney: Current blame ties the shared picker and the existing chat/new-session layout constraints to this recent main change. (role: current shared-picker contributor; confidence: high; commits: eda22ae1d578; files: ui/src/components/select-picker.ts, ui/src/styles/chat/layout.css, ui/src/styles/new-session.css)

Rank-up moves

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

  • Refresh required checks for the current head before merge.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 600126a into main Aug 13, 2026
99 checks passed
@steipete
steipete deleted the fix/team-picker-labels-0813 branch August 13, 2026 09:53
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Aug 13, 2026
The rebase merged #123085's wa-select label-width mechanics into the
restored dialog picker: its chat/layout.css hunks dropped the old
trigger reservation while its tests asserted the new geometry, and its
new-session e2e block targeted a wa-select that no longer exists there.
Restore the pre-#122964 chat layout CSS and responsive test, and drop
the unified-picker label block from the new-session e2e. #123085's
shared select-picker fix stays for the settings surfaces that use it.
steipete added a commit that referenced this pull request Aug 13, 2026
* fix(ui): restore the composer model picker dialog

Partial revert of #122964: the chat/new-session composer returns to the
rich searchable model picker dialog (provider groups, CLI-agent targets
folded inside). Settings pages keep the shared unified picker.

* test(ui): restore chat-model-picker in the Web Awesome ownership inventory

The restored composer picker legitimately owns its details-menu and ARIA
combobox usage; #122964 had removed it from both expected lists.

* test(ui): stop leaking pairing-prompt modals into document.body

view.pairing.test.ts mounted containers (including an open
openclaw-modal-dialog from the approve-prompt tests) into document.body
without cleanup, poisoning later dialog-owning test files in the same
worker. Surfaced by this branch's changed test scheduling in checks-ui;
input-dialog.test.ts then saw the leaked 'Approve DM access' dialog.

* fix(ui): keep a persisted model override selectable when the catalog drops it

Port #122964's synthesized-override row into the restored composer
picker: a session pinned to a retired/unavailable model gets its row in
the dialog so the selection stays visible and escapable. An entirely
empty catalog keeps its no-models state.

* fix(ui): reconcile #123085 with the restored composer picker

The rebase merged #123085's wa-select label-width mechanics into the
restored dialog picker: its chat/layout.css hunks dropped the old
trigger reservation while its tests asserted the new geometry, and its
new-session e2e block targeted a wa-select that no longer exists there.
Restore the pre-#122964 chat layout CSS and responsive test, and drop
the unified-picker label block from the new-session e2e. #123085's
shared select-picker fix stays for the settings surfaces that use it.
steipete added a commit that referenced this pull request Aug 14, 2026
…3175)

The phone-width ellipsis fix (#123085) promoted a chat-composer-scoped
138px minimum onto the shared select-picker inline style, which beats
every consumer stylesheet. Containers that legitimately shrink below
138px overflow instead: the cron 'Every N <unit>' and stagger-window
unit pickers spill out of their minmax(0,1fr) grid cells at 320px, and
workboard's min-width:0 became dead. Cap the floor at the host width
with min(138px,100%); the readable-label floor is preserved everywhere
the container is wide enough (the mobile e2e asserts it at 364px). Also
fix the stale '8ch' comment from the pre-138px iteration.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 14, 2026
…law#123085)

* fix(ui): keep picker labels readable on mobile

Preserve readable unified model and channel option labels while allowing new-session mode controls to wrap at narrow widths.

* fix(ui): propagate shared picker minimum
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 14, 2026
* fix(ui): restore the composer model picker dialog

Partial revert of openclaw#122964: the chat/new-session composer returns to the
rich searchable model picker dialog (provider groups, CLI-agent targets
folded inside). Settings pages keep the shared unified picker.

* test(ui): restore chat-model-picker in the Web Awesome ownership inventory

The restored composer picker legitimately owns its details-menu and ARIA
combobox usage; openclaw#122964 had removed it from both expected lists.

* test(ui): stop leaking pairing-prompt modals into document.body

view.pairing.test.ts mounted containers (including an open
openclaw-modal-dialog from the approve-prompt tests) into document.body
without cleanup, poisoning later dialog-owning test files in the same
worker. Surfaced by this branch's changed test scheduling in checks-ui;
input-dialog.test.ts then saw the leaked 'Approve DM access' dialog.

* fix(ui): keep a persisted model override selectable when the catalog drops it

Port openclaw#122964's synthesized-override row into the restored composer
picker: a session pinned to a retired/unavailable model gets its row in
the dialog so the selection stays visible and escapable. An entirely
empty catalog keeps its no-models state.

* fix(ui): reconcile openclaw#123085 with the restored composer picker

The rebase merged openclaw#123085's wa-select label-width mechanics into the
restored dialog picker: its chat/layout.css hunks dropped the old
trigger reservation while its tests asserted the new geometry, and its
new-session e2e block targeted a wa-select that no longer exists there.
Restore the pre-openclaw#122964 chat layout CSS and responsive test, and drop
the unified-picker label block from the new-session e2e. openclaw#123085's
shared select-picker fix stays for the settings surfaces that use it.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 14, 2026
…nclaw#123175)

The phone-width ellipsis fix (openclaw#123085) promoted a chat-composer-scoped
138px minimum onto the shared select-picker inline style, which beats
every consumer stylesheet. Containers that legitimately shrink below
138px overflow instead: the cron 'Every N <unit>' and stagger-window
unit pickers spill out of their minmax(0,1fr) grid cells at 320px, and
workboard's min-width:0 became dead. Cap the floor at the host width
with min(138px,100%); the readable-label floor is preserved everywhere
the container is wide enough (the mobile e2e asserts it at 364px). Also
fix the stale '8ch' comment from the pre-138px iteration.
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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. 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.

1 participant