From d8221802059e463f35542cdcfe879c55451fdb3e Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Sat, 28 Mar 2026 11:57:01 -0600 Subject: [PATCH] fix: updated the error for unauthenticated oauth to include the REPL .authenticated command --- src/client/claude.rs | 2 +- src/client/gemini.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/claude.rs b/src/client/claude.rs index f6c29af..9c266b4 100644 --- a/src/client/claude.rs +++ b/src/client/claude.rs @@ -85,7 +85,7 @@ async fn prepare_chat_completions( let ready = oauth::prepare_oauth_access_token(client, &provider, self_.name()).await?; if !ready { bail!( - "OAuth configured but no tokens found for '{}'. Run: loki --authenticate {}", + "OAuth configured but no tokens found for '{}'. Run: 'loki --authenticate {}' or '.authenticate' in the REPL", self_.name(), self_.name() ); diff --git a/src/client/gemini.rs b/src/client/gemini.rs index 2be9c66..2a16395 100644 --- a/src/client/gemini.rs +++ b/src/client/gemini.rs @@ -111,7 +111,7 @@ async fn prepare_chat_completions( let ready = oauth::prepare_oauth_access_token(client, &provider, self_.name()).await?; if !ready { bail!( - "OAuth configured but no tokens found for '{}'. Run: loki --authenticate {}", + "OAuth configured but no tokens found for '{}'. Run: 'loki --authenticate {}' or '.authenticate' in the REPL", self_.name(), self_.name() ); @@ -181,7 +181,7 @@ async fn prepare_embeddings( let ready = oauth::prepare_oauth_access_token(client, &provider, self_.name()).await?; if !ready { bail!( - "OAuth configured but no tokens found for '{}'. Run: loki --authenticate {}", + "OAuth configured but no tokens found for '{}'. Run: 'loki --authenticate {}' or '.authenticate' in the REPL", self_.name(), self_.name() );