Repository navigation
feat(onboarding): featured provider tier in interactive picker - #80798
Conversation
|
Codex review: needs real behavior proof before merge. Summary Reproducibility: not applicable. This is a new onboarding UX and plugin-manifest contract PR, not a bug report with a failing current-main reproduction path; the relevant proof should be a real Real behavior proof Next step before merge Security Review findings
Review detailsBest possible solution: Keep the manifest-driven onboarding direction under maintainer review, remove unrelated lockfile/generated churn, update the public manifest docs, and require redacted real terminal or recording proof of Do we have a high-confidence way to reproduce the issue? Not applicable. This is a new onboarding UX and plugin-manifest contract PR, not a bug report with a failing current-main reproduction path; the relevant proof should be a real Is this the best way to solve the issue? No. The manifest-driven approach is plausible and matches the plugin-agnostic boundary, but the current branch is not merge-ready while it drops lockfile policy metadata, leaves the public manifest docs behind, and lacks real behavior proof. Full review comments:
Overall correctness: patch is incorrect Security concerns:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against ce695d7a323c. |
b331cab to
182dba1
Compare
182dba1 to
8688698
Compare
* temp * fix pnpm lock conflict * fix(onboarding): clear oxlint findings in auth-choice-prompt
…law#80798) * temp * fix pnpm lock conflict * fix(onboarding): clear oxlint findings in auth-choice-prompt
…law#80798) * temp * fix pnpm lock conflict * fix(onboarding): clear oxlint findings in auth-choice-prompt
…law#80798) * temp * fix pnpm lock conflict * fix(onboarding): clear oxlint findings in auth-choice-prompt
Summary
Replace the flat 40+ row provider picker in
openclaw onboardwith a tieredlayout:
onboardingFeatured: truemanifest field. Remaining groups go under
More…. New plugins can opt inwithout touching core.
anthropic,google,openai,xai.OpenAI API Key Backup(openai-codex-api-key) is hidden from theinteractive picker via
assistantVisibility: "manual-only". Its CLI flag(
--openai-api-key) and runtime resolution are unchanged; it just stopscluttering the picker, since it writes the same credential as
OpenAI API Key.More…menus sort case-insensitive by label.Untitled.mov
Background
The flat picker is dominated by long-tail providers. Most first-run users want
one of the four featured plugins; hiding the rest behind
More…shortens theinteractive flow without changing the long-tail UX.
Why manifest-driven
AGENTS.mdcore rule: "Core stays plugin-agnostic. No bundled ids/defaults/policy in core when manifest/registry/capability contracts work." The featured
set is declared on
providerAuthChoicesentries in each plugin manifest, notas a hard-coded list in
src/commands/.Code surface
src/plugins/manifest.ts— new optionalonboardingFeatured?: booleanonPluginManifestProviderAuthChoice, threaded through the JSON normalizer.src/plugins/provider-auth-choices.ts,src/flows/provider-flow.ts,src/commands/auth-choice-options.ts,src/commands/auth-choice-options.static.ts— propagate the field throughmetadata → flow contribution →
AuthChoiceOption.src/commands/auth-choice-prompt.ts— rewritespromptAuthChoiceGroupedasa 2-tier prompter: featured groups → method picker, or
More…→ searchablefull list with
Back. Falls back to the original flat behavior when nogroup is featured. Case-insensitive label sort throughout.
extensions/{anthropic,google,openai,xai}/openclaw.plugin.json— opt in tothe featured tier via
onboardingFeatured: trueon one entry per group.extensions/openai/openclaw.plugin.json—openai-codex-api-keyentrygets
assistantVisibility: "manual-only".Verification
pnpm tsgo— clean.pnpm build— clean.pnpm test src/commands/auth-choice.test.ts src/commands/auth-choice-options.test.ts— 20/20 pass.
pnpm test extensions/openai/openclaw.plugin.test.ts extensions/openai/openai-codex-provider.test.ts extensions/openai/openai-provider.test.ts extensions/openai/setup-api.test.ts— 60/60 pass.
WizardPrompter):Anthropic | Google | OpenAI | xAI (Grok) | More… | Skip for nowin alphabetical case-insensitive order.
OpenAI auth methodwithChatGPT Login,ChatGPT Device Pairing,OpenAI API Key,Back. NoBackuprow.More… → OpenAI CodexopensOpenAI Codex auth methodwith the twovisible codex methods (Backup hidden).
More… → Backreturns to the featured tier.Notes for reviewers
pnpm-lock.yaml(~489 line churn) andextensions/canvas/src/host/a2ui/.bundle.hash— incidental from localbuilds. Will drop in a fixup before merge.
temp); will retitle to aconventional subject before landing.