diff options
| author | Marat Boshernitsan <[email protected]> | 2025-07-21 16:23:28 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-21 23:23:28 +0000 |
| commit | 5066bc538431482d3e44d1d932909e5a5bc6e69d (patch) | |
| tree | 9764872215257449486dc84c559f67ca307b6e9b /packages/cli/src/gemini.tsx | |
| parent | 97cf26ec5301f7b4552a5e89214a13e4b714b9eb (diff) | |
Refactor the logic for deciding whether to launch a browser into config (#4622)
Diffstat (limited to 'packages/cli/src/gemini.tsx')
| -rw-r--r-- | packages/cli/src/gemini.tsx | 3 |
1 files changed, 1 insertions, 2 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); |
