Repository navigation
feat(onboarding): unified empty-state with provider icons, websites, and recommended installs - #109681
Conversation
There was a problem hiding this comment.
💡 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 ?? []), |
There was a problem hiding this comment.
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 👍 / 👎.
e0ed14e to
128e4a8
Compare
There was a problem hiding this comment.
💡 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".
| empty: { | ||
| title: "Empfohlene Installationen", | ||
| intro: | ||
| "Es wurde kein bestehender KI-Zugriff erkannt. Installieren Sie eines dieser Tools und prüfen Sie dann erneut.", |
There was a problem hiding this comment.
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 👍 / 👎.
|
Codex review: needs real behavior proof before merge. Reviewed July 17, 2026, 3:25 AM ET / 07:25 UTC. Summary 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.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review findings
Review detailsBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e01027dd28a8. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +561, Tests +544, Docs +2, Config +1, Other +427. Total +1535 across 69 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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
Review history (1 earlier review cycle)
|
There was a problem hiding this comment.
💡 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".
| "id": "pi", | ||
| "label": "Pi", | ||
| "hint": "Open-source coding agent", | ||
| "website": "https://pi.dev/", | ||
| "icon": "https://cdn.simpleicons.org/pi" |
There was a problem hiding this comment.
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 👍 / 👎.
|
Merged via squash.
|
…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
…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
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