Repository navigation
fix(test): distinguish model readiness from account health - #149035
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: needs maintainer review before merge. Reviewed September 15, 2026, 7:49 AM ET / 11:49 UTC (Revision 3). ClawSweeper reviewWhat this changesUpdates Models-page browser tests to check provider readiness separately from saved-account health and use the current unavailable-models label. Merge readiness✅ Ready for maintainer review Keep open: the test corrections remain necessary on the pinned main revision, preserve meaningful coverage, and introduce no actionable defects. The related merged work changed the UI contract without completing these assertions. Priority: P3 Review scores
Verification
How this fits togetherThe Models settings page combines Gateway catalog results with saved-account health to show provider readiness and account status separately. These browser tests exercise that page through a mocked Gateway, including discovery, partial results, and recovery. flowchart LR
A[Mock Gateway responses] --> B[Models settings page]
B --> C[Provider readiness header]
B --> D[Saved account health]
C --> E[Browser assertions]
D --> E
F[Refresh and Retry] --> A
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +4. Total +4 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the existing browser scenarios and assert each status at its owning UI boundary, preserving discovery and recovery coverage. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the stale expectations: the healthy account fixture legitimately renders Signed in, and unavailable catalogs render Models unavailable. The author reports both failures reproduced; this review did not execute them. Is this the best way to solve the issue? Yes. Exact provider-header assertions remove the account-health ambiguity, while the wording corrections preserve the existing failure and recovery checks without changing fixtures or weakening timing controls. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 80936b0933a1. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
5fd461c to
97d0f1b
Compare
|
Merged via squash.
|
Related: #148987, #148982, #149023
What Problem This Solves
Fixes Models-page regression checks that confuse saved-account health with provider readiness and still expect the old unavailable-catalog label.
User Impact
No production behavior changes. The existing browser scenarios once again verify deferred discovery, partial inventory, and recovery against the current UI.
Why This Change Was Made
Check the provider header's exact status independently of a healthy OAuth account's Signed in label. Update the unavailable-provider assertion and both healthy/recovered-provider negative assertions to Models unavailable. Preserve request counts, model-required state, navigation, usable returned models, retired-choice removal, open pickers, empty inventory, save ordering, and explicit Retry.
These are the two remaining Models corrections after #149023 landed the earlier setup fixtures.
Evidence
Both original failures reproduced locally and in CI. All 23 browser tests in the Models, profile-outcome, and progressive-loading suites pass. Both changed-file gates pass, and independent P2 review found no actionable issues. The final patch and its relevant UI/dependency inputs are unchanged after rebasing onto repaired main; exact-head CI remains the landing gate.
Production: 0 lines changed. Tests: +10/−6 in two existing files. No new tests, fixtures, timeouts, retries, or skips.
The first CI run exposed the existing missing-Copilot-fields regression. #149038 has now restored those fields on main, and this branch includes that verified repair without changing its two-test diff. The failed run remains recorded; new-head CI is required before landing.