We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2658cc commit bd34a42Copy full SHA for bd34a42
1 file changed
packages/cli/src/config/config.ts
@@ -430,8 +430,6 @@ export async function loadCliConfig(
430
const { cwd = process.cwd(), projectHooks } = options;
431
const debugMode = isDebugMode(argv);
432
433
- const loadedSettings = loadSettings(cwd);
434
-
435
if (argv.sandbox) {
436
process.env['GEMINI_SANDBOX'] = 'true';
437
}
@@ -886,7 +884,7 @@ export async function loadCliConfig(
886
884
hooks: settings.hooks || {},
887
885
disabledHooks: settings.hooksConfig?.disabled || [],
888
projectHooks: projectHooks || {},
889
- onModelChange: (model: string) => saveModelChange(loadedSettings, model),
+ onModelChange: (model: string) => saveModelChange(loadSettings(cwd), model),
890
onReload: async () => {
891
const refreshedSettings = loadSettings(cwd);
892
return {
0 commit comments