[Bug] Bash tool fails with stale directory path after cwd relocation
Resolved 💬 2 comments Opened Dec 3, 2025 by lukedyer-uipath Closed Dec 3, 2025
Bug Description
If you move the current working directory then no bash command will run. If I launch the terminal in /Users/<user>/repos/<old-directory> and Claude Code moves /Users/<user>/repos/<old-directory> to /Users/<user>/repos/<new-directory> then Claude Code fails to execute anything and gets stuck in a tool usage loop.
⏺ Bash(ls -la /Users/<user>/repos/)
⎿ Error: Path "/Users/<user>/repos/<old-directory>" does not exist
Environment Info
- Platform: darwin
- Terminal: zed
- Version: 2.0.55
- Feedback ID: 7b77cc51-9bd5-4bbc-8a47-a12c76acfda7
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗