diff options
Diffstat (limited to 'packages/cli/src')
| -rw-r--r-- | packages/cli/src/gemini.tsx | 3 | ||||
| -rw-r--r-- | packages/cli/src/ui/hooks/useAuthCommand.ts | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/packages/cli/src/gemini.tsx b/packages/cli/src/gemini.tsx index ed0324c2..46d9dfce 100644 --- a/packages/cli/src/gemini.tsx +++ b/packages/cli/src/gemini.tsx @@ -37,7 +37,6 @@ import { logUserPrompt, AuthType, getOauthClient, - shouldAttemptBrowserLaunch, } from '@google/gemini-cli-core'; import { validateAuthMethod } from './config/auth.js'; import { setMaxSizedBoxDebugging } from './ui/components/shared/MaxSizedBox.js'; @@ -188,7 +187,7 @@ export async function main() { if ( settings.merged.selectedAuthType === AuthType.LOGIN_WITH_GOOGLE && - (config.getNoBrowser() || !shouldAttemptBrowserLaunch()) + config.isBrowserLaunchSuppressed() ) { // Do oauth before app renders to make copying the link possible. await getOauthClient(settings.merged.selectedAuthType, config); 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( |
