Skip to content

feat(onboarding): unified empty-state with provider icons, websites, and recommended installs - #109681

Merged
steipete merged 5 commits into
mainfrom
feat/local-models-ws-a
Jul 17, 2026
Merged

steipete merged 5 commits into
mainfrom
feat/local-models-ws-a

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #109228

What Problem This Solves

When setup detects no AI access, each surface dead-ends differently — CLI prints a bare note, macOS shows hardcoded English copy, web shows nothing; no surface can show provider logos or download links because the wire carries none.

Why This Change Was Made

This is additive data unification over the existing single detector/wire: optional icon+website on providerAuthChoices → ProviderAuthChoiceMetadata → candidates/manual/auth options → gateway schema (no protocol bump; new Gateways always emit, older clients unaffected).

It adds a bundled presentation catalog at scripts/lib/recommended-tool-installs.json with 9 verified tools: Ollama, LM Studio, Claude Code, Codex CLI, Pi, OpenCode, Gemini CLI, Kimi Code, and Grok Build. The catalog is surfaced as recommendedInstalls in the detect result. CLI renders a localized recommendations note; web renders icon cards + links with icons served through the gateway catalog-icon proxy. The proxy extends #109510's route: authenticated and allowlisted to manifest/catalog-owned URLs only, with the same SSRF, MIME, and SVG hardening. macOS decodes the new fields and replaces hardcoded empty-state copy with wire-driven AsyncImage cards while retaining bundled-SVG and SF Symbol fallbacks.

User Impact

"Nothing detected" onboarding now shows the same actionable, branded install suggestions on CLI, macOS, and web/Linux.

Evidence

  • Focused Vitest groups all green: model-setup 18/18, icon-loader + plugins 20/20, gateway method 23/23, icon proxy 11/11, management service 29/29, plus catalog, wire, and CLI suites.
  • macOS debug build passed.
  • OnboardingAISetupTests: 83/83.
  • SwiftLint: 0 findings.
  • Control UI i18n verification passed.
  • Full remote check-changed lanes=all exited 0.
  • Autoreview clean; accepted findings fixed.

@steipete
steipete requested a review from a team as a code owner July 17, 2026 05:41
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: macos App: macos app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts commands Command implementations extensions: lmstudio extensions: ollama size: XL maintainer Maintainer-authored PR labels Jul 17, 2026
@steipete steipete self-assigned this Jul 17, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e0ed14ea81

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

...result.candidates,
...result.manualProviders,
...(result.authOptions ?? []),
...(result.recommendedInstalls ?? []),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid fetching hidden recommendation icons

When detection returns any candidates or sign-in options, renderEmptyState renders no recommendation cards, but this eligible-icon set still includes every recommendedInstalls entry. Since setup detection always populates that catalog, opening Model Setup with existing AI access causes the browser/gateway to fetch the external recommendation icon catalog even though those icons are never displayed. Please include recommendation icons only when the empty state is actually renderable.

Useful? React with 👍 / 👎.

@steipete
steipete force-pushed the feat/local-models-ws-a branch from e0ed14e to 128e4a8 Compare July 17, 2026 06:06

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c6a42c99be

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/src/i18n/locales/de.ts Outdated
Comment on lines +1795 to +1798
empty: {
title: "Empfohlene Installationen",
intro:
"Es wurde kein bestehender KI-Zugriff erkannt. Installieren Sie eines dieser Tools und prüfen Sie dann erneut.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Isolate generated Control UI locale artifacts

On normal PR branches (anything other than main or release/*), adding these generated locale snapshots together with source changes makes the CI scope detector fail before tests run: assertControlUiGeneratedArtifactsIsolated in scripts/ci-changed-scope.mjs rejects any mix of ui/src/i18n/locales/<non-en>.ts / .i18n/* with source paths, and this commit also changes ui/src/i18n/locales/en.ts, model-setup code, and other source files. Please drop the generated Control UI locale artifacts from this source PR and let the locale refresh workflow own them, or isolate them in its own generated PR.

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. feature: ✨ showcase ClawSweeper spotlight: unusually compelling feature idea for maintainer attention. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Jul 17, 2026
@clawsweeper

clawsweeper Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 17, 2026, 3:25 AM ET / 07:25 UTC.

Summary
The PR adds unified empty-state install recommendations, provider icon and website metadata, and corresponding CLI, macOS, Control UI, gateway, protocol, plugin-manifest, documentation, and test support.

PR surface: Source +561, Tests +544, Docs +2, Config +1, Other +427. Total +1535 across 69 files.

Reproducibility: yes. from the exact-head source: begin with no detected AI access, follow the Pi, OpenCode, or Gemini CLI recommendation, and check again; detection reports the installed tool as unavailable rather than offering an activatable route.

Review metrics: 2 noteworthy metrics.

  • Bundled recommendation policy: 9 tools added. Each entry becomes a core-curated first-run recommendation and must remain usable, accurate, and maintained.
  • Plugin presentation API: 2 optional fields added. Adding icon and website to providerAuthChoices creates new external plugin compatibility expectations.

Stored data model
Persistent data-model change detected: unknown-data-model-change: packages/gateway-protocol/src/schema/openclaw.test.ts, unknown-data-model-change: packages/gateway-protocol/src/schema/openclaw.ts, vector/embedding metadata: packages/gateway-protocol/src/schema/openclaw.test.ts, vector/embedding metadata: src/plugins/management-service.test.ts, vector/embedding metadata: src/plugins/recommended-tool-installs.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🧂 unranked krab
Patch quality: 🦐 gold shrimp
Result: blocked until real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Remove or replace recommendations that cannot produce an activatable setup route.
  • [P1] Add redacted exact-head CLI output and macOS and Control UI screenshots or recordings.
  • Obtain maintainer confirmation for catalog and plugin API ownership.

Proof guidance:

  • [P1] Needs real behavior proof before merge: Tests and CI are supplemental only; add redacted exact-head CLI output plus macOS and Control UI screenshots or recordings showing the empty state, links, icon fallbacks, and check-again result. After updating the PR body, review should refresh automatically; otherwise a maintainer can comment @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Risk before merge

  • [P1] The two new providerAuthChoices fields may become a permanent external plugin API before ownership, lifecycle, and compatibility expectations are explicitly approved.
  • [P1] The new URL-shaped catalog proxy route remains safe only while exact manifest/catalog allowlisting and the inherited SSRF and image-sanitization path stay coupled across future changes.
  • [P1] Fresh-install and mixed-version upgrade behavior across gateway, CLI, macOS, and Control UI has test coverage but no real exact-head user-flow proof.

Maintainer options:

  1. Derive recommendations before merge (recommended)
    Replace the static catalog with provider/plugin-owned entries filtered to setup routes that OpenClaw can activate or verify, then add exact-head real behavior proof.
  2. Accept a maintained core catalog
    Land the catalog only after a maintainer explicitly owns its inclusion policy, plugin API contract, upgrade behavior, and security invariants.
  3. Defer the catalog portion
    Pause or split the PR so the useful presentation transport can proceed without prematurely committing core to vendor curation.

Next step before merge

  • [P1] A maintainer must settle the catalog and plugin API ownership direction, while the contributor must fix the unusable recommendation path and provide real multi-surface proof.

Maintainer decision needed

  • Question: Should OpenClaw core permanently curate a third-party installation catalog and expose icon and website as providerAuthChoices API, or should recommendations be derived from activatable provider/plugin-owned metadata?
  • Rationale: The choice establishes ongoing vendor-curation policy and a public plugin contract; repository architecture guidance favors owner-plugin metadata, but accepting a core catalog is a legitimate product decision only maintainers can make.
  • Likely owner: steipete — The recent onboarding work and related credential-less setup proposal make this the strongest available routing candidate for the product choice.
  • Options:
    • Derive from activatable metadata (recommended): Have provider or plugin owners declare recommendation presentation and eligibility, and render only routes setup can activate or verify.
    • Approve the core catalog: Keep the nine-tool bundled catalog with an explicit owner, inclusion criteria, update policy, and tests preventing unusable recommendations.
    • Split the feature: Land the additive icon and website transport separately and defer the curated recommendation catalog until its ownership is settled.

Security
Cleared: The diff adds no dependency, workflow, secret, or permission changes, and the icon proxy remains authenticated, exact-allowlisted, SSRF-guarded, bounded, and image-sanitized.

Review findings

  • [P1] Recommend only tools setup can actually use — scripts/lib/recommended-tool-installs.json:32
Review details

Best possible solution:

Derive empty-state recommendations from provider or plugin metadata that declares a setup route OpenClaw can actually activate or verify, keep remote artwork behind the exact allowlisted proxy, and demonstrate the final CLI, macOS, and Control UI flows on the exact head.

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

Yes, from the exact-head source: begin with no detected AI access, follow the Pi, OpenCode, or Gemini CLI recommendation, and check again; detection reports the installed tool as unavailable rather than offering an activatable route.

Is this the best way to solve the issue?

No. A separate core catalog can drift from actual setup capabilities; provider/plugin-owned metadata filtered by activation eligibility is the narrower and more maintainable solution.

Full review comments:

  • [P1] Recommend only tools setup can actually use — scripts/lib/recommended-tool-installs.json:32
    The new empty-state catalog recommends Pi, OpenCode, and Gemini CLI, but the setup detector classifies those installations as unavailable and cannot activate or verify them. Users who follow these cards return to the same unavailable state after “Check again”; limit recommendations to usable setup routes or provide a supported provider/auth activation path. This is a late discovery on the same head reviewed in the prior cycle.
    Confidence: 0.98
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Label changes

Label changes:

  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🧂 unranked krab, so this older rating label is no longer current.

Label justifications:

  • P2: This is a valuable onboarding improvement with a concrete but bounded recovery-loop defect and no current-runtime emergency.
  • merge-risk: 🚨 compatibility: The PR expands the documented plugin manifest and setup-result contracts across clients without settled permanent ownership.
  • merge-risk: 🚨 security-boundary: The PR adds a new authenticated gateway route that accepts encoded remote icon URLs and depends on exact allowlisting and fetch hardening.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: Tests and CI are supplemental only; add redacted exact-head CLI output plus macOS and Control UI screenshots or recordings showing the empty state, links, icon fallbacks, and check-again result. After updating the PR body, review should refresh automatically; otherwise a maintainer can comment @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed

PR surface:

Source +561, Tests +544, Docs +2, Config +1, Other +427. Total +1535 across 69 files.

View PR surface stats
Area Files Added Removed Net
Source 22 622 61 +561
Tests 14 549 5 +544
Docs 1 2 0 +2
Config 1 1 0 +1
Generated 0 0 0 0
Other 31 577 150 +427
Total 69 1751 216 +1535

What I checked:

Likely related people:

  • steipete: The related credential-less onboarding proposal and this cross-surface implementation show direct involvement in the current onboarding direction beyond an isolated file edit. (role: recent onboarding area contributor; confidence: medium; commits: 1336c8803e2c, 9281a894663c, 9f96b3fa9f15; files: src/system-agent/setup-inference.ts, src/commands/onboard-guided.ts, apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift)
  • Patrick-Erichsen: The merged plugin catalog icon work established the current authenticated gateway proxy and Control UI icon-loading pattern extended by this PR. (role: introduced adjacent icon-proxy behavior; confidence: high; commits: 55bb6cfa2ec4; files: src/gateway/plugin-icon-http.ts, src/plugins/management-service.ts, ui/src/pages/plugins/icon-loader.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.
Review history (1 earlier review cycle)
  • reviewed 2026-07-17T06:45:16.138Z sha 9f96b3f :: needs real behavior proof before merge. :: none

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9f96b3fa9f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +32 to +36
"id": "pi",
"label": "Pi",
"hint": "Open-source coding agent",
"website": "https://pi.dev/",
"icon": "https://cdn.simpleicons.org/pi"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Drop recommendations that setup cannot use

When a user with no detected AI access follows this recommendation, installing Pi (and the adjacent OpenCode/Gemini CLI entries) does not lead to a usable setup path: detectSetupInference already classifies installed Pi/OpenCode as unavailable because they are not reusable guided-setup inference routes, and it filters Gemini CLI into unavailableCandidates because it cannot be safely auto-tested (src/system-agent/setup-inference.ts:379-424). This makes the new empty-state catalog send users into an install → check again → unavailable loop; keep the install recommendations to choices that this setup flow can actually activate, or point these entries at supported provider auth/API paths instead.

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot removed the rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. label Jul 17, 2026
@clawsweeper clawsweeper Bot added the rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. label Jul 17, 2026
@steipete
steipete merged commit 6ac1597 into main Jul 17, 2026
243 of 263 checks passed
@steipete
steipete deleted the feat/local-models-ws-a branch July 17, 2026 08:01
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 18, 2026
…and recommended installs (openclaw#109681)

* feat(onboarding): unify setup recommendations

* fix(control-ui): proxy model setup icons

* fix(onboarding): refresh landing artifacts

* chore(ui): sync translated i18n catalogs

* chore(ui): keep generated locale artifacts on the refresh workflow
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
…and recommended installs (openclaw#109681)

* feat(onboarding): unify setup recommendations

* fix(control-ui): proxy model setup icons

* fix(onboarding): refresh landing artifacts

* chore(ui): sync translated i18n catalogs

* chore(ui): keep generated locale artifacts on the refresh workflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos app: web-ui App: web-ui commands Command implementations docs Improvements or additions to documentation extensions: lmstudio extensions: ollama feature: ✨ showcase ClawSweeper spotlight: unusually compelling feature idea for maintainer attention. gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant