[BUG] /rewind not working properly

Resolved 💬 20 comments Opened Oct 3, 2025 by rakafantino Closed Oct 13, 2025
💡 Likely answer: A maintainer (hackyon-anthropic, collaborator) responded on this thread — see the highlighted reply below.

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?

When I use the /rewind command and pick a point in the conversation history to go back to, I choose the 'code and conversation' option, but it seems the code is not rewinding. Also, all of my history is showing no code changes, even though I know that code changes obviously happened. but conversation is definately reverted tho

What Should Happen?

/rewind command should recover my previous conversation and code changes.

Error Messages/Logs

Steps to Reproduce

  1. executing /rewind command
  2. choosing one of any available chat history
  3. choosing code and conversation option.
  4. enter

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.5

Platform

Other

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

20 Comments

github-actions[bot] · 9 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/8667
  2. https://github.com/anthropics/claude-code/issues/8176
  3. https://github.com/anthropics/claude-code/issues/7742

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

gaozhitw · 9 months ago

I don't even get an option to restore "code and conversation." After selecting a checkpoint it immediately jumps back to conversation mode and only the messages are reverted — none of the code changes are restored.

hackyon-anthropic collaborator · 9 months ago

hey @gaozhitw - can you check that you've updated to the latest version (> v2.0.0)? It'd be helpful if you can show a quick screenshot of your Double Esc menu as well

hackyon-anthropic collaborator · 9 months ago

hey @rakafantino - any chance you can run claude -d2e 2> >(grep -i FileHistory > rewind.log) to get the logs while you try and reproduce the issue? you can check rewind.log first to make sure there's no sensitive info before sharing the logs

AdrielSantana · 9 months ago

@hackyon-anthropic

I'm on version 2.0.5 and I have the same problem.

I ran the command claude -d2e 2> >(grep -i FileHistory > rewind.log) to get the logs and then ran the rewind command. The generated log file has 0 bytes and nothing changed in the codebase

Here is the screenshot for the Double Esc menu

<img width="1563" height="1032" alt="Image" src="https://github.com/user-attachments/assets/04d93983-b4da-4468-8464-6583a12a3333" />

hackyon-anthropic collaborator · 9 months ago

Thanks @AdrielSantana. It looks like code restore hasn't been enabled in your claude at all. Can you use /config to see if you see Rewind code (checkpoints) true as an option?

The checkpointing feature is gated behind a feature/experiment flag, which is fetched from a remote server. It also possible that the flag fetch will fail if you have some special firewall or network configuration set up that blocks or otherwise proxies network traffic in a special way

AdrielSantana · 9 months ago

No options here, between im using the Vertex AI model, is it the problem?

with these variables

export CLAUDE_CODE_USE_VERTEX=1
export CLOUD_ML_REGION=global
export ANTHROPIC_VERTEX_PROJECT_ID=my-project-id
export VERTEX_REGION_CLAUDE_3_5_HAIKU=us-east5

<img width="865" height="627" alt="Image" src="https://github.com/user-attachments/assets/547aa050-b114-4180-bf22-5389d6df7d60" />

hackyon-anthropic collaborator · 9 months ago

Ah yes, it won't be available in Vertex/Bedrock for now. We're looking to remove the feature flag and enable it for Vertex/Bedrock sometime early/mid next week!

rakafantino · 9 months ago

Hey @hackyon-anthropic I'm AFK rn, but i'll give you the log as soon as i go back to my desk.

AdrielSantana · 9 months ago
Ah yes, it won't be available in Vertex/Bedrock for now. We're looking to remove the feature flag and enable it for Vertex/Bedrock sometime early/mid next week!

Thanks for the reply, im going to look forward to that next week

gaozhitw · 9 months ago
hey @gaozhitw - can you check that you've updated to the latest version (> v2.0.0)? It'd be helpful if you can show a quick screenshot of your Double Esc menu as well

Hello,

I am using version 2.0.5. Later I reviewed the follow-up discussion and confirmed that the /config command indeed did not show an option related to "checkpoints". After adjusting my network settings, I restarted and opened a new conversation, and the /rewind feature started working properly. Now /config shows the Rewind code (checkpoints) option, and rewinding restores the code as expected.

Thanks everyone for the guidance and the troubleshooting directions — they were very helpful to me.

yellow-umbrella-studio · 9 months ago

I dont have the /config or /rewind options? what can i do?

hackyon-anthropic collaborator · 9 months ago

The /config has been around for a very long time. Where are you running this?

4ever911 · 9 months ago

same here, no options. sometime it has, sometimes it doesnt.

hackyon-anthropic collaborator · 9 months ago

Please update to the latest version v2.0.14 and it should be there. Give it a spin when you get a chance!

peturgeorgievv · 9 months ago

not there, not sure why marked as completed?

<img width="727" height="172" alt="Image" src="https://github.com/user-attachments/assets/64a215b4-1b82-4102-897d-9a6730e369e9" />

<img width="939" height="352" alt="Image" src="https://github.com/user-attachments/assets/d0c66b3d-24f2-4a70-a610-a5e0b0e18572" />

hackyon-anthropic collaborator · 9 months ago

hey @peturgeorgievv - there's already been several unrelated issues here, so closed to not keep adding different issues into the same ticket. There was one user who had an issue with the code not restoring for them, some users who didn't see it before but see it now, and other users who claimed they don't see it (but unfortunately they didn't specify which platform they are using or respond when I asked).

For your particular case, you are running on the new Beta VSCode extension UX. The rewind functionality isn't there yet, but we're working on it! This ticket is tracking the terminal/CLI version

peturgeorgievv · 9 months ago

Ah makes sense, @hackyon-anthropic and by the way, one of the biggest "blockers" for me on he extension is that I can't use my arrows and navigate and click enter to select Accept edit, etc, and it deselects and never focuses the window when I do "alt tab" or something. Just pointing this if it could be fixed :)

hackyon-anthropic collaborator · 8 months ago

thanks for the feedback @peturgeorgievv!

we are looking into making shortcut keys more prominent that will allow you to quickly switch focus between the editor and claude code. it will be coming soon!

github-actions[bot] · 8 months ago

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.