Cursor 2.0 gets stuck every time I ask it to do any git command in the terminal

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

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)

Version: 2.0.38 (user setup)
VSCode Version: 1.99.3
Commit: 3fa438a81d579067162dd8767025b788454e6f90
Date: 2025-10-29T20:45:40.883Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.19045

Does this stop you from using Cursor

No - Cursor works, but with this issue

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.

To help the investigation, please share:

  • Request ID with privacy disabled: Getting a Request ID | Cursor Docs
  • 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…

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

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)

Version: 2.0.77 (Universal)
VSCode Version: 1.99.3
Commit: ba90f2f88e4911312761abab9492c42442117cf0
Date: 2025-11-13T23:10:43.113Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0

For AI issues: which model did you use?

Claude Opus 4.1

Does this stop you from using Cursor

No - Cursor works, but with this issue

I’m also getting this issue loads when it tries to use git. Was driving me nuts over the weekend. Powershell on windows