From 9b4c800597585ea11dffb33a23632a0a574d79cc Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Thu, 12 Mar 2026 09:08:17 -0600 Subject: [PATCH] fix: The REPL .authenticate command works from within sessions, agents, and roles with pre-configured models --- src/repl/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 452a0fd..1bfb529 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -428,7 +428,8 @@ pub async fn run_repl_command( None => println!("Usage: .model "), }, ".authenticate" => { - let client = init_client(config, None)?; + let current_model = config.read().current_model().clone(); + let client = init_client(config, Some(current_model))?; if !client.supports_oauth() { bail!( "Client '{}' doesn't either support OAuth or isn't configured to use it (i.e. uses an API key instead)",