Cursor git command not working

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

In my own terminal, all git command works fine. but in Agent Cursor’s mode, all git command failed (git status, git --version). It happens in the newest update.

Please fix and thank you for offering the service.

Steps to Reproduce

prompt cursor to execute a simple git command in the Agent Mode

Expected Behavior

The chat will normally respond with git status.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.50 (user setup)
VSCode Version: 1.105.1
Commit: 56f0a83df8e9eb48585fcc4858a9440db4cc7770
Date: 2025-12-06T23:39:52.834Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200

For AI issues: which model did you use?

The auto mode

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. This is a known issue with the new terminal on Windows in versions 2.1.39+.

Try this workaround:

  1. Settings Ctrl+Shift+J → Agents → Inline Editing & Terminal → enable “Legacy Terminal Tool”
  2. Ctrl+Shift+P → “Terminal: Kill All Terminals” → restart Cursor

The team is working on a fix. Tracking issue: Cursor version 2.1.39 has terminal bug

If you can, please share:

  • Request ID from the chat (menu → Copy Request ID)
  • Which terminal you use (PowerShell/CMD/Git Bash)
  • Logs from Help → Toggle Developer Tools → Console when the Agent runs a command

Let me know if switching to the Legacy Terminal helped.

I’m having the same issue, the Legacy Terminal Tool didn’t fix it for me unfortunately.