diff options
| author | Tommaso Sciortino <[email protected]> | 2025-06-07 11:12:30 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-07 11:12:30 -0700 |
| commit | 6ea4479064a4275390ef96216f5d68bd27f65ae7 (patch) | |
| tree | 439d88ee4a665562774c339d34dea121812fcf84 /packages/cli/src/gemini.tsx | |
| parent | 680f4cdd61ab718d946afe0fd0d23828106bfda1 (diff) | |
Push model-switching logging into loadCliConfig (#815)
Diffstat (limited to 'packages/cli/src/gemini.tsx')
| -rw-r--r-- | packages/cli/src/gemini.tsx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/packages/cli/src/gemini.tsx b/packages/cli/src/gemini.tsx index 309768f2..72f4429e 100644 --- a/packages/cli/src/gemini.tsx +++ b/packages/cli/src/gemini.tsx @@ -66,18 +66,11 @@ export async function main() { process.exit(1); } - const { config, modelWasSwitched, originalModelBeforeSwitch, finalModel } = - await loadCliConfig(settings.merged, geminiIgnorePatterns); + const config = await loadCliConfig(settings.merged, geminiIgnorePatterns); // Initialize centralized FileDiscoveryService await config.getFileService(); - if (modelWasSwitched && originalModelBeforeSwitch) { - console.log( - `[INFO] Your configured model (${originalModelBeforeSwitch}) was temporarily unavailable. Switched to ${finalModel} for this session.`, - ); - } - if (settings.merged.theme) { if (!themeManager.setActiveTheme(settings.merged.theme)) { // If the theme is not found during initial load, log a warning and continue. @@ -176,9 +169,8 @@ async function loadNonInteractiveConfig( ...settings.merged, coreTools: nonInteractiveTools, }; - const nonInteractiveConfigResult = await loadCliConfig( + return await loadCliConfig( nonInteractiveSettings, config.getGeminiIgnorePatterns(), ); - return nonInteractiveConfigResult.config; } |
