Repository navigation
test(ui): assert model picker option semantics - #198546
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
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: needs maintainer review before merge. What this changesThe test now checks model rows as accessible options instead of requiring native buttons. Example: The chat model-control test selects an unselected model for session main.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR correctly repairs a stale test assertion while preserving session-target coverage; no actionable patch defects were found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI model picker renders selectable model rows with separate favorite buttons; the changed jsdom test exercises those rows and checks model, reasoning, and speed callbacks. flowchart LR
A[Model catalog fixture] --> B[Chat model controls]
B --> C[Model picker option]
C --> D[Selection callback]
D --> E[Session target assertions]
Technical reviewBest possible solution: Land this focused assertion repair while retaining the existing model, reasoning, speed, and session-target checks. Do we have a high-confidence way to reproduce the issue? Current main requires an HTMLButtonElement where the renderer produces a div, and another PR's CI records the exact assertion failure; this review did not rerun tests. Is this the best way to solve the issue? The patch is the smallest complete repair: it checks the intended accessible option contract using existing helpers and preserves the selection behavior assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d2bfdb0d9a52. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 13, 2026, 8:24 PM ET / November 14, 2026, 01:24 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
What Problem This Solves
Fixes the chat model-control test failing after model favorites changed selectable model rows into accessible options.
User Impact
No user-visible behavior changes. CI continues to verify that model, reasoning, and speed choices target the session that opened the picker.
Why This Change Was Made
The test still required an HTML button even though the model row now contains a separate favorite button. Require the selectable option to exist, check its accessibility role, and exercise the same selection callback with all original session assertions intact.
This failure was introduced on main by #180824 after scheduled run 43527024791. It also appears in run 43537019853; the tested PR's relevant source is identical to its base.
Evidence
cb1c431af60266f3631e7cf8480bec1c740a3355with the recorded HTMLButtonElement assertion.chat model controlscases pass with this repair.CI follow-up
CI run 43538955056, attempt 1 completed for
67785ea4cf8fdbc26b724fcb8e114d2ad4c3487f. The repaired model-selection case passes in CI, and all 36 selected model-control cases pass locally.The remaining failures are 12 existing UI cases: three responsive-layout fixtures (#198532), two hosted-environment and five pane-control fixtures plus one unmaterialized-settings case (#198534), and the retained model-name normalization case (#198535). The exact errors match the scheduled main failures. Their test files and the relevant owners are unchanged by this PR.
The failing leaf jobs are UI 2/3 and UI 3/3. The tested merge was
104b44b1fa3b0761cce9e8c78a7054237f10a540, with baseline211bc77fff4533cfba01950553c2aeefd486804f. These unrelated failures are retained for the authorized inherited-failure landing route.