[BUG] Claude Code’s undo function in the chat only reverts the conversation; it does not revert any code changes.

Status Open
Reported on v2.1.220
Maintainer reply None cached
Activity 0 comments · opened Jul 31, 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?

Claude Code’s undo function in the chat only reverts the conversation; it does not revert any code changes.

What Should Happen?

The Rewind feature should only be available if it clearly reflects what it does. If it rewinds only the conversation, it should explicitly indicate that code changes are not reverted. Otherwise, rewinding should restore both the conversation and the workspace to the selected point so they remain in sync.

Error Messages/Logs

Steps to Reproduce

Using the Rewind feature in Claude Code only rewinds the chat history. Any code changes that were generated before the rewind remain in the project, causing the conversation state and the codebase to become out of sync.
Claude Code Desktop on Mac / Windows

Steps to Reproduce

  1. Ask Claude Code to modify or generate code.
  2. Verify that the code changes are applied.
  3. Use the Rewind feature to return to an earlier point in the conversation.
  4. Observe that the chat is restored to the previous state, but the generated code changes are not reverted.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.220

Platform

Other

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗