fix: public load_auth() fn always called with include_env_var=true

This commit is contained in:
Michael Bolin
2025-08-07 13:59:54 -07:00
parent f74fe7af7b
commit d6f1585429
3 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ pub async fn run_login_with_api_key(
pub async fn run_login_status(cli_config_overrides: CliConfigOverrides) -> ! {
let config = load_config_or_exit(cli_config_overrides);
match load_auth(&config.codex_home, true) {
match load_auth(&config.codex_home) {
Ok(Some(auth)) => match auth.mode {
AuthMode::ApiKey => {
if let Some(api_key) = auth.api_key.as_deref() {