Skip to content

Model picker contracts: read the multi-quant parent row's gutter through its aliases - #15319

Merged
danielhanchen merged 1 commit into
mainfrom
ci-picker-gutter-alias
Oct 26, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-picker-gutter-alias

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

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-Studio: show newly downloaded quants of a loaded GGUF in the model picker #15233 pickers.tsx (61cfbaa).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T04:04:27.013235Z d86d8b6 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.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: d86d8b6b7b

ℹ️ 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".

@danielhanchen
danielhanchen merged commit df02bf1 into main Oct 26, 2026
0 of 15 checks passed
@danielhanchen
danielhanchen deleted the ci-picker-gutter-alias branch October 26, 2026 04:11
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