Answer: For the bare CLI, set the CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING environment variable to true when running the command; for the SDK, set enable_file_checkpointing=True (Python) or enableFileCheckpointing: true (TypeScript) on the resumed session. Status: Confirmed Entry: tool/claude-code/troubleshooting/file-rewinding-not-enabled-error Revision: 1 Digest: sha256:d70e4d3c12736f45 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:02:44Z Last changed: 2026-11-13T03:02:44Z Last verified: 2026-11-20T12:16:36Z Next check: 2026-11-21T12:16:36Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of CLI environment variable | CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING | [1] | 2026-11-20 CLI solution command | CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING=true claude -p --resume --rewind-files | [1] | 2026-11-20 Python option | enable_file_checkpointing=True | [1] | 2026-11-20 TypeScript option | enableFileCheckpointing: true | [1] | 2026-11-20 Sources: [1] Anthropic. "Rewind file changes with checkpointing". https://code.claude.com/docs/en/agent-sdk/file-checkpointing.md Role: primary. Accessed: 2026-11-20T12:16:36Z Quote: "The SDK sets the `CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING` environment variable internally" (Supports: CLI environment variable) Quote: "CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING=true claude -p --resume --rewind-files " (Supports: CLI solution command) Quote: "set `enable_file_checkpointing=True` (Python)" (Supports: Python option) Quote: "`enableFileCheckpointing: true` (TypeScript)" (Supports: TypeScript option) Published: 2026-11-20T03:01:08Z Snapshot SHA-256: 004c69ad606b2e96872840ecf1a1bb63068e55c29a488d351ba2d38fba3ca760 (captured 2026-11-14T12:12:09Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-14T12:12:11Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:16:36Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:16:36Z Last attempt: 2026-11-20T12:16:36Z Notes and limitations: Extracted automatically from a single official source (section ""File rewinding is not enabled" error"). Related: https://latestn.com/tool/claude-code/troubleshooting/find-plugin-on-disk How do I find where a Claude Code plugin is installed on disk? https://latestn.com/tool/claude-code/troubleshooting/fix-500-internal-server-error How do I fix the Claude Code "API Error: 500 Internal server error"? https://latestn.com/tool/claude-code/troubleshooting/fix-auto-compact-thrashing How do I resolve auto-compaction thrashing errors in Claude Code? https://latestn.com/tool/claude-code/troubleshooting/extension-not-detected How do I troubleshoot when Claude Code's Chrome extension is not detected? https://latestn.com/tool/claude-code/troubleshooting/fast-mode-requirements What are the requirements to use fast mode in Claude Code? https://latestn.com/tool/claude-code/troubleshooting/feature-flag-fetching-disabled Which Claude Code features stop working when feature-flag fetching is disabled by an environment variable? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:02:44Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/troubleshooting/file-rewinding-not-enabled-error/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/troubleshooting/file-rewinding-not-enabled-error POST: https://latestn.com/dispute/tool/claude-code/troubleshooting/file-rewinding-not-enabled-error with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/troubleshooting/file-rewinding-not-enabled-error?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I fix the 'File rewinding is not enabled' error in Claude Code? Revision 1, last verified 2026-11-20T12:16:36Z. https://latestn.com/tool/claude-code/troubleshooting/file-rewinding-not-enabled-error (accessed 2026-11-21T10:00:30Z). @misc{LatestN_tool_claude_code_troubleshooting_file_rewinding_not_enabled_error_r1, title = {How do I fix the 'File rewinding is not enabled' error in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/troubleshooting/file-rewinding-not-enabled-error}}, note = {Revision 1; digest sha256:d70e4d3c12736f45; last verified 2026-11-20T12:16:36Z; accessed 2026-11-21T10:00:30Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/troubleshooting/file-rewinding-not-enabled-error