Repository navigation
Studio: model picker in the composer, replacing the Thinking pill - #17517
Conversation
…ft of the collapse chevron
… the wheel, and keep the open tab in view
Run settings now open inside the composer picker, and on Chat and New chat the composer picker is the only model picker: the shortcut, the guided tour and the Model Hub's Run open it. On Device groups models as the header picker does (Unsloth, Other models, NPU, Fine-tuned, Custom folders, LM Studio, Local models), with custom folder management, and Discover lists NPU models on AMD NPU hosts. Images, Audio and Compare keep the header picker.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
- A quant still resolving no longer overrides a newer pick. - Search keeps MLX and plain safetensors repos on a Mac, as the header picker did. - On-disk quant lists are re-read on each opening and inventory change, so a newly downloaded quant shows; a failed read no longer sticks.
… model settings - A resident with no on-disk row is keyed, picked and ejected by its serving checkpoint, so two loaded files sharing a name stay separate. - Connected model rows get a gear and menu that open Model settings (system prompt, output cap, effort pin), as the header picker did.
…uants - Quant listings send the user's HF token, so gated and private repos list their quants as search lists the repos. - A download offer keeps partial quants so an interrupted download can resume; only local load choices drop them.
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
The Pointing |
- Fine-tuned and folder models can be deleted and shown in Finder. - Interrupted downloads stay listed as Partial and resume when picked. - Downloaded GGUFs offer Update, with update and per-quant delete in the quant menu. - Eject becomes Eject all when several models are loaded. - Connected models get Model info and Copy model ID. - On Device gets the Recent / Size / Name / Downloaded sort and the format filter, in a compact menu in place of the Model hub button. - On-device row menus open with the model's format, quant, size, parameters, modalities and source. - Discover shows the Hub failure hint; MLX repos list their variants on a Mac; a model whose connection was removed keeps its name; the chip shows the loaded format and quant on hover. - Run settings use tighter sides with the scrollbar at the edge; On Device groups are set apart by space; the collapsed bar gets a red Eject pill and a hover circle on its chevron; Qwen and Anthropic marks are scaled to match the other logos' weight.
…d icons The Supports line in an on-device row's menu marks each capability with the Model Hub's own icon and colour, spaced rather than comma-separated.
- An MLX variant's Run settings gear keeps the MLX format, as its pick does, so the page shows MLX controls. - A fine-tuned GGUF export's quants get a menu with per-quant delete through the fine-tune endpoint, as the header picker had.
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Comment-only: drops comments that restate the code and shortens the rest.
The Supports line reads the backend's own flags (vision, audio and video input, speech) before the name-based guess, and lists text, inputs, speech, then reasoning, tools, code, image or video generation and embeddings.
…ings sides - Every modality in the details menu uses a Model Hub glyph: text as Conversational, video as the Video gen slate, speech as Audio. - Run settings use the header picker's side padding again.
The sides no longer reserve the scrollbar's gutter, so the page sits centred; the floating scrollbar moves flush to the panel's right edge.
- The picker caps its height: the model list at about eight and a half rows, the whole panel (Run settings included) at 520px. - Run settings no longer rubber-band past their end, and the scrollbar stops at the top of the pinned footer. - On Device's sort and filter button uses the Model Hub's Filters icon. - Discover opens at its top rather than scrolled to the chosen model.
- Run settings sections sit closer together in the composer. - The row menus' scrollbar runs at the menu's edge without eating into its padding. - The list and panel height caps are a little more lenient. - The row ⋮ hover circle centres on the glyph's ink.
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
… so Enter picks a shown row [skip ci]
…es off-route [skip ci]
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…-picker # Conflicts: # studio/frontend/src/features/chat/external-providers.ts [skip ci]
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Studio: model picker in the composer, replacing the Thinking pill
On Chat and New chat, this picker replaces the header model picker entirely: the header picker is gone there, and the model shortcut, the guided tour and the Model Hub's Run (Run settings) now open the composer picker. Compare's two pane pickers and the API page's model picker use it too. Images, Audio and Video keep the header picker.
The composer's Thinking pill becomes a model chip: the chosen model's logo and name, with its reasoning level beside it (for example
gemma-4-E2B-it-GGUF Thinking). With nothing chosen it readsSelect modelwith a dropdown chevron. Hovering a loaded model's logo turns it into Eject. The chip opens a compact picker for switching models and setting reasoning without leaving the chat.The picker
variant-order.ts, shared by both pickers. On Discover a quant's state shows as a small tinted tag: Loaded, Downloaded, Update, Partial or Recommended, and only there are quants that do not fit faded. A failed listing shows the reason with Retry.⋮menu (Favorite, Run settings, Reveal in Finder, Open model card, Delete, and a red Eject under Delete for a loaded model), a gear that opens Run settings inside the picker (the same settings page as the header picker, with Back to the list), and a star. A GGUF is only ever favorited by its quant, never as a whole repo. Favorites can be dragged into order, sharing the header picker's order.UD-Q4_K_XL GGUF), disk space, parameters and modalities, with icons scaled to one visual weight; Discover shows the Hub failure hint when Hugging Face is unreachable; MLX repos on a Mac list their variants; the chip names a model whose connection was removed, and shows the loaded format and quant (and how many models are loaded) on hover; Settings > Chat > All quantizations opens an on-device GGUF's full quant list, and the VRAM usage bar charts the chosen GGUF; picking a text-only GGUF in a chat with images still warns.Compare and the API page
Rows re-render only when their own data changes, so On Device with 600 models stays responsive (
playwright_model_picker_renders.pynow measures this picker); arrow keys move between focused rows. All model switches go through the chat page's existinghandleCheckpointChange, so load, adopt and cancel behaviour is unchanged. The reasoning logic moves from the oldReasoningToggleintouseComposerReasoning. Compare mode's shared composer keeps its own controls.New chat
The composer is centred on the page by its own box, with the greeting 16px above it, instead of moving with the greeting. The default position is now 40% of the page, a little above the middle, so a picker opening downward has room; anyone who already chose a position keeps it.
Header model picker
⋮before the gear, and Eject moves under Delete in red.fit-verdict.tsso both pickers share it.variant-order.ts, unchanged in behaviour.Also: Anthropic connections use Anthropic's transparent mark instead of the wordmark tile, and the Filters glyph is centred in its button (it sat up to 1.5px low) in the Model Hub, Library, Chats, Scheduled tasks, the browser's internal pages and Data settings.
CI drivers
The composer picker carries the header picker's
data-model-picker-option,data-model-picker-active-option,data-model-picker-search-inputanddata-model-picker-listhooks, so the Playwright drivers find it. The area matrix (_area_matrix.py), studiobench (dom.js,actions.py,surfaces.py),playwright_model_config.py,playwright_memory_estimate.pyandplaywright_model_picker_renders.pynow open Chat's picker through the composer chip, and the Python source contracts that named the old Thinking pill or header trigger check the composer instead.Verification
npm run typecheck,npm run build,npm test(15738 pass, 0 fail). Newtests/composer-model-picker.test.tscovers rows, tabs, favorites keys, quant choice, the empty-state rule, the settings wiring and the reasoning controls;tests/variant-order.test.tscovers the shared quant order;tests/hub-recommended-format.test.tscovers the Mac checkpoint rule and the shared Recommended rule.playwright_model_config.pyandplaywright_memory_estimate.pypass, the long-thread area matrix passes with the model picker area measured, andplaywright_model_picker_renders.pypasses (1350 row renders while 600 quant probes settle, 100 while typing). The picker contracts intests/studiopass.Not tested here
Before / after
Chat with a connected model selected, merge base
c07cb25e0(left) vs this PR (right). The picker leaves the header and becomes a model chip in the composer:The picker opened: the header popover with Recommended / On Device / Connected (left) becomes the composer panel with Favorites, Discover models, On Device, Connected models and one tab per connection (right):