Repository navigation
feat: add a stable provider rail to the model picker - #192135
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
This was referenced Nov 3, 2026
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
…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
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]>
Keep the Default provenance assertion while navigating the new provider rail instead of assuming every group is expanded. Co-authored-by: vyctorbrzezowski <[email protected]>
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]>
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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.
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: