From 45706990dfb36f278238c9f35b2b5a45db0ba175 Mon Sep 17 00:00:00 2001 From: Shirone Date: Sun, 25 Jan 2026 20:04:16 +0100 Subject: [PATCH] fix: Also check hasApiKey for CLI authentication Address CodeRabbit review comment - API keys stored in CLI credentials file should also be detected as valid authentication. Co-Authored-By: Claude Opus 4.5 --- apps/server/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/server/src/index.ts b/apps/server/src/index.ts index 12da84a9..4bd496bc 100644 --- a/apps/server/src/index.ts +++ b/apps/server/src/index.ts @@ -133,7 +133,8 @@ const BOX_CONTENT_WIDTH = 67; const hasCliAuth = indicators.hasStatsCacheWithActivity || (indicators.hasSettingsFile && indicators.hasProjectsSessions) || - (indicators.hasCredentialsFile && indicators.credentials?.hasOAuthToken); + (indicators.hasCredentialsFile && + (indicators.credentials?.hasOAuthToken || indicators.credentials?.hasApiKey)); if (hasCliAuth) { logger.info('✓ Claude Code CLI authentication detected');