Skip to content

improve(ui): lead the Models page with an inline provider catalog - #203485

Merged
obviyus merged 9 commits into
mainfrom
redesign-model-providers
Nov 22, 2026
Merged

obviyus merged 9 commits into
mainfrom
redesign-model-providers

Conversation

@obviyus

@obviyus obviyus commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

A new user who opens Settings → Models gets a page that does not say what to do. Critique of the old page on a fresh profile (no model, no credentials):

  • The only action is an "Add account" button in an "AI setup" card. The user has no account yet, and the button opens a modal list of more than 100 providers, sorted from "Abliteration".
  • "AI setup", "Set up a model" and an amber "Model required" all say the same thing.
  • A "Couldn't load models from acp-opencode" error shows on every fresh install. acp-opencode is an internal id, and the user never set it up.
  • Seven empty, mostly disabled default-model controls appear before anything can be chosen. On mobile that is about 700 px.
  • Installed agents shows OpenCode with an amber "Models unavailable", plus a list of five apps that are not installed.
  • "Provider access" is an empty section with a heading and no rows.
  • After a browser sign-in, "Model: Select a model" reads as "nothing chosen", but the agent already uses the model it signed in to.

What changed

The providers are now the page. The design follows the catalog rows from #202515 and #202531 (plugin-catalog-results--rows, PluginCatalogGrid, CatalogDiscoverySearch). It adds no new row, header or facts framework.

New user

  • The page leads with Connect a provider: popular providers (the plugins that set onboardingFeatured: OpenAI, Anthropic, Google, Copilot, OpenRouter, xAI and Meta), a search over every provider, and "Show all N providers". Each row has a quiet line that names the ways to connect ("Sign in with browser · API key") and one Connect button. All rows use the same button, so the actions line up in one column.
  • Connect starts the provider's only way in directly: the API key form, or the single browser sign-in (OpenCode, for example). When there is a choice, it opens the existing method dialog on that provider. The dialog no longer has a catalog step on this page. The method step hides "Accounts available to this agent" when there are none.
  • "Find local models" (previously "On this Gateway") is in the catalog header.
  • The defaults stay hidden until something can be chosen. When only a decision model can be chosen, they sit below the catalog. The listing error about providers the user never set up is gone.
  • Installed agents: an app that is on by default and lists no models gets a neutral "Installed" status, not an amber warning. Missing apps are named only when none is installed.

Returning user

  • Defaults for all agents shows Model with a sentence that names the model the agent really uses ("main uses MiniMax M3, set on the agent."). Effort and speed stay visible. Fallback, utility and decision models are behind More settings, which opens on its own when one of them is set.
  • Providers (previously "Provider access"): the existing expandable provider rows. The filter shows only above six providers.
  • Installed agents, then Add a provider: the same catalog. Providers that are already connected say "Connected" and still offer Connect, to add another account.
  • Listing errors name providers by display name ("OpenCode (ACP)", not acp-opencode). A failure that only the installed-agent row owns no longer shows twice.

Gateway: providerCapabilities[].featured marks onboarding-featured providers. The field is additive and optional.

Product decisions (Fable consulted)

  • Defaults hidden for a new user. Seven disabled controls give the user nothing to do. The section shows as soon as any default is set or any model is available.
  • Popular plus "Show all", not 100 rows. Search always covers every provider.
  • The effective model is shown, not written. Sign-in sets the agent's own model and does not change the global default (login-controller: "never replacing the operator's choice"). The default applies to every agent, so writing it on sign-in would change other agents. The default stays the one owner of the global choice. The row names the agent's model when the two differ.
  • The global decision model stays reachable without a chat model (local review finding). If decision models are available but nothing is set up, a new user sees the defaults below the catalog and installed agents, so the catalog stays the first action.
  • Listing errors stay visible. The defaults section, which owns the listing error and Retry, shows as soon as any provider has saved credentials, even when listing fails (local review finding).
  • Defaults stay above Providers for returning users. Provider data loads after config. When Providers was rendered above Defaults, the arrival of that data moved an open default-model picker and closed it (model-providers-progressive.e2e). The connected provider still sits directly under one compact Model row.

Removed

  • The "AI setup" readiness card, its ModelProviderConnectAction use on this page, and the "Add account" button in the page header.
  • The catalog step of the picker dialog on this page (/settings/model-setup still uses it).
  • The empty "Provider access" state and the unused copy: readiness.* (except signedInNoModels), emptyTitle and emptySubtitle.
  • The CSS for .model-providers__setup and .model-providers__agents-missing.

Evidence

All captures come from an isolated Gateway in this worktree. HOME is a scratch directory and the environment has no ambient keys.

Before After
New user, desktop before new after new
New user, 390 px before new mobile after new mobile
Connected (OpenCode), desktop before connected after connected
Connected, 390 px before connected mobile after connected mobile
Connect flow before picker after methods

Head E2E on the real Gateway:

  1. New user → catalog → OpenCode Connect → browser device-code sign-in in the signed-in browser → "MiniMax M3 is ready for your agent" → chat "Reply with exactly the word: pineapple" → reply pineapple.
  2. Anthropic Connect → API key dialog → fake key → "API key saved, but the provider didn't accept it. Authentication failed. Enter a different key." The key was then removed through "Remove saved access" on the provider row.

API key error path

Tests:

  • ocx test ui/src/pages/model-providers ui/src/pages/model-setup: 48 files, 469 tests passed
  • Mocked browser e2e: the 40 files that touch this page, plus curated-settings-defaults, decision-model-settings and chat-model-controls. All pass except model-setup-headings and chat-composer-redesign, which also fail on the merge base 31c9a9a (MAIN-ALSO). model-setup-headings passes after merging main.
  • pnpm tsgo:ui, oxlint and oxfmt on the changed files, pnpm lint:ui:styles and pnpm ui:i18n:verify: clean.
  • pnpm ui:check-performance: same 2 violations as the merge base 31c9a9a: largest CSS gzip (58587 B, file unchanged by this PR) and chat boot JS requests (21). Total CSS gzip 344926 B, under the 344948 B ceiling. The CSS for this page shrank (−18 lines); the catalog reuses plugins.css

Not run locally: the real-Gateway e2e files whose connect selectors changed (provider-browser-login*, model-add-provider-to-chat, model-provider-remove-in-use and model-setup-provider-errors). The manual head E2E above covers the same flows.

obviyus and others added 5 commits November 22, 2026 16:57
- New users see a 'Connect a provider' catalog (popular providers, search, show all) instead of an 'AI setup' card that opened a modal list.
- A provider with one way in starts it directly; others open the picker on that provider's methods.
- Defaults for all agents appear once something can be chosen; installed agents name missing apps only when none were found.
- Listing errors use provider names and skip failures the installed-agent row already shows.
- Gateway marks onboarding-featured providers in providerCapabilities.

Co-authored-by: obviyus <[email protected]>
…fault-on agents

- Defaults show Model plus the model the agent really uses; the other defaults sit behind More settings.
- Every catalog row offers one Connect action; connected providers say Connected.
- The provider filter appears above six providers.
- An installed agent on by default that lists no models is neutral, not amber.

Co-authored-by: obviyus <[email protected]>
- Drops the page-specific disclosure CSS; the shared row and chevron styles cover it.

Co-authored-by: obviyus <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 22, 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.

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: af50eff6d91ce26cfcfd2c85815b1d45247c5587
  • Maintainer: @obviyus
  • Repository role: admin

These security sensitive changes were made:

  • src/gateway/server-methods/models-auth-status.types.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 22, 2026
@clawsweeper

clawsweeper Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR replaces the Models page’s provider picker entry with an inline catalog and folds secondary model settings.

Example: A fresh profile opens Settings → Models to connect Anthropic.

  • Before: The page shows disabled defaults and an Add account button leading to a provider list.
  • After: Anthropic appears in the inline catalog, and Connect opens its API key form.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Strong visual and real-flow evidence supports the design, but the decision-only regression and focused validation failures block this revision.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected real-Gateway before/after desktop and mobile captures show the catalog, compact defaults, method selection, and rejected-key recovery; the body also records OpenCode sign-in through a successful chat reply.
Patch quality 🦪 silver shellfish (2/6) 3 actionable review findings remain.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: New users encounter disabled model controls and an extra provider-list dialog before reaching a useful connection action.
Reason: The maintainer-authored direction improves provider discovery and reduces setup steps while retaining existing credential and configuration owners.

Merge readiness

⛔ Needs changes before merge - 4 items remain

Keep this PR open: the maintainer-backed catalog improves first-run setup, but the patch needs focused correctness and validation repairs.

Priority: P2
Reviewed head: 93bfc7c24aab4b88f38da3fd33f8e30fb54f08b9

Before merge

  • Keep decision-only catalogs eligible for the Defaults section (P2) - When models.list returns models: [] and decisionModels: [{ provider: "typesafe", id: "jev-latest", name: "Jev" }] with no saved defaults, this predicate returns false. The entire Defaults section, including More settings and the Decision model picker, disappears, so users cannot configure the independent decision role without first configuring an unrelated chat model. This contradicts the contract in feat(plugins): add decision models with per-agent selection #152237 and explains the head CI timeout in decision-model-settings.e2e.test.ts:48. Include available decision models in section eligibility and preserve the test's save/clear behavior through the disclosure.
  • Initialize the disclosure without adding a forbidden untrack call (P2) - This adds an untrack call to a file with zero allowance in config/control-ui-untrack-baseline.txt. scripts/check-control-ui-controllers.mts counts these calls and rejects increases, so the introduced source cannot satisfy that required guard. Express initialization through a supported signal derivation that preserves the user's expansion choice; do not increase the shrink-only baseline.
  • Adapt the curated-defaults reload test to the disclosure (P2) - After this test resets both Effort and Speed and reloads, moreOpen initializes false and their rows are unmounted. The test immediately requests the Effort help button without opening More settings, causing the reported required E2E failure. Open the disclosure after reload before retaining the existing inheritance and help assertions, as the other affected suites already do.
  • Explain or restore the original intent of Decision-model availability without chat models - feat(plugins): add decision models with per-agent selection #152237: Decision models are selected independently of chat models, including when no chat provider is configured; the new visibility predicate does not preserve that case.

Findings

  • [P2] Keep decision-only catalogs eligible for the Defaults section — ui/src/pages/model-providers/view.tsx:166-168
  • [P2] Initialize the disclosure without adding a forbidden untrack call — ui/src/pages/model-providers/default-models-view.tsx:522-524
  • [P2] Adapt the curated-defaults reload test to the disclosure — ui/src/e2e/curated-settings-defaults.e2e.test.ts:215-218

Provenance

  • Decision-model availability without chat models changes intended behavior without addressing why it exists (feat(plugins): add decision models with per-agent selection #152237: Decision models are selected independently of chat models, including when no chat provider is configured; the new visibility predicate does not preserve that case.)
Agent review details

How this fits together

The Models page projects Gateway provider capabilities, credentials, catalogs, and configuration into setup controls that invoke the existing sign-in and configuration owners.

flowchart TD
A[Provider plugin metadata] --> B[Gateway capabilities and catalogs]
B --> C[Models page projection]
C --> D[Inline provider catalog]
D --> E[Existing connection dialogs]
E --> B
C --> F[Defaults and agent status]
Loading

Technical review

Best possible solution:

Keep the catalog and existing owners while preserving decision-only setup, removing the forbidden untrack call, and adapting affected disclosure tests.

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

Source inspection establishes the decision-only visibility failure, and head CI reports the matching picker timeout; no target code or tests were executed during this review.

Is this the best way to solve the issue?

Reusing the provider grouping, catalog grid, and existing login owner is appropriate; the visibility predicate must include the independent decision-model catalog.

Full review comments:

  • [P2] Keep decision-only catalogs eligible for the Defaults section — ui/src/pages/model-providers/view.tsx:166-168
    When models.list returns models: [] and decisionModels: [{ provider: "typesafe", id: "jev-latest", name: "Jev" }] with no saved defaults, this predicate returns false. The entire Defaults section, including More settings and the Decision model picker, disappears, so users cannot configure the independent decision role without first configuring an unrelated chat model. This contradicts the contract in feat(plugins): add decision models with per-agent selection #152237 and explains the head CI timeout in decision-model-settings.e2e.test.ts:48. Include available decision models in section eligibility and preserve the test's save/clear behavior through the disclosure.
    Confidence: 1
  • [P2] Initialize the disclosure without adding a forbidden untrack call — ui/src/pages/model-providers/default-models-view.tsx:522-524
    This adds an untrack call to a file with zero allowance in config/control-ui-untrack-baseline.txt. scripts/check-control-ui-controllers.mts counts these calls and rejects increases, so the introduced source cannot satisfy that required guard. Express initialization through a supported signal derivation that preserves the user's expansion choice; do not increase the shrink-only baseline.
    Confidence: 0.99
  • [P2] Adapt the curated-defaults reload test to the disclosure — ui/src/e2e/curated-settings-defaults.e2e.test.ts:215-218
    After this test resets both Effort and Speed and reloads, moreOpen initializes false and their rows are unmounted. The test immediately requests the Effort help button without opening More settings, causing the reported required E2E failure. Open the disclosure after reload before retaining the existing inheritance and help assertions, as the other affected suites already do.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 450441b90403.

Provenance checked

  • Provider catalog and connection entry changes intended behavior with a stated reason (improve(ui): rebuild the Connect provider dialogs on one dialog layout #191367: The previous dialog consolidated connection methods and skipped redundant API-key steps; this PR explains moving discovery onto the page while retaining those operations.)
  • Agent model selection during sign-in keeps the original intent (08a2623: First sign-in selects a model only for an agent without a configured primary and preserves an operator's existing choice.)
  • Defaults presentation changes intended behavior with a stated reason (fd35382: The settings previously formed one compact row list; this PR explicitly chooses progressive disclosure to reduce first-run clutter.)
  • Installed-agent discovery status changes intended behavior with a stated reason (fix: show installed agent discovery failures and recovery #153693: Installed-agent rows expose canonical discovery failures and recovery; this PR deliberately makes default-enabled, unconfigured apps neutral while retaining recovery guidance.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test ui/src/pages/model-providers
  • pnpm test:ui:e2e ui/src/e2e/decision-model-settings.e2e.test.ts ui/src/e2e/curated-settings-defaults.e2e.test.ts
  • pnpm check:control-ui-controllers
  • pnpm tsgo:ui
  • git diff --check

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 08a2623 adds ui/src/pages/model-providers/login-controller.ts:211 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 08a26231f426; files: ui/src/pages/model-providers/login-controller.ts)
  • Peter Steinberger: Raw commit 40f1279 adds ui/src/pages/model-providers/login-controller.ts:249 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 40f1279c8e9d; files: ui/src/pages/model-providers/login-controller.ts)
  • Vyctor H. Brzezowski: Raw commit 21d44cf adds ui/src/pages/model-providers/login-view.tsx:295 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 21d44cf768fe; files: ui/src/pages/model-providers/login-view.tsx)

PR surface

Source +305, Tests -27. Total +278 across 49 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 16 692 387 +305
Tests 33 147 174 -27
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 49 839 561 +278

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Useful setup improvement with a limited decision-model configuration regression and focused validation repairs.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦞 diamond lobster and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: Useful setup improvement with a limited decision-model configuration regression and focused validation repairs.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦞 diamond lobster and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 22, 2026, 7:36 AM ET / 12:36 UTC.

obviyus and others added 2 commits November 22, 2026 18:13
- Defaults (which own the listing error and Retry) show once any provider has saved credentials, not only once a model is listed.
- A settings-search link to the model defaults opens More settings.
- More settings derives its initial state without untrack and stays open once opened.
- Tests follow the folded defaults and the catalog connect link.

Co-authored-by: obviyus <[email protected]>
- Settings search lands on model, effort and speed; those rows stay visible, so in-app hash links need no disclosure logic.
- More settings folds fallback, utility and decision models.

Co-authored-by: obviyus <[email protected]>
@obviyus

obviyus commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Updated connected-state captures for head fa79c43: effort and speed stay visible, More settings folds fallback, utility and decision models. after connected after connected mobile

obviyus and others added 2 commits November 22, 2026 19:02
Resolve the catalog sign-in onto the new login-sign-in owner (#203478); update its recovery e2e to the catalog connect flow.

Co-authored-by: obviyus <[email protected]>
- Decision-model choices keep the defaults section; for a new user it sits below the catalog and installed agents.
- Restores the decision-model e2e to its original no-chat-model fixture.

Co-authored-by: obviyus <[email protected]>
@obviyus
obviyus merged commit 31fe57d into main Nov 22, 2026
128 of 129 checks passed
@obviyus
obviyus deleted the redesign-model-providers branch November 22, 2026 14:00
@obviyus

obviyus commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Landed in 31fe57d. A new user now lands on a Connect a provider catalog: popular providers, search, and one Connect button per row. Connect starts the provider's only way in directly. Unset defaults and the amber warnings for unconfigured apps are gone. Returning users see Defaults (Model, effort and speed, plus More settings) with the model the agent actually uses, then Providers, then Installed agents and Add a provider. Proof: an isolated Gateway on a fresh profile, OpenCode browser sign-in → MiniMax M3 → chat reply, the fake-key error path, and before/after screenshots in the body.

vincentkoc added a commit that referenced this pull request Nov 22, 2026
…203063

* origin/main:
  fix: show the actual error when release preparation fails (#203502)
  improve(ui): lead the Models page with an inline provider catalog (#203485)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 23, 2026
…enclaw#203485)

## Problem

A new user who opens **Settings → Models** gets a page that does not say what to do. Critique of the old page on a fresh profile (no model, no credentials):

- The only action is an "Add account" button in an "AI setup" card. The user has no account yet, and the button opens a modal list of more than 100 providers, sorted from "Abliteration".
- "AI setup", "Set up a model" and an amber "Model required" all say the same thing.
- A "Couldn't load models from acp-opencode" error shows on every fresh install. `acp-opencode` is an internal id, and the user never set it up.
- Seven empty, mostly disabled default-model controls appear before anything can be chosen. On mobile that is about 700 px.
- Installed agents shows OpenCode with an amber "Models unavailable", plus a list of five apps that are not installed.
- "Provider access" is an empty section with a heading and no rows.
- After a browser sign-in, "Model: Select a model" reads as "nothing chosen", but the agent already uses the model it signed in to.

## What changed

The providers are now the page. The design follows the catalog rows from openclaw#202515 and openclaw#202531 (`plugin-catalog-results--rows`, `PluginCatalogGrid`, `CatalogDiscoverySearch`). It adds no new row, header or facts framework.

**New user**
- The page leads with **Connect a provider**: popular providers (the plugins that set `onboardingFeatured`: OpenAI, Anthropic, Google, Copilot, OpenRouter, xAI and Meta), a search over every provider, and "Show all N providers". Each row has a quiet line that names the ways to connect ("Sign in with browser · API key") and one **Connect** button. All rows use the same button, so the actions line up in one column.
- **Connect** starts the provider's only way in directly: the API key form, or the single browser sign-in (OpenCode, for example). When there is a choice, it opens the existing method dialog on that provider. The dialog no longer has a catalog step on this page. The method step hides "Accounts available to this agent" when there are none.
- "Find local models" (previously "On this Gateway") is in the catalog header.
- The defaults stay hidden until something can be chosen. When only a decision model can be chosen, they sit below the catalog. The listing error about providers the user never set up is gone.
- Installed agents: an app that is on by default and lists no models gets a neutral "Installed" status, not an amber warning. Missing apps are named only when none is installed.

**Returning user**
- **Defaults for all agents** shows **Model** with a sentence that names the model the agent really uses ("main uses MiniMax M3, set on the agent."). Effort and speed stay visible. Fallback, utility and decision models are behind **More settings**, which opens on its own when one of them is set.
- **Providers** (previously "Provider access"): the existing expandable provider rows. The filter shows only above six providers.
- Installed agents, then **Add a provider**: the same catalog. Providers that are already connected say "Connected" and still offer Connect, to add another account.
- Listing errors name providers by display name ("OpenCode (ACP)", not `acp-opencode`). A failure that only the installed-agent row owns no longer shows twice.

**Gateway**: `providerCapabilities[].featured` marks onboarding-featured providers. The field is additive and optional.

### Product decisions (Fable consulted)

- **Defaults hidden for a new user.** Seven disabled controls give the user nothing to do. The section shows as soon as any default is set or any model is available.
- **Popular plus "Show all"**, not 100 rows. Search always covers every provider.
- **The effective model is shown, not written.** Sign-in sets the agent's own model and does not change the global default (`login-controller`: "never replacing the operator's choice"). The default applies to every agent, so writing it on sign-in would change other agents. The default stays the one owner of the global choice. The row names the agent's model when the two differ.
- **The global decision model stays reachable without a chat model** (local review finding). If decision models are available but nothing is set up, a new user sees the defaults *below* the catalog and installed agents, so the catalog stays the first action.
- **Listing errors stay visible.** The defaults section, which owns the listing error and Retry, shows as soon as any provider has saved credentials, even when listing fails (local review finding).
- **Defaults stay above Providers for returning users.** Provider data loads after config. When Providers was rendered above Defaults, the arrival of that data moved an open default-model picker and closed it (`model-providers-progressive.e2e`). The connected provider still sits directly under one compact Model row.

### Removed
- The "AI setup" readiness card, its `ModelProviderConnectAction` use on this page, and the "Add account" button in the page header.
- The catalog step of the picker dialog on this page (`/settings/model-setup` still uses it).
- The empty "Provider access" state and the unused copy: `readiness.*` (except `signedInNoModels`), `emptyTitle` and `emptySubtitle`.
- The CSS for `.model-providers__setup` and `.model-providers__agents-missing`.

## Evidence

All captures come from an isolated Gateway in this worktree. HOME is a scratch directory and the environment has no ambient keys.

| | Before | After |
|---|---|---|
| New user, desktop | ![before new](https://github.com/user-attachments/assets/87a68adb-d89d-46f0-8f9a-c78099a83693) | ![after new](https://github.com/user-attachments/assets/420d0276-f720-4ce4-8081-4dcdb6380efe) |
| New user, 390 px | ![before new mobile](https://github.com/user-attachments/assets/853be883-810c-42fc-97f7-6b6d7055ee7c) | ![after new mobile](https://github.com/user-attachments/assets/8ec6963c-5162-46d9-abdb-76f0317c12b9) |
| Connected (OpenCode), desktop | ![before connected](https://github.com/user-attachments/assets/ef3fca3b-bc2c-4a0f-ad31-6647bbec2176) | ![after connected](https://github.com/user-attachments/assets/5f90e242-6b59-4884-8826-26b1e6108c58) |
| Connected, 390 px | ![before connected mobile](https://github.com/user-attachments/assets/2b9c28dc-a583-4155-a5d6-5efd3f03a537) | ![after connected mobile](https://github.com/user-attachments/assets/d8965e3f-8972-4f7b-b52d-aea03a9dc88e) |
| Connect flow | ![before picker](https://github.com/user-attachments/assets/decc4ac3-64aa-41f3-aa32-7109d6963106) | ![after methods](https://github.com/user-attachments/assets/1c08f321-125f-40ab-8fdb-a35a6aa16235) |

Head E2E on the real Gateway:
1. New user → catalog → OpenCode **Connect** → browser device-code sign-in in the signed-in browser → "MiniMax M3 is ready for your agent" → chat "Reply with exactly the word: pineapple" → reply `pineapple`.
2. Anthropic **Connect** → API key dialog → fake key → "API key saved, but the provider didn't accept it. Authentication failed. Enter a different key." The key was then removed through "Remove saved access" on the provider row.

![API key error path](https://github.com/user-attachments/assets/6ffd9ca4-c5cd-4984-9dd4-85f11b27f9dc)

Tests:
- `ocx test ui/src/pages/model-providers ui/src/pages/model-setup`: 48 files, 469 tests passed
- Mocked browser e2e: the 40 files that touch this page, plus `curated-settings-defaults`, `decision-model-settings` and `chat-model-controls`. All pass except `model-setup-headings` and `chat-composer-redesign`, which also fail on the merge base c99d69c (MAIN-ALSO). `model-setup-headings` passes after merging main.
- `pnpm tsgo:ui`, oxlint and oxfmt on the changed files, `pnpm lint:ui:styles` and `pnpm ui:i18n:verify`: clean.
- `pnpm ui:check-performance`: same 2 violations as the merge base c99d69c: largest CSS gzip (58587 B, file unchanged by this PR) and chat boot JS requests (21). Total CSS gzip 344926 B, under the 344948 B ceiling. The CSS for this page shrank (−18 lines); the catalog reuses `plugins.css`

Not run locally: the real-Gateway e2e files whose connect selectors changed (`provider-browser-login*`, `model-add-provider-to-chat`, `model-provider-remove-in-use` and `model-setup-provider-errors`). The manual head E2E above covers the same flows.

Co-authored-by: Ayaan Zaidi <[email protected]>
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 clawsweeper:intake:feature Preliminary submission classification; full source review pending. gateway Gateway runtime security-sensitive-changed size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant