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/ui/hooks/slashCommandProcessor.ts | |
| parent | ea63a8401e6558bdd67d556812ed065b4bb07e9e (diff) | |
Make checkpoints configurable in settings.json (#1251)
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/slashCommandProcessor.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts index ee7b55cb..8195f005 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts @@ -647,7 +647,7 @@ Add any other context about the problem here. description: 'resume from conversation checkpoint. Usage: /resume [tag]', completion: async () => { - const geminiDir = config?.getGeminiDir(); + const geminiDir = config?.getProjectTempDir(); if (!geminiDir) { return []; } @@ -805,14 +805,14 @@ Add any other context about the problem here. }, ]; - if (config?.getCheckpointEnabled()) { + if (config?.getCheckpointingEnabled()) { commands.push({ name: 'restore', description: 'restore a tool call. This will reset the conversation and file history to the state it was in when the tool call was suggested', action: async (_mainCommand, subCommand, _args) => { - const checkpointDir = config?.getGeminiDir() - ? path.join(config.getGeminiDir(), 'checkpoints') + const checkpointDir = config?.getProjectTempDir() + ? path.join(config.getProjectTempDir(), 'checkpoints') : undefined; if (!checkpointDir) { |
