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

@ -638,7 +638,7 @@ export const useGeminiStream = (
useEffect(() => {
const saveRestorableToolCalls = async () => {
if (!config.getCheckpointEnabled()) {
if (!config.getCheckpointingEnabled()) {
return;
}
const restorableToolCalls = toolCalls.filter(
@ -649,8 +649,8 @@ export const useGeminiStream = (
);
if (restorableToolCalls.length > 0) {
const checkpointDir = config.getGeminiDir()
? path.join(config.getGeminiDir(), 'checkpoints')
const checkpointDir = config.getProjectTempDir()
? path.join(config.getProjectTempDir(), 'checkpoints')
: undefined;
if (!checkpointDir) {