[BUG] Checkpoints cannot be restored
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Version: 2.0.76
Suddenly I am unable to rewind code. The only options I get are to rewind the conversation. If I select a checkpoint far enough back, in this case christmas day morning, then it allows rewinding no problem. Something happened to change the way the checkpoints are saved since that time. I didn't change anything in settings, in fact they are all still the default.
Rewind
Confirm you want to restore to the point before you sent this message:
│ in a separate claude code session rewinding has become impossible. I've created this new session to test if rewinding is │ possible here. so if you can make a very simple change to the code like adding a print statement to main.dart I can check if │ it's possible to rewind to that. │ (37s ago)
The conversation will be forked. The code will be unchanged.
❯ 1. Restore conversation 2. Never mind
What Should Happen?
It should show this allowing code to be restored:
Rewind
Confirm you want to restore to the point before you sent this message:
The conversation will be forked. The code will be restored +20 -29 in main.dart and 2 other files.
❯ 1. Restore code and conversation 2. Restore conversation 3. Restore code 4. Never mind
⚠ Rewinding does not affect files edited manually or via bash.
Error Messages/Logs
Steps to Reproduce
1 .Create a brand new claude session in any project 2. Ask him to make any simple change like adding a print statement 3. Use /rewind and select a checkpoint 4. There will be no option to restore the code, only the conversation
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
2.0.76
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
No response
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/14002
- https://github.com/anthropics/claude-code/issues/8850
- https://github.com/anthropics/claude-code/issues/10095
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
It's not a duplicate issue. I've been working with Claude and on analysing my .jsonl files he found the issue. It literally happened at GMT+7 1:30 pm 25th December 2025. This is what he found:
Root Cause Analysis - Checkpoint Rewind Failure
Summary
I've identified the exact cause of the checkpoint rewind failure. This is a server-side change that affected all users starting at approximately 2025-12-25 13:30 GMT+7.
Timeline of the Bug
Before Dec 25, 13:30 GMT+7: ✅ Checkpoints work
- Backup data stored inline in session JSONL files
trackedFileBackupscontains:{"backupFileName": null, "version": 1, ...}
After Dec 25, 13:30 GMT+7: ❌ Checkpoints broken
- Backup data stored as external file references
trackedFileBackupscontains:{"backupFileName": "ae91e7fb3576a6b8@v2", "version": 1, ...}- External backup files ARE created in
~/.claude/file-history/{sessionId}/ - But rewind functionality doesn't read these external files
Technical Details
When examining session JSONL files:
Working checkpoint (Dec 25, 12:58):
{
"type": "file-history-snapshot",
"snapshot": {
"trackedFileBackups": {
"lib/main.dart": {
"backupFileName": null,
"version": 1,
"backupTime": "2025-12-25T13:00:30.642Z"
}
}
},
"isSnapshotUpdate": true
}
Broken checkpoint (Dec 25, 13:30 onwards):
{
"type": "file-history-snapshot",
"snapshot": {
"trackedFileBackups": {
"lib/main.dart": {
"backupFileName": "36df1dac6388d763@v1",
"version": 1,
"backupTime": "2025-12-26T04:49:31.341Z"
}
}
},
"isSnapshotUpdate": false
}
Evidence
-
External backup files DO exist:
ls ~/.claude/file-history/5afd7661-9243-46ee-b913-4144170fb584/ # Shows: 36df1dac6388d763@v1 (contains actual Dart code) -
Session files correctly reference them:
- The session JSONL contains the correct
backupFileNamevalue - The files are in the correct session-specific directory
- The session JSONL contains the correct
-
But rewind shows:
The conversation will be forked. The code will be unchanged.
Reproduction
This affects ALL users and ALL projects for checkpoints created after Dec 25 13:30 GMT+7:
- Create any checkpoint after Dec 25, 13:30 GMT+7
- Attempt to
/rewindto that checkpoint - Result: "The code will be unchanged" despite file edits being made
The Bug
The rewind functionality was not updated to handle external backup file references. When backupFileName is not null, Claude Code should:
- Look in
~/.claude/file-history/{sessionId}/ - Read the file named in
backupFileName - Restore that content
Currently, it appears to only work when backupFileName: null (inline storage).
System Info
- Version: 2.0.76
- Platform: macOS
- Installation: npm global (
/opt/homebrew/bin/claude) - Auto-updates: enabled
- Binary last modified: 2025-12-23 14:30:50
Suggested Fix
The rewind code needs to be updated to:
- Check if
backupFileNameis null (inline) or has a value (external reference) - If external reference, read from
~/.claude/file-history/{sessionId}/{backupFileName} - Apply that file content during rewind
This is likely a simple oversight when the external backup storage feature was deployed.
I have the same problem.
same issue
Same issue
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.