{"version":"2.1.328","anchor":"sdk-file-checkpointing-helper-checks-both-env-vars","canonical_anchor":"sdk-file-checkpointing-helper-checks-both-env-vars","heading":"SDK file checkpointing still needs one setting on and the other off","tier":"notice","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/sdk-file-checkpointing-helper-checks-both-env-vars","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### SDK file checkpointing still needs one setting on and the other off\n\nFile checkpointing for the SDK is on only when `CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING` is set and `CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING` is not\n\n**What**\n\nFile checkpointing is how Claude Code keeps copies of files so that edits can be undone with `\/rewind`. When Claude Code is run through the SDK, the toolkit for building programs on top of it, checkpointing is turned on only when both of these are true:\n\n- `CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING` is set.\n\n- `CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING` is not set.\n\nBoth are environment variables, named values you set in your shell before starting Claude Code. This check was moved into one place in the code. The rule itself looks the same as before.\n\n**Why**\n\nIf you want checkpointing in an SDK session, set the first variable and make sure the second is not set.\n\n- Area: SDK\n- Names: `\/rewind`\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 0\/5\n- Scope: individual\n- Heads-up: no"}