Repository navigation
test(ui): wait for lazy model picker controls - #198534
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 tests wait for lazy model-picker controls and expected settings before inspecting or clicking them. Example: A hosted-environment test opens the picker and selects the agentsapi runtime.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it narrowly repairs confirmed test-readiness failures without weakening assertions or changing production behavior; no actionable correctness or security defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI tests mount the production model controls with Gateway fixtures, open the lazy picker, and assert rendered selections and mutation outcomes. flowchart LR
A[Test fixtures] --> B[Model controls]
B --> C[Lazy picker panel]
C --> D[Rendered controls]
D --> E[waitForSolid]
E --> F[Existing assertions]
Technical reviewBest possible solution: Retain the existing lazy renderer and readiness helper, waiting for each exercised control while preserving the original behavioral assertions. Do we have a high-confidence way to reproduce the issue? Source explains the readiness race and scheduled-main annotations confirm its exact failures; no target code was executed during this read-only review. Is this the best way to solve the issue? This is the smallest complete repair: it uses the existing helper at the asynchronous DOM boundary without sleeps, longer timeouts, new scaffolding, or weaker expectations. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5e1bb26e340c. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +8. Total +8 across 3 files. 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:
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:13 PM ET / November 14, 2026, 01:13 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
What Problem This Solves
Model-control unit tests inspect the lazy picker's shell before the requested controls and catalog state have mounted.
User Impact
No user-visible behavior changes. The tests wait for the actual controls they exercise and retain their existing state and rollback assertions.
Why This Change Was Made
The runtime/account settings redesign (56ca2fa, #192137) added lazy panel content. Wait for the runtime button, locked-model value, catalog message, or complete settings tuple instead of treating the menu container as ready. No sleeps, increased timeouts, or weaker assertions.
Evidence
hosted-environment.test.tsfailures and fivechat-pane-session-controls.test.tsxcases.chat-pane-unmaterialized-settings.test.tscases pass, preserving pending intent and failed-write rollback.CI: exact-head run 43537450883 completed with nine inherited UI-unit failures: three responsive fixture cases (#198532), four draft-title cases (#198516), the retained model-label normalization case (#198535), and the semantic model-option assertion (#198546). The failed tests and relevant owners are unchanged between the actual baseline and tested merge. All 31 affected readiness cases pass locally. Landing uses the authorized inherited-failure route; this does not classify failed CI as green.