Fix: Sign in appear even if using other providers. (#2475)

We shouldn't show the login screen when using other providers.
This commit is contained in:
Ahmed Ibrahim
2025-08-19 16:56:49 -07:00
committed by GitHub
parent 0d6678936f
commit bc298e47ca

View File

@@ -652,6 +652,12 @@ fn should_show_onboarding(
}
fn should_show_login_screen(login_status: LoginStatus, config: &Config) -> bool {
// Only show the login screen for providers that actually require OpenAI auth
// (OpenAI or equivalents). For OSS/other providers, skip login entirely.
if !config.model_provider.requires_openai_auth {
return false;
}
match login_status {
LoginStatus::NotAuthenticated => true,
LoginStatus::AuthMode(method) => method != config.preferred_auth_method,