Skip to content

Studio: introduce the composer model picker on the new-chat screen - #18427

Merged
shimmyshimmer merged 18 commits into
mainfrom
studio-model-picker-announce
Nov 19, 2026
Merged

shimmyshimmer merged 18 commits into
mainfrom
studio-model-picker-announce

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

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

  • Card: under the new-chat composer, out of flow so the composer stays centred by its own box. "Meet the new model picker" and a Learn more link, beside a small model list with the magnifying-glass sloth sitting on the card's bottom edge. No borders or gradients: the composer's own surface (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.
  • Dialog: the composer with its picker open in front of it, drawn with the real picker's and composer's icons and surfaces: the tab glyphs (Discover selected), search and filter, rows with the in-use wash, the chip as the composer draws it (logo, name, Thinking), and the composer's own mic and send. The rows are Model Hub's Trending Now: the top trending chat model, then the top trending Google and DeepSeek models, through the Hub's existing feed and cache (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.
  • Open model picker closes the dialog and opens the composer picker through the chat page's existing 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 in ACCOUNT_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). New tests/model-picker-announcement.test.ts pins the per-account key, its ACCOUNT_KEYED_PREFIXES entry, 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).
  • An isolated Studio driven with Playwright in dark and light and at 390 px: the card shows under the composer; the dialog opens from it; Open model picker opens the composer picker and the card stays; Escape keeps the card; the X removes it, writes 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

  • Copy is English only, as the composer picker's own strings are; no locale keys were added.
  • Multi-account dismissal was checked through the key logic and tests, not by signing in as a managed account.

Screenshots

The card under the new-chat composer, dark and light:

Card, dark

Card, light

The dialog, dark and light:

Dialog, dark

Dialog, light

The dialog at 390 px, where it fills the screen like other dialogs:

Dialog on a phone-width window

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
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T07:12:33.063622Z a19bb00 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: a19bb00ef9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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
shimmyshimmer merged commit 6cc1c5f into main Nov 19, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-model-picker-announce branch November 19, 2026 07:31
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:

![Intro page
1](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/18445/mpa2_page1_dark-1a548ca2f667.png)

Page 2, dark and light:

![Intro page 2,
dark](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/18445/mpa2_page2_dark-f632f42586b7.png)

![Intro page 2,
light](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/18445/mpa2_page2_light-4bd79d9eb2b4.png)

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:

![Folded picker, long
name](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/18445/mpa2_folded_long-51bed1e214cb.png)

Run settings sidebar, Context reset beside the number:

![Context reset in the
sidebar](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/18445/mpa2_sidebar_context-d8619f2cd11a.png)
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant