Skip to content

Commit 7514cf9

Browse files
aibrahim-oaicodex
andcommitted
codex: fix CI failure on PR #15150
Switch the remaining TUI login restriction callsite to the explicit client path so codex-tui builds after removing the no-client auth wrapper. Co-authored-by: Codex <noreply@openai.com>
1 parent 4dfbc8a commit 7514cf9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

codex-rs/tui/src/lib.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ use codex_core::CodexAuth;
1313
use codex_core::INTERACTIVE_SESSION_SOURCES;
1414
use codex_core::RolloutRecorder;
1515
use codex_core::ThreadSortKey;
16+
use codex_core::auth::AuthConfig;
1617
use codex_core::auth::AuthMode;
18+
use codex_core::auth::enforce_login_restrictions_with_client;
1719
use codex_core::check_execpolicy_for_warnings;
1820
use codex_core::config::Config;
1921
use codex_core::config::ConfigBuilder;
@@ -452,7 +454,15 @@ pub async fn run_main(
452454
}
453455

454456
#[allow(clippy::print_stderr)]
455-
if let Err(err) = enforce_login_restrictions(&config) {
457+
if let Err(err) = enforce_login_restrictions_with_client(
458+
&AuthConfig {
459+
codex_home: config.codex_home.clone(),
460+
auth_credentials_store_mode: config.cli_auth_credentials_store_mode,
461+
forced_login_method: config.forced_login_method,
462+
forced_chatgpt_workspace_id: config.forced_chatgpt_workspace_id.clone(),
463+
},
464+
create_client(),
465+
) {
456466
eprintln!("{err}");
457467
std::process::exit(1);
458468
}

0 commit comments

Comments
 (0)