From 5066bc538431482d3e44d1d932909e5a5bc6e69d Mon Sep 17 00:00:00 2001 From: Marat Boshernitsan Date: Mon, 21 Jul 2025 16:23:28 -0700 Subject: Refactor the logic for deciding whether to launch a browser into config (#4622) --- packages/cli/src/ui/hooks/useAuthCommand.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'packages/cli/src/ui/hooks/useAuthCommand.ts') diff --git a/packages/cli/src/ui/hooks/useAuthCommand.ts b/packages/cli/src/ui/hooks/useAuthCommand.ts index bb1d68a9..e57a11af 100644 --- a/packages/cli/src/ui/hooks/useAuthCommand.ts +++ b/packages/cli/src/ui/hooks/useAuthCommand.ts @@ -11,7 +11,6 @@ import { Config, clearCachedCredentialFile, getErrorMessage, - shouldAttemptBrowserLaunch, } from '@google/gemini-cli-core'; import { runExitCleanup } from '../../utils/cleanup.js'; @@ -60,7 +59,7 @@ export const useAuthCommand = ( settings.setValue(scope, 'selectedAuthType', authType); if ( authType === AuthType.LOGIN_WITH_GOOGLE && - (config.getNoBrowser() || !shouldAttemptBrowserLaunch()) + config.isBrowserLaunchSuppressed() ) { runExitCleanup(); console.log( -- cgit v1.2.3