claude-code
claude-code copied to clipboard
[BUG] Restore code and conversation - code is sometimes not 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?
For 1-2 weeks, the "restore code and conversation" option does not completely restore the code.
From the feature's introduction until a week or two ago, it worked flawlessly. Then something changed, and now about 50% of the time the codebase is not fully restored. Unfortunately I can't pinpoint exactly what circumstances cause it to happen, or why some changes are restored but not others.
Maybe others with the issue can shed more light about exactly when and why it happens.
What Should Happen?
Code changes should be restored along with the conversation.
Error Messages/Logs
Steps to Reproduce
- Run claude on a large codebase
- Run a complex prompt that touches several files
- Double-tap escape and choose 'Restore code and conversation'
- Observe via
git statusthat many of the changes have not been reverted.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
2.0.76 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
No response