Skip to content

fix(ui): make model setup actionable before selection - #116079

Merged
vincentkoc merged 1 commit into
mainfrom
fix/models-provider-readiness
Jul 30, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/models-provider-readiness

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Jul 29, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where users with provider credentials but no selectable model were shown disabled default-model controls first, while the recovery action was hidden in the page header. The same state labeled credentials as "Connected" even when the account exposed no usable models.

Why This Change Was Made

The Models page now leads with the existing Model Setup flow whenever no usable model is selectable. Provider status distinguishes valid sign-in from model readiness, and authoritative empty provider catalogs remain empty rather than assuming static catalog entries are account entitlements.

User Impact

Users can immediately see what is missing and open Model Setup. Signed-in accounts with no available models now direct users to another provider or account instead of presenting a misleading connection failure or unusable default controls. Configured but unverified API keys remain labeled as API keys rather than being presented as ready.

Evidence

  • Focused units: 55 passed across gateway probe, probe planner, and Models UI coverage.
  • Mocked Control UI E2E: 4 passed.
  • control-ui-i18n verify: passed.
  • git diff --check: passed.
  • Fresh autoreview: no accepted/actionable findings; patch rated correct at 0.82 confidence.
  • Desktop and mobile geometry assertions cover the readiness action and provider-row wrapping.

Desktop

Before:

before-desktop.png

After:

after-desktop.png

Mobile

Before:

before-mobile.png

After:

after-mobile.png

AI-assisted: Codex was used for implementation and structured review; the maintainer inspected the diff, tests, and visual evidence.

@vincentkoc vincentkoc self-assigned this Jul 29, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime commands Command implementations size: M maintainer Maintainer-authored PR labels Jul 29, 2026
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. labels Jul 29, 2026
@clawsweeper

clawsweeper Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed July 29, 2026, 8:26 PM ET / July 30, 2026, 00:26 UTC.

ClawSweeper review

What this changes

The PR makes the Control UI’s Models page put the existing Model Setup flow first when credentials exist but no selectable model is available, while showing sign-in state separately from usable-model readiness.

Merge readiness

⚠️ Needs maintainer review before merge - 2 items remain

Keep this PR open for normal maintainer handling. The maintainer-approved readiness semantics, focused tests, mocked UI E2E, and direct desktop/mobile before-and-after screenshots support the Models UI change; however, the branch also edits the release-owned CHANGELOG.md, which should be removed from a normal PR unless a release owner explicitly chooses an exception.

Priority: P2
Reviewed head: 791e94ef1db8e8918a7e8f9d1277ba52a6cfeaaa
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The user-visible proof and approved readiness direction are strong, but the release-owned changelog edit is a concrete merge blocker for a normal PR.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The supplied desktop and mobile before/after screenshots directly show the visible Models-page recovery result, with mocked UI E2E and focused tests as supplemental evidence.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The supplied desktop and mobile before/after screenshots directly show the visible Models-page recovery result, with mocked UI E2E and focused tests as supplemental evidence.
Evidence reviewed 5 items Maintainer-approved readiness contract: The supplied PR comment records approval of the distinction between signed-in credentials and provider readiness: an account-visible empty runtime catalog remains authoritative and routes the operator to Model Setup.
Recovery UI and tests: The branch adds a primary readiness panel, removes disabled default controls when no selectable model exists, and adds focused view and mocked Control UI E2E coverage for the credential-only state.
Direct behavior proof: The PR body supplies desktop and mobile before/after screenshots that directly show the visible Models-page recovery flow; the supplied context also records successful focused tests, mocked E2E, i18n verification, and the repository Real behavior proof check.
Findings 1 actionable finding [P2] Remove the release-owned changelog entry
Security None None.

How this fits together

The Control UI receives provider credentials, probe results, and model catalogs from Gateway, then renders provider status and default-model controls. This change uses the resulting readiness state to hide unusable defaults and route an operator into the existing Model Setup recovery flow.

flowchart LR
  A[Gateway credentials and catalog] --> B[Model probe and readiness data]
  B --> C[Models page]
  C --> D{Selectable model exists?}
  D -->|Yes| E[Provider status and defaults]
  D -->|No| F[Model Setup recovery]
  F --> G[Choose provider or account]
Loading

Decision needed

Question Recommendation
Should this normal Models UI PR retain an exception for its release-owned CHANGELOG.md entry, or should that entry be removed before merge? Remove the changelog entry: Keep the reviewed UI and Gateway changes while leaving release-note wording to the release-owned changelog process.

Why: The supplied approval resolves the product behavior, but it does not explicitly override the repository rule that normal PRs do not edit release-owned changelog content.

Before merge

  • Remove the release-owned changelog entry (P2) - Normal PRs should not edit CHANGELOG.md; this one-line release note should stay with the release-owned changelog process unless a release owner explicitly approves an exception.

Findings

  • [P2] Remove the release-owned changelog entry — CHANGELOG.md:58
Agent review details

Security

None.

PR surface

Source +102, Tests +290, Docs +1. Total +393 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 4 122 20 +102
Tests 4 291 1 +290
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 414 21 +393

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: ui/src/e2e/model-providers.e2e.test.ts, vector/embedding metadata: ui/src/e2e/model-providers.e2e.test.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep the approved Gateway-catalog and Models-page readiness behavior, remove the normal-PR CHANGELOG.md edit, and merge after the exact head has its required checks and maintainer review completed.

Do we have a high-confidence way to reproduce the issue?

Yes, source-reproducible: the added mocked Gateway E2E and view tests construct a credentialed provider with no selectable models and verify that Model Setup becomes the primary action.

Is this the best way to solve the issue?

Yes for the product behavior: reusing the existing Model Setup flow keeps provider recovery centralized and the approved catalog semantics authoritative. The whole branch is not yet the best landing shape because its release-owned CHANGELOG.md edit should be removed or explicitly accepted by a release owner.

Full review comments:

  • [P2] Remove the release-owned changelog entry — CHANGELOG.md:58
    Normal PRs should not edit CHANGELOG.md; this one-line release note should stay with the release-owned changelog process unless a release owner explicitly approves an exception.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: unclear because the file could not be read completely.

Codex review notes: model internal, reasoning high; reviewed against 156d2e623eb3.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The supplied desktop and mobile before/after screenshots directly show the visible Models-page recovery result, with mocked UI E2E and focused tests as supplemental evidence.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (screenshot): The supplied desktop and mobile before/after screenshots directly show the visible Models-page recovery result, with mocked UI E2E and focused tests as supplemental evidence.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P2: This is a bounded Control UI recovery-path fix with meaningful usability impact but no demonstrated emergency availability, security, or data-loss condition.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (screenshot): The supplied desktop and mobile before/after screenshots directly show the visible Models-page recovery result, with mocked UI E2E and focused tests as supplemental evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied desktop and mobile before/after screenshots directly show the visible Models-page recovery result, with mocked UI E2E and focused tests as supplemental evidence.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The supplied desktop and mobile before/after screenshots directly show the visible Models-page recovery result, with mocked UI E2E and focused tests as supplemental evidence.

Evidence

What I checked:

  • Maintainer-approved readiness contract: The supplied PR comment records approval of the distinction between signed-in credentials and provider readiness: an account-visible empty runtime catalog remains authoritative and routes the operator to Model Setup. (ui/src/pages/model-providers/view.ts:164, 791e94ef1db8)
  • Recovery UI and tests: The branch adds a primary readiness panel, removes disabled default controls when no selectable model exists, and adds focused view and mocked Control UI E2E coverage for the credential-only state. (ui/src/pages/model-providers/view.test.ts:211, 791e94ef1db8)
  • Direct behavior proof: The PR body supplies desktop and mobile before/after screenshots that directly show the visible Models-page recovery flow; the supplied context also records successful focused tests, mocked E2E, i18n verification, and the repository Real behavior proof check. (ui/src/e2e/model-providers.e2e.test.ts:58, 791e94ef1db8)
  • Release-owned file change: The branch adds a release-note entry to CHANGELOG.md. The applicable repository policy states that normal PRs should not edit this release-owned file. (CHANGELOG.md:58, 791e94ef1db8)
  • Repository policy status: The target repository policy was supplied and its relevant Control UI, review, proof, and release-changelog guidance was applied; a sandbox failure prevented a second full on-disk read during this review. (AGENTS.md:1, 156d2e623eb3)

Likely related people:

  • vincentkoc: Authored the reviewed head and the supplied maintainer decision that defines the account-visible catalog and readiness behavior for this Models UI path. (role: current area contributor and approval author; confidence: high; commits: 791e94ef1db8; files: ui/src/pages/model-providers/view.ts, ui/src/pages/model-providers/model-providers-page.ts, ui/src/e2e/model-providers.e2e.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Remove the CHANGELOG.md entry, unless a release owner explicitly records an exception.

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 (1 earlier review cycle)
  • reviewed 2026-07-29T20:46:13.980Z sha e53abf2 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc force-pushed the fix/models-provider-readiness branch from e53abf2 to 791e94e Compare July 30, 2026 00:21
@vincentkoc

Copy link
Copy Markdown
Member Author

Maintainer decision: approved.

The account-visible runtime catalog is authoritative for runtime-discovered providers: an empty result intentionally suppresses static possibility rows, while static-only providers retain their manifest catalog. The signed-in-but-no-model state should therefore remain distinct and route to the existing Model Setup recovery flow.

The fresh review also identified and fixed one P2: a configured but unverified API key can no longer receive the green Ready badge merely because catalog models exist. Verified auth is required whenever auth status is available. Focused tests and the final autoreview are clean on 791e94ef1db8e8918a7e8f9d1277ba52a6cfeaaa.

@vincentkoc
vincentkoc marked this pull request as ready for review July 30, 2026 00:22
@vincentkoc
vincentkoc enabled auto-merge (squash) July 30, 2026 00:24
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 30, 2026
@vincentkoc
vincentkoc merged commit e473598 into main Jul 30, 2026
184 of 193 checks passed
@vincentkoc
vincentkoc deleted the fix/models-provider-readiness branch July 30, 2026 00:34
vincentkoc added a commit to yetval/openclaw that referenced this pull request Jul 30, 2026
* origin/main:
  fix(ui): make model setup actionable before selection (openclaw#116079)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
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 commands Command implementations gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant