mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-04 00:44:05 -07:00
fix(cli): enable daemon relaunch in binary and bundle keytar (#26333)
This commit is contained in:
@@ -75,11 +75,7 @@ async function getMemoryNodeArgs(): Promise<string[]> {
|
||||
}
|
||||
|
||||
async function run() {
|
||||
if (
|
||||
!process.env['GEMINI_CLI_NO_RELAUNCH'] &&
|
||||
!process.env['SANDBOX'] &&
|
||||
process.env['IS_BINARY'] !== 'true'
|
||||
) {
|
||||
if (!process.env['GEMINI_CLI_NO_RELAUNCH'] && !process.env['SANDBOX']) {
|
||||
// --- Lightweight Parent Process / Daemon ---
|
||||
// We avoid importing heavy dependencies here to save ~1.5s of startup time.
|
||||
|
||||
|
||||
@@ -126,11 +126,7 @@ export function getNodeMemoryArgs(isDebugMode: boolean): string[] {
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
process.env['IS_BINARY'] === 'true' ||
|
||||
process.env['GEMINI_CLI_NO_RELAUNCH'] ||
|
||||
process.env['SANDBOX']
|
||||
) {
|
||||
if (process.env['GEMINI_CLI_NO_RELAUNCH']) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user