Skip to content

fix(setup): validate auth secret for selected provider#75

Merged
vignesh07 merged 1 commit into
mainfrom
fix/22-auth-choice-validation
Feb 11, 2026
Merged

fix(setup): validate auth secret for selected provider#75
vignesh07 merged 1 commit into
mainfrom
fix/22-auth-choice-validation

Conversation

@vignesh07

Copy link
Copy Markdown
Owner

Fixes #22.

If a user selects an API-key based authChoice (e.g. gemini-api-key) but leaves the secret blank, OpenClaw may fall back to its default auth choice, which looks like the wizard "reverted" their selection.

This PR fails fast with a 400 and a clear error if a required secret is missing.

pnpm lint passes.

@vignesh07 vignesh07 merged commit d57f7c9 into main Feb 11, 2026
1 check passed
@vignesh07 vignesh07 deleted the fix/22-auth-choice-validation branch February 11, 2026 05:15
k7cfo pushed a commit to k7cfo/railclaw that referenced this pull request Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: /setup wizard doesn't persist model provider selection (reverts to OpenAI - Codex Auth)

1 participant