diff options
| author | Louis Jimenez <[email protected]> | 2025-06-20 00:39:15 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-20 00:39:15 -0400 |
| commit | 6c6761862427279455256e7c99cc45a2f17583ca (patch) | |
| tree | 533b652f88bef336c76992db34dd6d0a42a38413 /packages/cli/src/utils/cleanup.ts | |
| parent | ea63a8401e6558bdd67d556812ed065b4bb07e9e (diff) | |
Make checkpoints configurable in settings.json (#1251)
Diffstat (limited to 'packages/cli/src/utils/cleanup.ts')
| -rw-r--r-- | packages/cli/src/utils/cleanup.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/cli/src/utils/cleanup.ts b/packages/cli/src/utils/cleanup.ts index 1e483373..747bbf8e 100644 --- a/packages/cli/src/utils/cleanup.ts +++ b/packages/cli/src/utils/cleanup.ts @@ -6,10 +6,11 @@ import { promises as fs } from 'fs'; import { join } from 'path'; +import { getProjectTempDir } from '@gemini-cli/core'; export async function cleanupCheckpoints() { - const geminiDir = join(process.cwd(), '.gemini'); - const checkpointsDir = join(geminiDir, 'checkpoints'); + const tempDir = getProjectTempDir(process.cwd()); + const checkpointsDir = join(tempDir, 'checkpoints'); try { await fs.rm(checkpointsDir, { recursive: true, force: true }); } catch { |
