mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-30 23:14:32 -07:00
Skip binary CLI relaunch (#26261)
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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 [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user