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:
parent
0d6678936f
commit
bc298e47ca
1 changed files with 6 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue