Repository navigation
fix: picker option labels collapse to ellipsis at phone widths - #123085
Conversation
Preserve readable unified model and channel option labels while allowing new-session mode controls to wrap at narrow widths.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 13, 2026, 5:22 AM ET / 09:22 UTC. ClawSweeper reviewWhat this changesThe PR prevents the shared model and channel picker from collapsing its option labels on phones and lets the new-session controls wrap instead. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep 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 Review scores
Verification
How this fits togetherThe 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]
Decision needed
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
Agent review detailsSecurityNone. PR surfaceSource -1, Tests +39. Total +38 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
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.
* 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.
…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.
…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
* 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.
…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.
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:
User Impact
Picker options stay readable at phone widths across every surface using the shared component.
Evidence