From 75de924cc0e8fc3b9988fcc007dc05028d265045 Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Sat, 14 Mar 2026 14:17:24 -0600 Subject: [PATCH] Auth fix --- codex-rs/tui/src/onboarding/onboarding_screen.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/codex-rs/tui/src/onboarding/onboarding_screen.rs b/codex-rs/tui/src/onboarding/onboarding_screen.rs index 1175912a03..7a97003b3e 100644 --- a/codex-rs/tui/src/onboarding/onboarding_screen.rs +++ b/codex-rs/tui/src/onboarding/onboarding_screen.rs @@ -553,7 +553,12 @@ async fn handle_auth_command( if let Some(auth_widget) = onboarding_screen.auth_widget_mut() { match result { Ok(LoginAccountResponse::Chatgpt { login_id, auth_url }) => { - auth_widget.apply_chatgpt_login_started(login_id, auth_url); + auth_widget.apply_chatgpt_login_started(login_id, auth_url.clone()); + if let Err(err) = webbrowser::open(&auth_url) { + auth_widget.show_login_request_error(format!( + "Failed to open browser for {auth_url}: {err}" + )); + } } Ok(response) => { auth_widget.show_login_request_error(format!(