Repository navigation
improve(ui): lead the Models page with an inline provider catalog - #203485
Conversation
- 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]>
Co-authored-by: obviyus <[email protected]>
…talog Co-authored-by: obviyus <[email protected]>
|
🦞👀 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 changes before merge. What this changesThis 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.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 450441b90403. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +305, Tests -27. Total +278 across 49 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 22, 2026, 7:36 AM ET / 12:36 UTC. |
- 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]>
|
Updated connected-state captures for head fa79c43: effort and speed stay visible, More settings folds fallback, utility and decision models. |
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]>
|
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. |
…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 |  |  | | New user, 390 px |  |  | | Connected (OpenCode), desktop |  |  | | Connected, 390 px |  |  | | Connect flow |  |  | 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.  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]>


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):
acp-opencodeis an internal id, and the user never set it up.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
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.Returning user
acp-opencode). A failure that only the installed-agent row owns no longer shows twice.Gateway:
providerCapabilities[].featuredmarks onboarding-featured providers. The field is additive and optional.Product decisions (Fable consulted)
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.model-providers-progressive.e2e). The connected provider still sits directly under one compact Model row.Removed
ModelProviderConnectActionuse on this page, and the "Add account" button in the page header./settings/model-setupstill uses it).readiness.*(exceptsignedInNoModels),emptyTitleandemptySubtitle..model-providers__setupand.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.
Head E2E on the real Gateway:
pineapple.Tests:
ocx test ui/src/pages/model-providers ui/src/pages/model-setup: 48 files, 469 tests passedcurated-settings-defaults,decision-model-settingsandchat-model-controls. All pass exceptmodel-setup-headingsandchat-composer-redesign, which also fail on the merge base 31c9a9a (MAIN-ALSO).model-setup-headingspasses after merging main.pnpm tsgo:ui, oxlint and oxfmt on the changed files,pnpm lint:ui:stylesandpnpm 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 reusesplugins.cssNot run locally: the real-Gateway e2e files whose connect selectors changed (
provider-browser-login*,model-add-provider-to-chat,model-provider-remove-in-useandmodel-setup-provider-errors). The manual head E2E above covers the same flows.