Repository navigation
Studio: introduce the composer model picker on the new-chat screen - #18427
Merged
Merged
Conversation
…shadow, sloth on the card's bottom edge
… hero and a 2x2 feature grid
…mposer; pill feature rows
…cker over the composer with the real icons
…omposer and a larger chip
…r button and a switching feature
…eek models beside the trending leader
shimmyshimmer
added a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Nov 19, 2026
shimmyshimmer
added a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Nov 19, 2026
shimmyshimmer
added a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Nov 19, 2026
shimmyshimmer
added a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Nov 19, 2026
shimmyshimmer
added a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Nov 19, 2026
Member
Author
|
@codex review |
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. |
|
Codex Review: Didn't find any major issues. Hooray! 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". |
shimmyshimmer
added a commit
that referenced
this pull request
Nov 19, 2026
…mbered expand, monochrome icons (#18445) ## Studio: model picker intro how-to page, picker search and sizes, remembered expand, monochrome icons Follow-up to #18427, which added the "Meet the new model picker" card and dialog. ### Model picker intro dialog - **Second page, "How to use it"**: the folded picker beside the full picker (with the up arrow, the row's menu, gear and star), then four short steps: 1. Browse Discover for models that fit your device 2. Click the gear to tweak settings before loading 3. Star models to keep them in Favorites 4. When a model is loaded, click its row or the arrow to expand or collapse the picker Open model picker sits under the steps. Page 1 keeps its picture, title, button and four feature pills; the third pill now reads "Adjust thinking effort easily". - **Navigation**: Back and Next, slightly larger than before, and the two page dots are buttons that jump to their page (`aria-label="Page N"`, `aria-current` on the current one). The dialog always opens on page 1. - **Close button**: the dialog draws its own X, 8px higher and further right than the shared dialog close (`top-3 right-3`), fixed on phones like the shared one. - In the page 2 pictures the arrows sit in a hover circle and the folded mock is wide enough for the full model name. The expanded mock now matches the real picker more closely (search bar, full-pill rows, the loaded dot, less space above the tabs), and both effort sliders are the real slider at half size (track, level dots, white knob, using the slider's own `composer-effort-*` classes). - **Page 1**: the NEW badge, title and description sit at the top, the picker picture in the middle, then the pills (a narrower block, one line each on desktop) and Open model picker below them, with more space above and below the picture. Both Open model picker buttons use the neutral `dark` button style that Settings uses. The pills read "Find and switch models fast" (Model hub icon), "Run settings for each model", "Adjust thinking effort easily" (the composer's thinking bulb) and "Star the ones you use most", on a slightly darker fill in light mode. The badge reads NEW in bold, and the composer mock's + sits in a send-sized box so it lines up under "Ask anything". ### Composer model picker - **Custom folders**: the heading's + only shows once a folder is added. Before, an empty Custom folders section had both the heading + and the "Add a folder to scan for models" row, which open the same chooser. Suggested folders (the dashed chips Studio finds on disk) are unchanged. - **Folded view**: the model row keeps 12px before Eject, so a long, truncated name no longer pushes the loaded dot into the Eject button. - **Search**: a clear (x) button appears once the search box has text, the same icon as the Settings search. It keeps focus in the box. - **Sizes for MLX and Safetensors**: with the MLX or Safetensors filter on in Discover, each row shows its download size after the parameter count. The size is summed from the repo's `.safetensors` files (`hub-repo-size.ts`, three listings at a time, cached per endpoint), because the Hub's `safetensors.parameters` counts packed MLX weights at full width: `unsloth/Qwen3.6-27B-UD-MLX-4bit` estimates at 97 GB but its files are 26 GB. - **Fit warnings for non-GGUF repos**: a Discover repo that is not a GGUF and does not fit the device is now greyed out with the "Does not fit" warning on hover, as GGUF repos already were. Before, only the "Only show models that fit" filter used this rule. The check uses the summed file size when it is known. - **Discover sizes** use the same 10px monospace style as the GB figures in a GGUF's quant list. - **Quant lists in On Device**: "Expand quantizations" (Settings > Chat > Model selection) now defaults on and sets the default for every model; opening or closing one model's quant list is remembered for that model (`unsloth_composer_picker_quants_open`, up to 200 models) and no longer resets when the picker remounts. - **Quantization row removed**: the footer row that switched the loaded GGUF's quant is gone for every model, with the quant listing it fetched on each open. Quants are still chosen from the model's row. - **Remembered expand**: expanding or collapsing the picker while a model is loaded now sets one global preference that every later load follows, replacing the per-model choice. It is also a switch in Settings > Chat > Model selection ("Show full model list"). An eject still expands without changing the preference. - **Monochrome icons**: a new "Monochrome model icons" switch in the same section draws picker and chip logos in the text colour (maker logos as silhouettes, other images and letter tiles in greyscale). ### Glass - The zoom bar and find bar (`.find-bar-surface`) and the model picker intro card now take the glass menu material when glass mode is on, including the liquid rim and lift shadow. Menus, popovers, tooltips, toasts and dialogs already did. ### Run settings - **Context reset**: in the right-hand Run settings sidebar the reset arrow now sits just left of the Context number. The picker's own Run settings keep it beside the label. `tests/context-mode-ux.test.ts` pins both placements. ### Verification - `npm run typecheck`, `npm run build`, `npm run i18n:check`, `npm test` (16735 passed, 0 failed). - Live Studio: the search x clears the query and hides; with MLX on, Discover showed 26, 35, 38, 22, 16 and 6.6 GB, matching the Hub file listings; Qwen3.8-Flash-Next (360 GB) was greyed with the warning on hover; the Settings search finds both new switches and Monochrome turns the picker logos grey; with `data-glass="frosted"` the find bar and intro card report `backdrop-filter: blur(26px) saturate(1.7)`. - An isolated Studio driven with Playwright in dark, light and at 390 px: Next, Back and both dots switch pages; the new X closes the dialog; Open model picker opens the picker. In the composer picker, a 50-character model name left 12px between the loaded dot and Eject, and an empty Custom folders section showed one add control. In the Run settings sidebar, setting Context to 32768 put the reset 6px left of the number on the same row, and clicking it returned Context to Auto. ### Not covered - Phones never fold the picker and keep the gear inside the row menu, so steps 2 and 4 describe the desktop picker. - The remembered expand preference was checked by reading the code and tests, not by repeated model loads on this CPU host. - Removing the Quantization row was checked by typecheck and tests; it only showed for a loaded multi-quant GGUF, which was not loaded in the browser check. ### Screenshots Page 1 with the page dots and Next:  Page 2, dark and light:   Page 2 at 390 px: <img src="https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/18445/mpa2_page2_mobile-39effb1057ac.png" width="320" alt="Intro page 2 on a phone-width window"> Folded picker with a long model name, the loaded dot clear of Eject:  Run settings sidebar, Context reset beside the number: 
LeoBorcherding
added a commit
to LeoBorcherding/unsloth
that referenced
this pull request
Nov 21, 2026
Resolve the index.css conflict with the wallpaper composer fade (unslothai#18576): keep main's viewport mask and root wash, keep the welcome-view rules, and fade the new model picker card (unslothai#18427) with the composer surface.
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.
Studio: introduce the composer model picker on the new-chat screen
The model picker moved from the header into the composer (#17517), and nothing in the app says where it went. This adds a small card under the new-chat composer that opens a short dialog about the picker. The card stays until the user closes it with its X.
What shows
bg-white/dark:bg-card) and--composer-shadow. A round X in the corner closes it. With the composer docked at the bottom it sits under the greeting instead. Nothing on it animates on hover.useHubFeed). Offline, or until the feed answers, three built-in rows stand in. Below: a New badge, "Meet the new model picker", one line of copy, an Open model picker button, and four short pill rows in a 2x2 grid.onOpenChange. It does not hide the card.Where it does not show
Only Chat's new-chat screen: not in a temporary chat, not where the composer is hidden, and not on Translate, Compare or the API page (their picker context browses or owns its own selection).
Persistence
Every account sees the card on this version and later ones until it clicks the X. The dismissal is stored per account (
unsloth_model_picker_intro_dismissed:<account>in localStorage), so each user of a shared browser gets it once. The prefix is inACCOUNT_KEYED_PREFIXES, so signing out and back in keeps it, and it is deliberately not part of Reset all local preferences, so a closed card stays closed. The record is per browser: a user who closes it in one browser sees it once in another browser or in Desktop.Verification
npm run typecheck,npm run build,npm run i18n:check,npm test(16731 tests, 0 failures). Newtests/model-picker-announcement.test.tspins the per-account key, itsACCOUNT_KEYED_PREFIXESentry, its absence from Reset preferences, that only the X dismisses, and the welcome mount. Sizes go through--ui-space-scale(ui-font-size-scales-spacing.test.ts).unsloth_model_picker_intro_dismissed:owner, and it stays gone after a reload. With network, the dialog's rows came from the live trending feed (Qwen3.8-27B-GGUF, gemma-4-26B-A4B-it-GGUF, DeepSeek-V4.1-Flash-1017-GGUF at the time).Not covered
Screenshots
The card under the new-chat composer, dark and light:
The dialog, dark and light:
The dialog at 390 px, where it fills the screen like other dialogs: