diff options
| author | Yuki Okita <[email protected]> | 2025-07-18 09:44:45 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-18 00:44:45 +0000 |
| commit | 584a50a3422fc543a0f861cd946fa0403acc12f0 (patch) | |
| tree | 8e514baa322b2c8ed95526c269ddbb8845b6fcb7 /packages/cli/src/ui/utils/updateCheck.ts | |
| parent | ca07b5b0c41defb27d6b156faba356ab900ee092 (diff) | |
fix(cli): not show update avaialble messages when running gemini-cli locally (#4052)
Diffstat (limited to 'packages/cli/src/ui/utils/updateCheck.ts')
| -rw-r--r-- | packages/cli/src/ui/utils/updateCheck.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/cli/src/ui/utils/updateCheck.ts b/packages/cli/src/ui/utils/updateCheck.ts index 6be5effc..904a9890 100644 --- a/packages/cli/src/ui/utils/updateCheck.ts +++ b/packages/cli/src/ui/utils/updateCheck.ts @@ -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; |
