Skip to content

fix(test): distinguish model readiness from account health - #149035

Merged
steipete merged 1 commit into
mainfrom
codex/fix-model-provider-status-tests-20260915
Sep 15, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/fix-model-provider-status-tests-20260915

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

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.

@steipete steipete self-assigned this Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 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.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 15, 2026
@steipete
steipete marked this pull request as ready for review September 15, 2026 11:27
@clawsweeper clawsweeper Bot added 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. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 7:49 AM ET / 11:49 UTC (Revision 3).

ClawSweeper review

What this changes

Updates 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
Reviewed head: 97d0f1b56ee2864bf23c806c82b7d17cc2551939

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported test repair with preserved behavioral coverage and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies this as maintainer-authored test maintenance, so external-contributor runtime proof is not required. Reported browser runs exercise the registered Models page with a mocked Gateway; inspected related screenshots support the existing status distinction, not execution of this patch.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies this as maintainer-authored test maintenance, so external-contributor runtime proof is not required. Reported browser runs exercise the registered Models page with a mocked Gateway; inspected related screenshots support the existing status distinction, not execution of this patch.
Evidence reviewed 7 items Assertion scope matches the rendered boundary: The changed test selects the provider header's status and asserts its exact text before and after Refresh. The production template renders provider readiness in that header and saved-account profiles outside it.
Current status owner: The status renderer distinguishes authentication rejection, unavailable models, verified availability, and configured credentials. Saved-account rendering independently permits Signed in for healthy credentials.
Recovery coverage remains intact: The three cache scenarios retain partial inventory adoption, retired-choice removal, usable returned models, open-picker preservation, save settlement, empty inventory, and explicit Retry recovery; only the status wording changes.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +4. Total +4 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 10 6 +4
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 10 6 +4

Review metrics

None.

Technical review

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

Labels

Label justifications:

  • P3: This is a focused correction to existing browser assertions with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies this as maintainer-authored test maintenance, so external-contributor runtime proof is not required. Reported browser runs exercise the registered Models page with a mocked Gateway; inspected related screenshots support the existing status distinction, not execution of this patch.

Evidence

What I checked:

  • Assertion scope matches the rendered boundary: The changed test selects the provider header's status and asserts its exact text before and after Refresh. The production template renders provider readiness in that header and saved-account profiles outside it. (ui/src/e2e/model-providers.e2e.test.ts:133, 97d0f1b56ee2)
  • Current status owner: The status renderer distinguishes authentication rejection, unavailable models, verified availability, and configured credentials. Saved-account rendering independently permits Signed in for healthy credentials. (ui/src/pages/model-providers/view-status.ts:68, 97d0f1b56ee2)
  • Recovery coverage remains intact: The three cache scenarios retain partial inventory adoption, retired-choice removal, usable returned models, open-picker preservation, save settlement, empty inventory, and explicit Retry recovery; only the status wording changes. (ui/src/e2e/model-providers-progressive.e2e.test.ts:139, 97d0f1b56ee2)
  • Merged UI change explains the expected label: GitHub's commit patch for fix(models): clarify saved account health and catalog status #148987 changes the unavailable status from common.failed to modelProviders.status.modelsUnavailable. The recorded raw parent is 2b8c9f1. Its downloaded screenshots were inspected and show provider readiness separately from Signed in account health. (ui/src/pages/model-providers/view-status.ts:74, ee97b51ef69c)
  • Still necessary on main: Pinned main retains the whole-card negative Signed in assertion. The supplied complete introduction delta contains both outstanding test corrections. The related discussion explicitly assigns these remaining Models assertions to this PR; neither the merged setup correction nor the Copilot metadata repair supersedes them. (ui/src/e2e/model-providers.e2e.test.ts:140, 80936b0933a1)
  • Re-review continuity: The earlier review reported no findings or published rank-up moves. GitHub contents reads at earlier head 5fd461c90f2fbe7387534b16710734d651d62dff returned blobs f1a64c6c3fe60a4f1856744d06b60ea58183c8a5 and 7816a8acd60c9c7921715e4a377f1fbc042ab63f, matching both current test files. Local earlier-head inspection failed; remote blob identities established continuity instead. (97d0f1b56ee2)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Patrick Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-15T11:35:15.172Z sha 5fd461c90f2fbe7387534b16710734d651d62dff :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T11:41:53.596Z sha 5fd461c90f2fbe7387534b16710734d651d62dff :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the codex/fix-model-provider-status-tests-20260915 branch from 5fd461c to 97d0f1b Compare September 15, 2026 11:44
@steipete
steipete merged commit c0be265 into main Sep 15, 2026
82 of 83 checks passed
@steipete
steipete deleted the codex/fix-model-provider-status-tests-20260915 branch September 15, 2026 12:36
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 maintainer Maintainer-authored PR 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