Move IdeClient.connect() to initializeApp(). (#8282)

This commit is contained in:
Tommaso Sciortino
2025-09-11 13:07:57 -07:00
committed by GitHub
parent 5237c37c81
commit ea2d551dd2
7 changed files with 32 additions and 58 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ import { homedir } from 'node:os';
import {
getErrorMessage,
isWithinRoot,
getIdeTrust,
ideContextStore,
} from '@google/gemini-cli-core';
import type { Settings } from './settings.js';
import stripJsonComments from 'strip-json-comments';
@@ -182,7 +182,7 @@ export function isWorkspaceTrusted(settings: Settings): boolean | undefined {
return true;
}
const ideTrust = getIdeTrust();
const ideTrust = ideContextStore.get()?.workspaceState?.isTrusted;
if (ideTrust !== undefined) {
return ideTrust;
}