Repository navigation
fix(ui): make model setup actionable before selection - #116079
Conversation
|
Codex review: found issues before merge. Reviewed July 29, 2026, 8:26 PM ET / July 30, 2026, 00:26 UTC. ClawSweeper reviewWhat this changesThe 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 readinessKeep 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 Priority: P2 Review scores
Verification
How this fits togetherThe 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]
Decision needed
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
Findings
Agent review detailsSecurityNone. PR surfaceSource +102, Tests +290, Docs +1. Total +393 across 9 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep the approved Gateway-catalog and Models-page readiness behavior, remove the normal-PR 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 Full review comments:
Overall correctness: patch is incorrect AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 156d2e623eb3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
e53abf2 to
791e94e
Compare
|
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 |
* origin/main: fix(ui): make model setup actionable before selection (openclaw#116079)
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
control-ui-i18n verify: passed.git diff --check: passed.Desktop
Before:
After:
Mobile
Before:
After:
AI-assisted: Codex was used for implementation and structured review; the maintainer inspected the diff, tests, and visual evidence.