fix(cli): not show update avaialble messages when running gemini-cli locally (#4052)

This commit is contained in:
Yuki Okita
2025-07-18 09:44:45 +09:00
committed by GitHub
parent ca07b5b0c4
commit 584a50a342
2 changed files with 22 additions and 0 deletions

View File

@@ -10,6 +10,11 @@ import { getPackageJson } from '../../utils/package.js';
export async function checkForUpdates(): Promise<string | null> {
try {
// Skip update check when running from source (development mode)
if (process.env.DEV === 'true') {
return null;
}
const packageJson = await getPackageJson();
if (!packageJson || !packageJson.name || !packageJson.version) {
return null;