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 month 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

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/14002
  2. https://github.com/anthropics/claude-code/issues/15403

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

github-actions[bot] avatar Dec 27 '25 07:12 github-actions[bot]

This issue has been automatically closed as a duplicate of #14002.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] avatar Dec 30 '25 09:12 github-actions[bot]

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.

github-actions[bot] avatar Jan 06 '26 14:01 github-actions[bot]