Merge pull request #56 from gnanam1990/fix/gemini-auth-login-screen

fix: add CLAUDE_CODE_USE_GEMINI to is3P check to prevent login screen
This commit is contained in:
Kevin Codex
2026-04-02 00:11:07 +08:00
committed by GitHub

View File

@@ -116,7 +116,8 @@ export function isAnthropicAuthEnabled(): boolean {
isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK) ||
isEnvTruthy(process.env.CLAUDE_CODE_USE_VERTEX) ||
isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY) ||
isEnvTruthy(process.env.CLAUDE_CODE_USE_OPENAI)
isEnvTruthy(process.env.CLAUDE_CODE_USE_OPENAI) ||
isEnvTruthy(process.env.CLAUDE_CODE_USE_GEMINI)
// Check if user has configured an external API key source
// This allows externally-provided API keys to work (without requiring proxy configuration)