diff options
| author | Tommaso Sciortino <[email protected]> | 2025-07-07 15:01:59 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-07 22:01:59 +0000 |
| commit | 357546a2aac918702f6ebfa4a97bd95ccd614e5d (patch) | |
| tree | 27a7bc0967c0177533d2eb61989bc5bd26326833 /packages/cli/src/gemini.tsx | |
| parent | aa10ccba713d49bef6bf474bfd72c0852e3da611 (diff) | |
Initialize MCP tools once at start up instead of every time we auth. (#3483)
Diffstat (limited to 'packages/cli/src/gemini.tsx')
| -rw-r--r-- | packages/cli/src/gemini.tsx | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/packages/cli/src/gemini.tsx b/packages/cli/src/gemini.tsx index 11ae1505..39d3bbe3 100644 --- a/packages/cli/src/gemini.tsx +++ b/packages/cli/src/gemini.tsx @@ -115,15 +115,7 @@ export async function main() { setMaxSizedBoxDebugging(config.getDebugMode()); - // Initialize centralized FileDiscoveryService - config.getFileService(); - if (config.getCheckpointingEnabled()) { - try { - await config.getGitService(); - } catch { - // For now swallow the error, later log it. - } - } + await config.initialize(); if (settings.merged.theme) { if (!themeManager.setActiveTheme(settings.merged.theme)) { @@ -133,12 +125,11 @@ export async function main() { } } - const memoryArgs = settings.merged.autoConfigureMaxOldSpaceSize - ? getNodeMemoryArgs(config) - : []; - // hop into sandbox if we are outside and sandboxing is enabled if (!process.env.SANDBOX) { + const memoryArgs = settings.merged.autoConfigureMaxOldSpaceSize + ? getNodeMemoryArgs(config) + : []; const sandboxConfig = config.getSandbox(); if (sandboxConfig) { if (settings.merged.selectedAuthType) { |
