fix: onboarding completes gracefully for pre-configured providers (closes #322) (#323)

OAuth/CLI-configured providers (openai-codex, copilot, nous) no longer blocked by onboarding wizard. 5 new tests, 758 total.
This commit is contained in:
Nathan Esquenazi
2026-04-12 13:22:48 -07:00
committed by GitHub
parent 2b21bb68b8
commit 2562567730
4 changed files with 67 additions and 2 deletions

View File

@@ -417,7 +417,11 @@ def apply_onboarding_setup(body: dict) -> dict:
base_url = _normalize_base_url(str(body.get("base_url") or ""))
if provider not in _SUPPORTED_PROVIDER_SETUPS:
raise ValueError("Unsupported provider for WebUI onboarding.")
# Unsupported providers (openai-codex, copilot, nous, etc.) are already
# configured via the CLI. Just mark onboarding as complete and let the
# user through — the agent is already set up, no further setup needed.
save_settings({"onboarding_completed": True})
return get_onboarding_status()
if not model:
raise ValueError("model is required")