#16626: fix: prompt onboarding auth selection when auth choice is blank
cli
commands
stale
size: M
Cluster:
AI Provider Enhancements
## Describe your changes
- Normalize onboarding auth-related CLI inputs so blank `--auth-choice` values are treated as unset.
- Ensure interactive onboarding still opens the model/auth provider prompt when auth choice is empty/whitespace, instead of skipping straight to channels.
- Add regression tests for option normalization, wizard auth prompting with blank auth choice, and CLI smoke coverage for blank auth choice forwarding.
## Screenshot or video (only for visual changes)
- N/A
## GitHub Issue Link (if applicable)
- https://github.com/openclaw/openclaw/issues/16579
## Testing Plan
- Explanation of why no additional tests are needed: Covered by targeted unit and e2e smoke tests in this PR.
- Unit Tests (JS and/or Python): `pnpm test src/commands/onboard-option-normalization.test.ts src/wizard/onboarding.test.ts`
- E2E Tests: `pnpm test:e2e src/cli/program.smoke.e2e.test.ts`
- Any manual testing needed?: Optional: run `openclaw onboard` and confirm provider/auth prompt appears before channel setup.
---
**Contribution License Agreement**
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.
Most Similar PRs
#22966: fix(onboard): error on unknown --auth-choice in non-interactive mode
by miloudbelarebia · 2026-02-21
69.1%
#18670: feat: add first-class Claude Code CLI auth path + CLI model UX hard...
by SmithLabsLLC · 2026-02-16
69.0%
#16388: Fix: Show model selector during onboarding for all auth choices
by saurav470 · 2026-02-14
67.6%
#23015: Onboard: store OpenAI auth in profiles instead of .env
by joshavant · 2026-02-21
67.1%
#16033: fix: add model configuration step to onboard command
by MisterGuy420 · 2026-02-14
66.9%
#22658: Fix onboard ignoring OPENCLAW_GATEWAY_TOKEN env var
by Clawborn · 2026-02-21
66.1%
#5622: fix(onboard): parse space-separated channel allowlist entries
by niemesrw · 2026-01-31
64.7%
#3591: CLI: add OpenAI-compatible endpoint auth choice
by surak · 2026-01-28
64.7%
#23026: Onboard: move volcengine/byteplus auth from .env to profiles
by joshavant · 2026-02-21
64.7%
#22105: feat(auth): add refreshable Anthropic OAuth login flow
by sauerdaniel · 2026-02-20
63.4%