Cursor Agent Terminal Doesn’t Work Well with Oh-My-Zsh's git plugin

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Cursor fails to execute any git command in any valid git repo.

Steps to Reproduce

  1. Install oh-my-zsh and add plugins=(git) in .zshrc.
  2. Install Cursor IDE
  3. Open a git repo folder, and ask in Cursor Ask mode to check whether git status can be accessed and stop at any issue.
  4. Observe that it fails.

Expected Behavior

Out of the box, Cursor should be able to use git command in a valid git repo.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.44 (Universal)
VSCode Version: 1.105.1
Commit: 20adc1003928b0f1b99305dbaf845656ff81f5d0
Date: 2025-12-24T21:41:47.598Z
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

Additional Information

Very similar to this topic:

Cursor cannot run git commands on my macbook. Enabling Legacy Terminal Tool fixed the issue. The root cause seems to be oh-my-zsh’s git plugin, since I was also able to resolve this issue with the following snippet in my .zshrc:

 if [[ -n "$CURSOR_AGENT" ]]; then
   plugins=()
 else
   plugins=(git)
 fi

Reference:
https://cursor.com/en-US/docs/agent/terminal#disable-heavy-prompts-for-agent-sessions

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. Yes, this is a known issue with oh-my-zsh plugins and the agent terminal.

You’ve already found both working fixes:

  1. Legacy Terminal Tool (quick fix)
  2. Disable plugins via $CURSOR_AGENT (recommended)

Related threads with more fixes:

The team is aware of this issue. Thanks for sharing the details!