From 8eb8b160476e48678b76de8077bf1a94a23cc12d Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 9 Mar 2026 17:31:38 +0000 Subject: [PATCH] fix(adapters/gemini-local): downgrade missing API key to info level MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Gemini CLI supports OAuth login via `gemini auth login` which stores credentials locally without setting any env vars. The previous warn-level check on missing GEMINI_API_KEY caused false alarms when CLI-based OAuth was used. The hello probe that follows is the real auth authority — if auth is actually broken, it will catch it and report appropriately. Co-Authored-By: Claude Opus 4.6 --- packages/adapters/gemini-local/src/server/test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/adapters/gemini-local/src/server/test.ts b/packages/adapters/gemini-local/src/server/test.ts index b7762af8..b60a0f55 100644 --- a/packages/adapters/gemini-local/src/server/test.ts +++ b/packages/adapters/gemini-local/src/server/test.ts @@ -113,9 +113,9 @@ export async function testEnvironment( } else { checks.push({ code: "gemini_api_key_missing", - level: "warn", - message: "No Gemini API key was detected. Gemini runs may fail until auth is configured.", - hint: "Set GEMINI_API_KEY or GOOGLE_API_KEY in adapter env/shell, run `gemini auth` / `gemini auth login`, or set GOOGLE_GENAI_USE_GCA=true for Google account auth.", + level: "info", + message: "No explicit API key detected. Gemini CLI may still authenticate via `gemini auth login` (OAuth).", + hint: "If the hello probe fails with an auth error, set GEMINI_API_KEY or GOOGLE_API_KEY in adapter env, or run `gemini auth login`.", }); }