[BUG] going back to earlier step in conversation history does not reset the current directory.

Resolved 💬 5 comments Opened Sep 17, 2025 by ANogin Closed Jan 6, 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?

After Esc-Esc and going back to an earlier prompt, the cwd is not reverted, so Claude gets understandably confused.

What Should Happen?

Going back to an earlier prompt should go back to the earlier cwd

Error Messages/Logs

Steps to Reproduce

  1. Ask Claude something that would result in it switching to a subdirectory to work there.
  2. Interrupt it.
  3. Esc-Esc
  4. Go back to earlier prompt form before it changes directory
  5. Ask it to do something

Expected: no issues, it's in the right directory
Actual: it gets confused as it tries to access the files and they are not there

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

1.0.115

Platform

Other

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗