From bc298e47cabc80c00a08cef8828cff9c1a9b519a Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Tue, 19 Aug 2025 16:56:49 -0700 Subject: [PATCH] Fix: Sign in appear even if using other providers. (#2475) We shouldn't show the login screen when using other providers. --- codex-rs/tui/src/app.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/codex-rs/tui/src/app.rs b/codex-rs/tui/src/app.rs index ffb3d7ca..dd863c06 100644 --- a/codex-rs/tui/src/app.rs +++ b/codex-rs/tui/src/app.rs @@ -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,