Skip binary CLI relaunch (#26261)

This commit is contained in:
ruomeng
2026-04-30 13:48:23 -04:00
committed by GitHub
parent 9a98b0e56c
commit 0f1077076e
4 changed files with 71 additions and 2 deletions
+5 -1
View File
@@ -75,7 +75,11 @@ async function getMemoryNodeArgs(): Promise<string[]> {
}
async function run() {
if (!process.env['GEMINI_CLI_NO_RELAUNCH'] && !process.env['SANDBOX']) {
if (
!process.env['GEMINI_CLI_NO_RELAUNCH'] &&
!process.env['SANDBOX'] &&
process.env['IS_BINARY'] !== 'true'
) {
// --- Lightweight Parent Process / Daemon ---
// We avoid importing heavy dependencies here to save ~1.5s of startup time.
+5 -1
View File
@@ -125,7 +125,11 @@ export function getNodeMemoryArgs(isDebugMode: boolean): string[] {
);
}
if (process.env['GEMINI_CLI_NO_RELAUNCH']) {
if (
process.env['IS_BINARY'] === 'true' ||
process.env['GEMINI_CLI_NO_RELAUNCH'] ||
process.env['SANDBOX']
) {
return [];
}