Repository navigation
Studio: model picker intro how-to page, picker search and sizes, remembered expand, monochrome icons - #18445
Conversation
…dots and a tighter close button
…cons, NEW badge, aligned +)
…or MLX/Safetensors, remembered expand, monochrome icons, glass zoom and find bars [skip ci]
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. |
…ry failed repo size listings
…eutral button style [skip ci]
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. 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". |
|
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". |
|
@codex review |
|
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". |
[skip ci]
…ttings (#18468) ## Summary The strict i18n parity check (`npm run i18n:check:strict`, run by "Frontend build + bundle sanity") fails on `main` for every PR: ``` Missing keys (will fall back to en): 4 - settings.chat.modelSelection.pickerExpandLoaded - settings.chat.modelSelection.pickerExpandLoadedDescription - settings.chat.modelSelection.pickerMonochromeIcons - settings.chat.modelSelection.pickerMonochromeIconsDescription ... Missing keys above. Add them to every overlay, or run without --strict to accept the English fallback. ``` ## Root cause #18445 added two settings under Settings > Chat > Model selection ("Show full model list" and "Monochrome model icons") with their strings only in `en.ts`. Every one of the 24 overlays is therefore missing the four keys, so the strict parity check fails and non-English users see the English fallback for those two rows. The feature itself is correct; only the translations were missing. ## Changes - Adds the four `settings.chat.modelSelection.picker*` keys to all 24 overlays in `studio/frontend/src/i18n/locales/`, placed right after `fitOnDeviceOnlyDescription` to match `en.ts`. Each translation follows the overlay's existing term for the model picker. `es-419` reuses the `es` wording. No code or behaviour change beyond the localized labels. ## Testing - `npm run i18n:check:strict`: fails on `main` with the 4 keys missing in all 24 overlays; passes on this branch ("All locale overlays pass parity"). - `npm run typecheck`: passes. - `node --test tests/lazy-locale-loading.test.ts tests/chat-welcome-i18n.test.ts`: 34 passed. ## Screenshot Settings > Chat with the German locale, scrolled to the model picker rows. Before, "Show full model list" and "Monochrome model icons" fall back to English; after, they read "Vollständige Modellliste anzeigen" and "Einfarbige Modellsymbole". The surrounding rows are unchanged. 
…ng, MLX batch sizes, QAT CUDA skip) (#18471) ## Summary Four tests fail on `main` in the "Repo tests (CPU, studio)" shard, so every PR that runs it is red (seen on the staging runs of #18353 and others). Reproduced on `main` at `415cdcf1be`: ``` FAILED tests/python/test_accelerator_skip_guards.py::test_no_skip_guard_reads_a_spoofable_accelerator_probe FAILED tests/studio/test_model_picker_contracts.py::test_batch_sizes_setting_wired_end_to_end FAILED tests/studio/test_model_picker_contracts.py::test_batch_sizes_reach_an_api_load_through_the_server_mirror FAILED tests/studio/test_chat_ui_picker_collapsed_row.py::test_a_loaded_model_still_opens_the_picker_collapsed ``` Each was attributed to the PR that changed the code it reads, and each was checked for whether the PR or the test is wrong. ## Root causes and changes ### Picker collapsed after a load (#18445): test was wrong #18445 added the "Show full model list" setting, so the load effect now calls `setExpanded(useChatRuntimeStore.getState().pickerExpandLoaded)` instead of a literal `?? false`. The setting defaults to off, so a fresh browser (every CI driver) still opens the picker collapsed, which is what this test protects: the drivers' expand click is still needed. `test_a_loaded_model_still_opens_the_picker_collapsed` now accepts either form, and when the setting drives it, also asserts the store default is `loadBool(PICKER_EXPAND_LOADED_KEY, false)`. Flipping that default to `true` fails the test, which the old literal check could not see. ### Batch sizes sent on a load (#18426): test was wrong #18426 brought MLX up to GGUF parity, so `n_batch` / `n_ubatch` are now sent for `(target.isGguf || mlx)` and copied for MLX overrides too. GGUF behaviour is unchanged; the tests pinned the old GGUF-only literal. - `test_batch_sizes_setting_wired_end_to_end`: matches the gate with a regex that allows widening to MLX but still requires `target.isGguf` and "only when set". Dropping the gate (sending the fields to every engine) fails it. - `test_batch_sizes_reach_an_api_load_through_the_server_mirror`: replaces the source-text check on the GGUF block with a behavioural check through `_override_load_kwargs`, which the test already imports. Dropping `n_ubatch` from the copied keys fails it. ### QAT stream test skip guard (#18434): PR was wrong `tests/test_qat_weight_memo_guards.py` gated `test_cached_weight_not_served_to_another_stream` on `torch.cuda.is_available()`, which `tests/_zoo_aggressive_cuda_spoof.py` patches to `True` process-wide, so on a CPU runner the test un-skips and calls `.cuda()` when it shares a session with the spoofing suites. The existing guard caught this. The skip now gates on `has_real_cuda()` first, as the other CUDA-only tests do. ## Testing - The four tests plus their files: `241 passed, 1 skipped` on this branch; the same four fail on `main`. - Sabotage, each against this branch: - store default `pickerExpandLoaded` set to `true`: the picker test fails; - `n_batch` sent without the GGUF/MLX gate: the end-to-end batch test fails; - `n_ubatch` dropped from the backend override copy: the server-mirror test fails; - QAT skip guard reverted: the skip-guard test fails.
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:
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-currenton 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
darkbutton 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
.safetensorsfiles (hub-repo-size.ts, three listings at a time, cached per endpoint), because the Hub'ssafetensors.parameterscounts packed MLX weights at full width:unsloth/Qwen3.6-27B-UD-MLX-4bitestimates at 97 GB but its files are 26 GB.unsloth_composer_picker_quants_open, up to 200 models) and no longer resets when the picker remounts.Glass
.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
tests/context-mode-ux.test.tspins both placements.Verification
npm run typecheck,npm run build,npm run i18n:check,npm test(16735 passed, 0 failed).data-glass="frosted"the find bar and intro card reportbackdrop-filter: blur(26px) saturate(1.7).Not covered
Screenshots
Page 1 with the page dots and Next:
Page 2, dark and light:
Page 2 at 390 px:
Folded picker with a long model name, the loaded dot clear of Eject:
Run settings sidebar, Context reset beside the number: