mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-03 00:14:28 -07:00
fix(cli): use resolved sandbox state for auto-update check (#26285)
This commit is contained in:
@@ -68,13 +68,14 @@ export function handleAutoUpdate(
|
||||
info: UpdateObject | null,
|
||||
settings: LoadedSettings,
|
||||
projectRoot: string,
|
||||
isSandboxEnabled: boolean,
|
||||
spawnFn: typeof spawn = spawnWrapper,
|
||||
) {
|
||||
if (!info) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (settings.merged.tools.sandbox || process.env['GEMINI_SANDBOX']) {
|
||||
if (isSandboxEnabled) {
|
||||
updateEventEmitter.emit('update-info', {
|
||||
message: `${info.message}\nAutomatic update is not available in sandbox mode.`,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user