[Bug] Bash commands with ! operator execute in wrong directory in git worktree
Status Open
Reported on v2.1.220
Maintainer reply None cached
Activity 0 comments · opened Aug 3, 2026
Bug Description
When running a session in a worktree bash commands executed with ! are ran in the wrong directory. For instance, this session is using the "mcp" worktree. However, it ran the commands in the main directory of the git repo.
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.1.220
- Feedback ID: 49c5dbf7-1664-4859-a3b1-b26e44a99b02
Errors
[]