Cursor 2.0 gets stuck every time I ask it to do any git command in the terminal.
It suggests executing a command, and I click the ‘run’ button. Then I see a terminal in the chat with some git commands. And that’s it. It never proceeds with doing anything after executing these git commands.
Steps to Reproduce
Ask an Agent to look up some commit and then examine changes in it.
See how it executes git commands forever.
Expected Behavior
It proceeds with the task after executing git commands in the terminal.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Hey, thanks for the report. This looks like a command completion detection issue on Windows where Agent doesn’t recognize that git commands have finished.
A screenshot or screen recording showing the stuck state after clicking “run”
Which shell you’re using (PowerShell, Git Bash, CMD, etc.)
Potential workaround:
Open Cursor Settings Ctrl+, → Agents → Inline Editing & Terminal → toggle “Legacy Terminal Tool” (try both enabled and disabled)
Press Ctrl+Shift+P → “Terminal: Kill All Terminals”
Fully restart Cursor
Test again
This appears similar to Cursor Agent Terminal Hangs (Windows) where Agent incorrectly thinks commands are still running. Let me know if toggling Legacy Terminal Tool helps.
There used to be an excellent Github integration so agent could look stuff up directly via the integration without having to run terminal commands. It was amazing but has been “broken” forever and no response from Cursor on if it will actually return…
Cursor agents frequently end up blocked waiting forever for an external command to complete that will never complete. Examples include accidentally invoking git with an interactive pager.
Instead, Cursor agents should attempt to set appropriate timeouts for all commands, and they should understand when a command has timed out due to their own timeout vs other sorts of errors.
Steps to Reproduce
Tell the agent to do git log
Expected Behavior
The agent should time out commands at some point, and continue operating.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)