[BUG] bash tool breaks when project directory is renamed mid-session
Resolved 💬 3 comments Opened Mar 17, 2026 by mihnathul Closed Mar 21, 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?
Renaming the project directory mid-session breaks all Bash tool calls with "Path does not exist" error. Read, Write, Edit, Glob, and Grep tools still work fine with the new path - only Bash is affected.
What Should Happen?
Bash tool works with the new path, same as Read, Write, Edit, Glob, and Grep already do.
Error Messages/Logs
Steps to Reproduce
- Start Claude Code from ~/project_a
- Rename directory externally: mv ~/project_a ~/project_b
- Any Bash command fails: "Path ~/project_a does not exist"
Claude Model
Claude Opus 4.6
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.77
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗