Skip to content

test(ui): assert model picker option semantics - #198546

Merged
steipete merged 1 commit into
mainfrom
fix/ci-435270-chat-model-action
Nov 14, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/ci-435270-chat-model-action

Conversation

@steipete

@steipete steipete commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

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

  • The exact case fails on cb1c431af60266f3631e7cf8480bec1c740a3355 with the recorded HTMLButtonElement assertion.
  • All 36 chat model controls cases pass with this repair.
  • Targeted UI test typecheck, file lint, and formatting pass.
  • Independent review reports no actionable P0–P2 findings.

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 baseline 211bc77fff4533cfba01950553c2aeefd486804f. These unrelated failures are retained for the authorized inherited-failure landing route.

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T01:12:42.781154Z 67785ea Draft marked ready
ℹ️ 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

The 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.

  • Before: The test rejects the rendered div because it expects an HTMLButtonElement.
  • After: The test verifies role="option", clicks the row, and checks that selection targets main.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, correct test repair with preserved coverage and corroborated baseline failure; required CI remains red on independently evidenced inherited failures.
Proof confidence 🐚 platinum hermit (4/6) No shipped behavior changes; the author reports the exact baseline failure and 36 passing model-control cases after repair, supported by source inspection and independent CI failure evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: CI rejects valid model-picker markup before checking that controls target the correct session.
Reason: The change restores useful existing coverage without altering the maintainer-approved picker design or adding test machinery.

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
Reviewed head: 67785ea4cf8fdbc26b724fcb8e114d2ad4c3487f

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Composer picker semantics and session targeting keeps the original intent (fix(ui): restore the composer model picker dialog #123090: Restore the rich composer picker, including search and provider grouping; later favorites work added independent star buttons, while runtime-selection work preserved the callback's runtime semantics.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 8 8 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 8 8 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This repairs test expectations without changing shipped behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 13, 2026, 8:24 PM ET / November 14, 2026, 01:24 UTC.

@steipete
steipete merged commit 41d0dec into main Nov 14, 2026
154 of 159 checks passed
@steipete
steipete deleted the fix/ci-435270-chat-model-action branch November 14, 2026 04:15
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant