[BUG] Rewind offers to undo file deletions it cannot actually restore
Resolved 💬 4 comments Opened Mar 14, 2026 by andyrosa2 Closed Apr 13, 2026
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?
"Rewind code to here" appears unconditionally on every conversation turn, including turns where Claude deleted a file. Clicking rewind after such a turn does not restore the deleted file.
What Should Happen?
Rewind restores deleted files, or warns that it cannot.
Error Messages/Logs
Steps to Reproduce
Ask Claude to create a file
Ask Claude to delete it
Click the rewind button on step 2
Select "Rewind code to here"
The file is not restored
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.38 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗