Repository navigation
Studio: show newly downloaded quants of a loaded GGUF in the model picker - #15233
Conversation
|
@codex review |
|
@codex security review |
Codex Review SummaryThis 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. 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 Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! 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". |
…lumn, gutter toggles it
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! 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". |
|
It passes on main. The The |
…ugh its aliases (#15319) ## Problem `Repo tests (CPU, studio)` is red on main since #15233, so every PR based on it fails the same check (for example #15306 and #15307): ``` tests/studio/test_model_picker_contracts.py::test_a_multi_quant_parent_row_still_has_no_gear E AssertionError: the multi-quant parent row lost the spacer that stands in for a gear ``` #15233 replaced the empty gutter spacer on an On Device multi-quant parent row with a chevron in the same column, wrapped in `ROW_ACTIONS_PINNED_CLASS`, which is `cn(ROW_ACTIONS_CLASS, "opacity-100")`. The guard only accepted the literal name `ROW_ACTIONS_CLASS`, so it read the renamed reference as a missing gutter. Bisected locally: the test passes at 61cfbaa and fails from 2563513 (#15233) onwards. ## Product or test The product is fine. What the guard protects is that the parent row has no gear, because `playwright_model_config.py` finds gears by their accessible name (`Inference settings for ...`) and reads "no gear" as "this row expands". The new chevron is an `aria-hidden` button with no label, so the driver still sees no gear. The test was too literal. ## Fix - The gutter is matched through `ROW_ACTIONS_CLASS` and every constant whose definition is built from it, read from `pickers.tsx` itself, so a future alias does not reopen this. A new test checks that reader (it finds at least one alias on main, and ignores a `ROW_ACTIONS_*` constant that does not build on the gutter class). - The check now reads the expandable branch of the parent row. Before, the partial-repo branch's row-menu gutter also satisfied it, so removing the gutter from the branch that expands still passed. - New: that branch must not contain an `aria-label`, since a labelled control there is what would break the driver's inference. ## Verification - `tests/studio/test_model_picker_contracts.py`: 202 passed on main's source (1 failed before this change). - Sabotage, each run against main's `pickers.tsx` with one edit: - gutter class removed from the expandable branch: fails (passed with the old guard) - `<ModelLoadSettingsAction />` added to that gutter: fails - the chevron button given `aria-label="Inference settings for x"`: fails - The guard also passes against the pre-#15233 `pickers.tsx` (61cfbaa).
Studio: show newly downloaded quants of a loaded GGUF in the model picker
Problem
Load a GGUF model, then download another quant of the same repo: the new quant does not show up in the chat model picker until the model is ejected.
On the Recommended tab a loaded model moves into a "Loaded" row at the top and its curated row is hidden. That loaded row only re-selected the running quant on click and never opened a quant list, so the repo's other quants (including ones downloaded after the load) had no row to appear in. Ejecting brought the curated row back, which is why they seemed to appear only after an unload.
Fix
A loaded hub GGUF row now opens the same quant list as the curated row it replaces (sizes, fit, downloaded and loaded markers, settings and delete actions). Picking a quant from it loads that quant as before. Local-path GGUFs and non-GGUF loaded rows keep their old click-to-select behavior.
On Device chevron
An On Device GGUF row that holds several quants now shows a chevron in the section headings' chevron column (right when closed, down when open, the same glyph and size), so it reads as expandable. Its whole right gutter toggles the list on click, so the chevron is not a dead spot; the row itself keeps the keyboard. A repo with a single quant keeps its one-click row with the quant chip and no chevron, and no chevron is drawn while that check is still running, so a row never shows one and then drops it.
Verification
npm run typecheck,npm test(13,941 pass, 0 fail),npm run build.loaded-gguf-quant-marker.test.ts; the expander counts inon-device-dot-and-header-alignment.test.tsgo up by one for the new list.