Repository navigation
fix(ui): restore the composer model picker dialog - #123090
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 13, 2026, 6:13 AM ET / 10:13 UTC. ClawSweeper reviewWhat this changesRestores the searchable, provider-grouped model dialog for chat and new-session composers while retaining the compact shared picker on settings pages. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open for maintainer review: current main still uses the compact composer picker, while this PR restores the documented rich workflow and has strong visible proof. The prior persisted-override finding is addressed; the remaining decision is whether the composer is intentionally a separate long-term picker surface. Priority: P1 Review scores
Verification
How this fits togetherThe Control UI turns Gateway model-catalog data and session overrides into composer controls. Selecting a model updates the active chat session or the target of a new session. flowchart LR
Catalog[Gateway model catalog] --> Controls[Composer model controls]
Overrides[Session override or default] --> Controls
Controls --> Dialog[Composer model dialog]
Dialog --> Selection[Model or CLI target]
Selection --> Session[Chat or new-session state]
Decision needed
Why: This PR deliberately reintroduces a substantial composer-specific surface after a merged picker-unification change; source and screenshots cannot settle the lasting product boundary. Before merge
Agent review detailsSecurityNone. PR surfaceSource +868, Tests +222. Total +1090 across 22 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the dedicated composer dialog if maintainers confirm it is a distinct workflow; otherwise design a shared primitive that supports composer needs without changing settings behavior. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main routes composers through the compact shared picker, while the PR restores the searchable grouped dialog; no live run was executed during this read-only review. Is this the best way to solve the issue? Unclear: the restoration has focused proof and preserves the prior override invariant, but maintainers must choose whether a separate composer picker is the intended long-term design. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2278ca6952ea. 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
History |
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.
…ntory The restored composer picker legitimately owns its details-menu and ARIA combobox usage; #122964 had removed it from both expected lists.
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.
…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.
3dbe421 to
eb50abf
Compare
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.
|
Addressing the P1 and rank-up moves from #123090 (comment):
|
|
Land-ready proof for exact head 55f06ec7ca5:
|
|
Merged via squash.
|
Repairs main's red check-lint caused by the #123090 restore.
Repairs main's red check-lint caused by the #123090 restore.
…23130) * fix(control-ui): recover auth-cold model pickers Keep configured auth-cold models visible but disabled in chat and new-session, block submission, and link Model Setup. Fixes #123080. * fix(control-ui): preserve rebased model picker behavior * fix(ui): split composer model picker under the lint size cap Repairs main's red check-lint caused by the #123090 restore. * fix(ui): align auth-cold picker CI contracts
* 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.
…enclaw#123130) * fix(control-ui): recover auth-cold model pickers Keep configured auth-cold models visible but disabled in chat and new-session, block submission, and link Model Setup. Fixes openclaw#123080. * fix(control-ui): preserve rebased model picker behavior * fix(ui): split composer model picker under the lint size cap Repairs main's red check-lint caused by the openclaw#123090 restore. * fix(ui): align auth-cold picker CI contracts
What Problem This Solves
Fixes a default-path UI regression where PR #122964 replaced the chat and new-session composers' rich model-picker dialog with the settings-style select. That split the composer into two plain dropdowns, removed search and provider grouping, and truncated the default model label.
Why This Change Was Made
The composer picker is a distinct product surface: it combines model search, provider grouping, context and capability metadata, CLI-agent targets, and the session-override footer in one dialog. This partial revert restores that shipped composer experience while keeping #122964's channel-picker unification and shared model picker on the settings surfaces where that simpler control fits.
The restored
chat-model-picker.tsis byte-identical to the parent of #122964's merge commit (edcf1974838~1). One additional bounded test-only change lets the responsive composer test wait for viewport resizing to settle before reading bounding boxes, removing grouped-run timing flakiness without changing product behavior.User Impact
Model picking on the default chat and new-session composers returns to a compact single trigger that opens the searchable, provider-grouped dialog. Talk, Memory, Session Observer, Automations, Agents, model defaults, Workboard, and other settings pages keep the unified settings picker. There are no config or protocol changes.
Evidence
Provenance: partial revert of PR #122964 / commit edcf1974838, limited to the composer model-picker regression while retaining its channel and settings unification.
Chat composer
New-session composer
Focused proof:
node scripts/run-vitest.mjs ui/src/pages/chat/chat-view.test.ts ui/src/pages/new-session/model-control.test.ts ui/src/components/model-picker.test.ts— 3 files, 277 tests passed.node scripts/run-vitest.mjs ui/src/e2e/chat-flow.models-reasoning.e2e.test.ts ui/src/e2e/chat-only-model.e2e.test.ts ui/src/e2e/new-session-page.places.e2e.test.ts ui/src/e2e/model-alias-display.e2e.test.ts— 4 files, 24 tests passed.node scripts/run-vitest.mjs ui/src/e2e/chat-composer-redesign.e2e.test.ts ui/src/e2e/chat-composer-accessory-focus.e2e.test.ts ui/src/e2e/session-suggestions.e2e.test.ts ui/src/e2e/chat-flow.follow-ups.e2e.test.ts ui/src/e2e/new-session-page.catalog-reconnect.e2e.test.ts ui/src/e2e/new-session-page.workspace-memory.e2e.test.ts ui/src/pages/chat/chat-responsive.browser.test.ts— 6 files, 47 tests passed.node scripts/run-vitest.mjs ui/src/pages/chat/chat-view.test.ts ui/src/pages/new-session/model-control.test.ts— 2 files, 275 tests passed.node scripts/run-vitest.mjs ui/src/components/web-awesome-migration.node.test.ts— 1 file, 3 tests passed.node scripts/check-changed.mjs -- <all changed files>— all selected lanes passed.pnpm ui:i18n:baseline— no diff; thecustomModelEnglish key remains for the settings picker.gpt-5.6-sol, high): clean, no accepted or actionable findings; patch judged correct (0.98).Production LOC is +1110/-269 and tests are +592/-399. The positive production delta restores the 719-line shipped picker deleted by #122964; it is regression restoration rather than a new parallel capability.
AI-assisted: Yes.
CI dialog-leak diagnosis
src/components/input-dialog.test.ts(10 tests): a leaked open “Approve DM access”<openclaw-modal-dialog>fromui/src/pages/channels/view.pairing.test.tspoisoned the dialog-owning file in the same worker. ItsrenderIntohelper appended containers todocument.bodywithoutafterEachcleanup. This was a latent cross-test leak surfaced by the branch's changed test scheduling, not a behavior regression in the PR.view.pairing.test.tsnow tracks rendered containers and removes them inafterEach, restoring the repo test-hygiene invariant that global DOM state is cleaned and suites remain safe under--isolate=false.OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs ui/src/pages/channels/view.pairing.test.ts ui/src/components/input-dialog.test.ts. Pre-fix: 1 shard failed with the exact CI signature. Post-fix: 2 files, 17/17 tests passed.Persisted override preservation
chat-model-controls.ts: when a persisted session override is absent from a non-empty usable catalog, it remains a selectable row. The synthesis stays gated on a usable catalog so the trueNo models availableempty state is preserved.chat-view.test.tsnow proves that a persisted override missing from the catalog is synthesized as a selectable row.node scripts/run-vitest.mjs ui/src/pages/chat/chat-view.test.ts ui/src/pages/new-session/model-control.test.ts— 2 files, 276 tests passed.#123085 reconciliation
The final branch reconciles #123085 with the restored composer picker. The rebase had merged #123085's
wa-selectlabel-width mechanics into this restored dialog surface, removing the old trigger reservation inchat/layout.cssand leaving a new-session label-width test block that referenced the unified-picker helper removed by the partial revert. Commit 55f06ec7ca5 restoreschat/layout.cssandchat-responsive.browser.test.tsto their exact pre-#122964 state and removes that composer-only label-width block fromnew-session-page.workspace-memory.e2e.test.ts. #123085's sharedselect-picker.tsfix andnew-session.cssline remain because the settings picker surfaces still use them.node scripts/run-vitest.mjs ui/src/pages/chat/chat-responsive.browser.test.ts ui/src/e2e/new-session-page.workspace-memory.e2e.test.ts— 2 shards, 13 tests passed.