mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 12:40:44 +00:00
Make checkpoints configurable in settings.json (#1251)
This commit is contained in:
parent
ea63a8401e
commit
6c67618624
11 changed files with 50 additions and 21 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue