Skip to content

feat(onboarding): featured provider tier in interactive picker - #80798

Merged
sjf merged 3 commits into
mainfrom
feat/tiered-provider-onboarding
May 12, 2026
Merged

sjf merged 3 commits into
mainfrom
feat/tiered-provider-onboarding

Conversation

@sjf

@sjf sjf commented May 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Replace the flat 40+ row provider picker in openclaw onboard with a tiered
layout:

  • Featured tier lists plugins that opt in via a new onboardingFeatured: true
    manifest field. Remaining groups go under More…. New plugins can opt in
    without touching core.
  • Bundled featured plugins: anthropic, google, openai, xai.
  • OpenAI API Key Backup (openai-codex-api-key) is hidden from the
    interactive picker via assistantVisibility: "manual-only". Its CLI flag
    (--openai-api-key) and runtime resolution are unchanged; it just stops
    cluttering the picker, since it writes the same credential as
    OpenAI API Key.
  • Featured and 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 the
interactive flow without changing the long-tail UX.

Why manifest-driven

AGENTS.md core rule: "Core stays plugin-agnostic. No bundled ids/defaults/
policy in core when manifest/registry/capability contracts work." The featured
set is declared on providerAuthChoices entries in each plugin manifest, not
as a hard-coded list in src/commands/.

Code surface

  • src/plugins/manifest.ts — new optional onboardingFeatured?: boolean on
    PluginManifestProviderAuthChoice, 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 through
    metadata → flow contribution → AuthChoiceOption.
  • src/commands/auth-choice-prompt.ts — rewrites promptAuthChoiceGrouped as
    a 2-tier prompter: featured groups → method picker, or More… → searchable
    full list with Back. Falls back to the original flat behavior when no
    group is featured. Case-insensitive label sort throughout.
  • extensions/{anthropic,google,openai,xai}/openclaw.plugin.json — opt in to
    the featured tier via onboardingFeatured: true on one entry per group.
  • extensions/openai/openclaw.plugin.json — openai-codex-api-key entry
    gets assistantVisibility: "manual-only".

Verification

  • pnpm tsgo — clean.
  • pnpm build — clean.
  • Targeted tests:
    • 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.
  • Manual trace (scripted WizardPrompter):
    • Featured tier renders Anthropic | Google | OpenAI | xAI (Grok) | More… | Skip for now
      in alphabetical case-insensitive order.
    • Picking OpenAI opens OpenAI auth method with ChatGPT Login,
      ChatGPT Device Pairing, OpenAI API Key, Back. No Backup row.
    • More… → OpenAI Codex opens OpenAI Codex auth method with the two
      visible codex methods (Backup hidden).
    • More… → Back returns to the featured tier.

Notes for reviewers

  • The commit currently rolls in pnpm-lock.yaml (~489 line churn) and
    extensions/canvas/src/host/a2ui/.bundle.hash — incidental from local
    builds. Will drop in a fixup before merge.
  • Commit subject is still a placeholder (temp); will retitle to a
    conventional subject before landing.

@clawsweeper

clawsweeper Bot commented May 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

Summary
The PR adds a manifest-driven featured tier to the interactive provider auth picker, marks Anthropic/Google/OpenAI/xAI choices as featured, hides the OpenAI Codex API-key backup choice from interactive selection, and includes incidental lockfile/A2UI hash churn.

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 openclaw onboard run after the change.

Real behavior proof
Needs real behavior proof before merge: The PR body only lists tests and a scripted prompt trace; before merge it needs a redacted real openclaw onboard terminal run, screenshot, recording, copied live output, or log, then a PR-body update to trigger ClawSweeper re-review or @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, ask a maintainer to comment @clawsweeper re-review.

Next step before merge
The PR needs maintainer/contributor follow-up for protected-label review, real behavior proof, and removal of unrelated lockfile/generated churn; automation cannot supply the contributor’s real setup proof for them.

Security
Needs attention: The diff introduces a concrete supply-chain concern by removing lockfile override and patch metadata unrelated to the onboarding UI change.

Review findings

  • [P1] Restore the lockfile policy metadata — pnpm-lock.yaml:7
  • [P3] Document the featured manifest field — src/plugins/manifest.ts:484-488
Review details

Best 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 openclaw onboard.

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 openclaw onboard run after the change.

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:

  • [P1] Restore the lockfile policy metadata — pnpm-lock.yaml:7
    The branch removes the lockfile overrides, packageExtensionsChecksum, and patchedDependencies sections while pnpm-workspace.yaml still declares those policies. That drops patch hashes for dependencies such as @agentclientprotocol/claude-agent-acp and baileys, so frozen installs can resolve unpatched or different dependency code unrelated to onboarding.
    Confidence: 0.96
  • [P3] Document the featured manifest field — src/plugins/manifest.ts:484-488
    This adds onboardingFeatured as a new plugin manifest contract and the PR says new plugins can opt in, but docs/plugins/manifest.md does not document it in the providerAuthChoices reference. Please update the public plugin manifest docs with the new field.
    Confidence: 0.82

Overall correctness: patch is incorrect
Overall confidence: 0.91

Security concerns:

  • [high] Lockfile drops dependency patches and overrides — pnpm-lock.yaml:7
    The PR lockfile omits current-main override metadata, the package extension checksum, and patched dependency hashes while pnpm-workspace.yaml still declares those policies, which can bypass committed patches or break frozen installs.
    Confidence: 0.96

What I checked:

  • Live PR context: The live PR API shows this PR is open, contributor-authored, labeled maintainer, and currently at head 8688698 with no submitted human reviews. (8688698ed779)
  • Current main picker behavior: Current main uses a flat searchable Model/auth provider picker over all available auth groups, then a per-group method picker with Back. (src/commands/auth-choice-prompt.ts:20, 35ba1dea855f)
  • PR prompt change: The PR diff rewrites promptAuthChoiceGrouped to derive featured groups from onboardingFeatured, add a top-level More… branch, and fall back to the flat picker when no featured group exists. (src/commands/auth-choice-prompt.ts:32, 8688698ed779)
  • Current lockfile policy: Current main keeps workspace overrides in pnpm-workspace.yaml and matching overrides, packageExtensionsChecksum, and patchedDependencies metadata in pnpm-lock.yaml. (pnpm-lock.yaml:7, 35ba1dea855f)
  • PR lockfile drift: The PR diff deletes the lockfile override block, package-extension checksum, and patch hashes, including patch hashes for @agentclientprotocol/claude-agent-acp and baileys, while also changing dependency snapshots unrelated to onboarding UI. (pnpm-lock.yaml:7, 8688698ed779)
  • Manifest docs gap: The public providerAuthChoices reference lists existing fields through onboardingScopes, and repo search found no docs entry for onboardingFeatured. Public docs: docs/plugins/manifest.md. (docs/plugins/manifest.md:331, 35ba1dea855f)

Likely related people:

  • Shakker: Git blame/log show the current main auth-choice prompt and plugin manifest normalization surfaces were introduced or most recently carried by b348cdd, which covers the central picker and manifest files this PR changes. (role: current auth-choice and manifest area contributor; confidence: medium; commits: b348cdd1f1c2; files: src/commands/auth-choice-prompt.ts, src/commands/auth-choice-options.ts, src/plugins/manifest.ts)
  • pashpashpash: Git history shows recent adjacent OpenAI auth/default work in extensions/openai/openclaw.plugin.json, and the live PR requested this reviewer for the OpenAI manifest visibility portion. (role: recent OpenAI auth contributor and requested reviewer; confidence: medium; commits: 3b44dfc367af; files: extensions/openai/openclaw.plugin.json, src/commands/auth-choice-options.ts)

Remaining risk / open question:

  • The branch still includes dependency resolution changes and generated A2UI hash churn unrelated to the onboarding UI change.
  • No observed real terminal, recording, screenshot, copied live output, or redacted log proves the new interactive flow after the change.

Codex review notes: model gpt-5.5, reasoning high; reviewed against ce695d7a323c.

@sjf
sjf force-pushed the feat/tiered-provider-onboarding branch from b331cab to 182dba1 Compare May 11, 2026 23:19
@sjf
sjf force-pushed the feat/tiered-provider-onboarding branch from 182dba1 to 8688698 Compare May 11, 2026 23:30
@sjf sjf changed the title temp feat(onboarding): featured provider tier in interactive picker May 11, 2026
@sjf
sjf requested a review from pashpashpash May 11, 2026 23:43
@sjf
sjf merged commit 26b2c47 into main May 12, 2026
113 of 118 checks passed
@sjf
sjf deleted the feat/tiered-provider-onboarding branch May 12, 2026 00:09
steipete pushed a commit that referenced this pull request May 12, 2026
* temp

* fix pnpm lock conflict

* fix(onboarding): clear oxlint findings in auth-choice-prompt
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
…law#80798)

* temp

* fix pnpm lock conflict

* fix(onboarding): clear oxlint findings in auth-choice-prompt
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
…law#80798)

* temp

* fix pnpm lock conflict

* fix(onboarding): clear oxlint findings in auth-choice-prompt
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
…law#80798)

* temp

* fix pnpm lock conflict

* fix(onboarding): clear oxlint findings in auth-choice-prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant