Repository navigation
Studio UI gates: expand the collapsed model picker and find the renamed Context field - #17902
Conversation
|
@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. Delightful! 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. 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". |
|
@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". |
…d model (Windows race) (#17944) ## Summary The Windows `Chat UI Tests` lane still fails intermittently at the model picker step after #17902 (seen on the staging run of #17927, whose base includes #17902): ``` playwright_chat_ui.py, line 1470: search.fill("") TimeoutError: Locator.fill: Timeout 60000ms exceeded. waiting for get_by_placeholder(re.compile(r"Search.*models?", re.IGNORECASE)).visible.first ``` The job's screenshots show the race: - `03c-model-picker-open`: the selector still reads `Select model` and the picker is open and expanded, showing `Search on device models` and `Loading models`. After the reload the frontend has not yet learned which model is resident, so the picker opens expanded (`isExpanded = expanded || !chosenName`) and the driver finds and fills the search. - `03d-model-picker-search-qwen`: a moment later the residency check lands, the chip reads `gemma-3-270m-it-GGUF`, and the picker collapses to the loaded model's row (#17839's collapse on load). The search field is gone, so the next `fill()` waits 60 s for it. On Linux the residency check usually lands before the click, so the picker opens collapsed and #17902's expand handles it; the slower Windows runner opens it first. The collapse itself is intended, and a person opening the picker in that first moment after a reload is a narrow case, so this changes the driver, not the product. ## Change - `tests/studio/playwright_chat_ui.py`: before opening the picker, wait (up to 30 s, polling the page) until the model selector no longer reads `Select model`, i.e. the frontend knows the model loaded above. If it never does, the step logs a warning and goes on as before, so the step still reports the real failure. - `tests/studio/test_chat_ui_picker_collapsed_row.py`: the search step must wait for the selector to name the model before it clicks it. ## Testing - `test_chat_ui_picker_collapsed_row.py` and every test that reads `playwright_chat_ui.py`: 78 passed. With the driver reverted to main, the new check fails. - The wait against a scripted page in Chromium (Playwright 1.64): a selector that switches from `Select model` to the model name after 1.5 s settles after 1.6 s; one that never switches times out with a readable message, which the step logs as a warning.
Summary
Two intended Studio UI changes merged without their Playwright drivers and contract tests being updated, so these gates are red on main and on every PR:
<model>: show all models); the source tabs, the search field and the rows render only after that row is clicked.Chat UI/Chat UI, API, Update and GGUF inference(playwright_chat_ui.py):model picker search input not found(seen on Model picker: collapse on load, logo-only row icons, steadier first open #17839, Studio UI: trim comments from the recent picker, context and settings PRs #17900 and the staging run of Studio: keep a load's baked LoRAs on /v1/images/generations #17899).Search ... modelsfield and timed out after 60 s inLocator.fill(staging run of Studio: keep a load's baked LoRAs on /v1/images/generations #17899).playwright_model_config.py):picker shows no rows at all, so the hidden-model check below proves nothing, thencould not open run-settings.Repo tests (CPU, studio):test_model_picker_contracts.py::test_an_mlx_target_is_offered_a_context_length_not_a_sequence_lengthand::test_run_settings_page_keeps_its_identifying_controlsstill assert the old label.Context Length input has no numeric default.playwright_memory_estimate.pyfinds the field the same way.Both product changes are deliberate, so the fix is on the test side. No product code changes.
Change
tests/studio/_playwright_robust.py: newexpand_collapsed_model_picker(scope)waits for either the expanded picker (theModel sourcestablist) or the collapsed row, and clicks the row only when the picker opened collapsed. It is a no-op on an already expanded picker, and it only counts controls that are on screen, so a hidden mounted copy is neither clicked nor taken as proof that the picker expanded. The collapsed row suffix, the tablist selector and the run settings context field name (RUN_SETTINGS_CONTEXT_LABEL = "Context") live here once.playwright_chat_ui.py: the search step expands the picker before waiting for the search field, and waits for a visible one. The rest of the step (two queries must show different picker text) is unchanged.playwright_model_config.py,playwright_memory_estimate.py:open_picker()expands after clicking the trigger;context_input()looks the field up byRUN_SETTINGS_CONTEXT_LABELwith an exact match, sinceContextis a prefix of other run settings names.test_model_picker_contracts.py: the two run settings assertions readContext.tests/studio/test_chat_ui_picker_collapsed_row.py(CPU) pins the coupling between the drivers and the frontend:Model sourcestablist are still whatcomposer-model-picker.tsxrenders,open_picker()expands after the trigger click,model-config-page.tsxstill names the context fieldRUN_SETTINGS_CONTEXT_LABEL, and both drivers look it up by that name.Testing
test_model_picker_contracts.py: 213 passed.Context Length, 2 fail._playwright_robust.py(17 files): 345 passed.tests/studio/test_*.pyon CPU: the only failures are 5 host-specific tests (AMD DRM detection, credential homes, version compat sweep) that do not touch these files.fill(), as on the Windows lane.