Make checkpoints configurable in settings.json (#1251)

This commit is contained in:
Louis Jimenez 2025-06-20 00:39:15 -04:00 committed by GitHub
parent ea63a8401e
commit 6c67618624
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 50 additions and 21 deletions

View file

@ -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 {