Skip to content

feat: add a stable provider rail to the model picker - #192135

Merged
vyctorbrzezowski merged 12 commits into
mainfrom
brzezowski/model-picker-rail
Nov 13, 2026
Merged

vyctorbrzezowski merged 12 commits into
mainfrom
brzezowski/model-picker-rail

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The composer model picker needs stable provider navigation and readable model details.

User Impact

Providers sit in a rail at the left of the picker, with drag and Alt-arrow reordering saved as a browser UI preference; while a tab is dragged, the other tabs dim. The rail scrolls with soft edges when providers don't fit, and is hidden with a single provider and while searching.

The panel has a fixed 350 px height, sits 8 px above the model chip, and keeps that height when a search finds nothing. The header shows the provider name, a neutral chip with the credential (for example "API key") and a quiet gear, without tooltips. Model names use the strong text colour, Default is a neutral chip, and context sizes and the check sit flush right under the gear. Long names truncate and show the full name in a tooltip after a short hover. "All models (N)" stays collapsed.

The panel fades in from the chip, the list fades when switching provider, and selection colours ease; reduced motion turns these off.

Why This Change Was Made

Updates the picker structure while retaining the existing search, virtualization, selection and account owners. The rail replaces provider disclosures. The branch is merged with current main, keeping main's provider names and artwork, runtime availability and label fixes.

Landing order: 1/4 Structure (this PR) → 2/4 Runs on, context and accounts (#192137) → 3/4 States and phone sheet (#192142) → 4/4 Cooldown (#192145). This PR targets main. Do not merge out of order.

Evidence

Passed oxfmt, oxlint, stylelint, tsgo:ui, and the adjacent picker unit and Chromium/WebKit component tests. Screenshots use the mock Gateway with real clicks; After images are dark at 2×, Before images are the earlier light captures. Closing stays instant because the picker unmounts immediately.

Not done here: Runs on, context window and accounts, auth and loading states, the phone sheet, and cooldown belong to the following PRs. No e2e suites, live Gateway or CI watching.

State Before After
Several providers · desktop 1440 Before: several providers, desktop 1440, light After: several providers, desktop 1440, dark
Another provider selected · desktop 1440 — After: another provider selected, desktop 1440, dark
Rail scrolled, both edges faded · desktop 1440 — After: rail scrolled, desktop 1440, dark
One provider · desktop 1440 Before: one provider, desktop 1440, light After: one provider, desktop 1440, dark
Search · desktop 1440 Before: search, desktop 1440, light After: search, desktop 1440, dark
Search without results · desktop 1440 — After: search without results, desktop 1440, dark
Long name, tooltip after hover · desktop 1440 — After: long name tooltip, desktop 1440, dark
Dragging a provider · desktop 1440 — After: dragging a provider, desktop 1440, dark

Before images: light theme. After images: dark theme.

Maintainer validation

The approved design is preserved. Additional repairs keep the selected provider visible during keyboard navigation and reordering, keep the Account heading from covering model choices, let the panel shrink inside a short viewport, and retain the shared system font for shortcut keys.

The real-Gateway check selected a model through the composer and confirmed the saved provider/model in a subsequent server read. The affected Chromium/WebKit component and Chat/New Session consumer tests pass, including search, composition, permissions, account updates and scrolling. The newly added main-branch test still verifies Default's configured runtime; it now navigates the actual provider tab first.

Obsolete disclosure helpers were removed. Tests retain their behavior assertions without freezing replaced header geometry, drag matrices or generic badge styling. Current-head CI remains the broad check; no claim of complete green CI is made here.

The images use the actual Control UI with synthetic Gateway data. The first original image includes a provider-switch fade; compare position and occlusion rather than opacity.

Scenario Before repair After repair
Selected provider and first model Provider navigation before repair Provider navigation after repair
Short viewport, menu opening below its trigger Short viewport before repair Short viewport after repair

In the short-viewport check, the menu originally extended to y=438 in a 320px viewport; it now ends at y=312. The normal 350px desktop panel height remains unchanged. Account remains reachable by scrolling below the models:

Account after the model rows

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 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:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head e192b290c307c95a53004f0edb6c6c2a475b55c9, but the PR head is now 1440ad29d4dacc715ed6463a99df7b4f8b8158bb. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-03T18:05:54.146Z sha e192b29 :: needs changes before merge. :: [P2] Reveal rail tabs reached by vertical keyboard navigation | [P2] Keep the rail renderer within shared tab ownership | [P2] Preserve a visible explanation for unavailable runtime choices | [P2] Migrate disclosure-dependent picker consumers in this cutover | [P2] Bring the rail styles within the existing CSS budget

@clawsweeper clawsweeper Bot removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Nov 5, 2026
…er-rail

# Conflicts:
#	ui/src/pages/chat/components/chat-model-picker-panel.tsx
#	ui/src/pages/chat/components/chat-model-picker.test.tsx
#	ui/src/styles/chat/composer.css
vyctorbrzezowski and others added 2 commits November 13, 2026 17:57
Reveal selected providers through the shared tab owner, keep account rows at their virtual offset, and preserve interaction coverage while adapting obsolete disclosure expectations.

Co-authored-by: vyctorbrzezowski <[email protected]>
Keep model menus inside short viewports, retain the shared shortcut font, and migrate remaining consumers from removed provider disclosures to real tab navigation.

Co-authored-by: vyctorbrzezowski <[email protected]>
vyctorbrzezowski and others added 2 commits November 13, 2026 18:22
Keep the Default provenance assertion while navigating the new provider rail instead of assuming every group is expanded.

Co-authored-by: vyctorbrzezowski <[email protected]>
@vyctorbrzezowski
vyctorbrzezowski merged commit 92e16d2 into main Nov 13, 2026
51 of 56 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/model-picker-rail branch November 13, 2026 21:33
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
…2135)

Add provider navigation and saved ordering to the model picker while preserving search, selection, account handling and keyboard access. Keep selected providers visible, account rows unobscured, and the panel inside short viewports.

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 P2 Normal backlog priority with limited blast radius. size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant