From 749c79f63352e8e85820ae1fb71cb840dccf9df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JiayuWang=28=E7=8E=8B=E5=98=89=E5=AE=87=29?= <151589547+JiayuuWang@users.noreply.github.com> Date: Tue, 7 Apr 2026 07:18:46 +0800 Subject: [PATCH] fix: correct autoCheckpoint config documentation in 08-checkpoints (#39) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The autoCheckpoint setting does not exist in Claude Code's settings schema. Checkpointing is automatic and built-in — every user prompt creates a checkpoint. Replace the incorrect config example with the actual cleanupPeriodDays setting, which controls retention period. Fixes #18 --- 08-checkpoints/README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/08-checkpoints/README.md b/08-checkpoints/README.md index e49ecd3..24306f8 100644 --- a/08-checkpoints/README.md +++ b/08-checkpoints/README.md @@ -207,15 +207,17 @@ Since checkpoints are created automatically, you can focus on your work without ## Configuration -You can toggle automatic checkpoints in your settings: +Checkpoints are a built-in default behavior in Claude Code and do not require any configuration to enable. Every user prompt automatically creates a checkpoint. + +The only checkpoint-related setting is `cleanupPeriodDays`, which controls how long sessions and checkpoints are retained: ```json { - "autoCheckpoint": true + "cleanupPeriodDays": 30 } ``` -- `autoCheckpoint`: Enable or disable automatic checkpoint creation on every user prompt (default: `true`) +- `cleanupPeriodDays`: Number of days to retain session history and checkpoints (default: `30`) ## Limitations @@ -233,8 +235,8 @@ Checkpoints have the following limitations: **Solution**: - Check if checkpoints were cleared -- Verify that `autoCheckpoint` is enabled in your settings - Check disk space +- Ensure `cleanupPeriodDays` is set high enough (default: 30 days) ### Rewind Failed