Git commands keep buffering after completion in Cursor terminal
When running certain git commands inside Cursor’s integrated terminal, the terminal keeps buffering or hanging even after the command has completed.
The output of the command appears correctly, but the prompt never returns — the terminal seems stuck in a pending state until the session is restarted.
This doesn’t happen with every Git command, only with a few specific ones.
Steps to Reproduce
Open Cursor’s integrated terminal.
Run any of the following commands:
git status git remote -v git push origin main git branch -vv git log --oneline git diff git fetch git pull
Observe that sometimes the output appears correctly but the prompt keeps buffering indefinitely.
The terminal does not accept new input until restarted or the tab is closed.
Commands That Work Normally
The issue does not seem to occur with simpler or faster commands such as:
git init
git add .
git config --list
git clone
Expected Behavior
Once a git command completes, the terminal should immediately return to the prompt and allow further input.
Actual Behavior
For certain Git commands, Cursor’s integrated terminal:
Displays full output
But remains in a buffering or “busy” state
Blocks further input until the terminal is manually restarted
Environment Key Value Cursor version (e.g., 0.45.1) OS Windows 11 / macOS / Ubuntu Shell PowerShell / Bash / Zsh Git version (run git --version) System terminal works fine Yes — only Cursor’s integrated terminal is affected Additional Context
The issue occurs inconsistently — roughly 3 out of 10 times for the same command.
Restarting Cursor temporarily fixes the problem.
This seems related to how Cursor handles subprocesses or input streams after completion.
I’d be happy to investigate further or contribute a fix if someone can guide me to the relevant terminal-handling or process I/O code.