My engineering team and I want to start using Cursor CLI in windows terminal with Git Bash as our preferred shell. But, any shell command like echo, date, pwd, all hang indefinitely and never execute rending the CLI tool completely unusable. In CMD or even Powershell, it all works fine, but Git Bash is absolutely the standard shell for our team and we would rather use a competitor’s CLI tool than switch our shell to a lesser option.
Happy to provide any more information as needed. Thank you!
Steps to Reproduce
In Windows Terminal, with Git Bash as default shell, tell the agent to try to run a shell command. lol
Expected Behavior
I expect the agent to run the shell command properly
braden.sanders@SAI0787 MINGW64 ~/dev
$ agent about
About Cursor CLI
CLI Version 2026.03.30-a5d3e17
Model Opus 4.6 1M Thinking
OS win32 (x64)
Terminal windows-terminal
Shell c:\program files\git\usr\bin\bash.exe
User Email [email protected]
UPDATE: enabling the legacy terminal in settings fixes the issue, so far very reliably. It 100% doesn’t work with legacy terminal disabled, and works fine with legacy terminal enabled (although not in current agent sessions, you have to start a new one!). Hopefully that’s helpful, because this is a huge usability issue.
FURTHER UPDATE: well, legacy terminal doesn’t load my PATH or other .zshrc env vars, so it’s pretty useless. However, I got it working with legacy terminal OFF by launching from my terminal using $ cursor from my repo directory, rather than launching via macOS. Terminal commands seem to be working normally now. So maybe the issue with the non-legacy terminal is related to the PATH variable being wrong, maybe it’s not even pointing to a valid shell?
[Translated by GPT]
Whenever the read_lints tool is triggered within a bash terminal workflow, the process hangs indefinitely.
This occurs even if the command being executed originates from a bash session that invokes Python, which then calls cursor-agent.
Steps to Reproduce
Open a bash terminal.
Use bash to run a Python script.
Within the Python script, invoke a cursor-agent command that triggers the read_lints tool.
Observe that the process becomes stuck and does not return.
Operating System
Windows 10/11
Version Information
CLI Version 2026.03.30-a5d3e17 │
│ Model Composer 2 Fast │
│ OS win32 (x64) │
│ Terminal mintty │
│ Shell \git\usr\bin\bash.exe