mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 15:31:27 +00:00
Refactor the logic for deciding whether to launch a browser into config (#4622)
This commit is contained in:
parent
97cf26ec53
commit
5066bc5384
5 changed files with 10 additions and 6 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue