claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Restore code and conversation - code is sometimes not restored

Open ajwrigley opened this issue 1 week ago • 1 comments

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

  1. Run claude on a large codebase
  2. Run a complex prompt that touches several files
  3. Double-tap escape and choose 'Restore code and conversation'
  4. Observe via git status that 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

ajwrigley avatar Dec 27 '25 07:12 ajwrigley