Cursor getting stuck in terminal

Describe the Bug

When cursor runs terminal commands it often gets stuck and the only way to proceed is to “move to background”. Even then sometimes it doesnt get those results and thinks it was cut-off so will try again, and then get stuck again.

Steps to Reproduce

have cursor run terminal commands while SSH is active.

Expected Behavior

The terminal command should finish and cursor should move on with the results.

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.5 (user setup)
VSCode Version: 1.96.2
Commit: ef5eeb47a684b4c217dfaf0463aa7ea952f8ab90
Date: 2025-06-21T05:31:17.701Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

Additional Information

Seems if any apple OS is involved in the command it will get stuck everytime. Other commands are hit and miss.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

16 Likes

Same here. Experiencing it now while working with python.

MacOS

From search:

Common Issues with PTY Host in Cursor

  • Timeouts and Disconnections: Users have reported that after using features like Agent or Ask, all open terminals in Cursor may lose connection or timeout, especially in development container environments. This may be due to aggressive cleanup routines or process management bugs that terminate PTY sessions prematurely5.
  • PTY Host Errors with Long Scripts: Running long or resource-intensive scripts (notably in R) can trigger “pty host” errors, particularly on macOS. This interrupts analytical workflows and forces users to break tasks into smaller chunks67.
  • Unresponsive PTY Host: When running multiple or large code blocks (e.g., loading/manipulating large dataframes in R), the PTY host can become unresponsive, especially on certain hardware or OS configurations7.
  • Orphaned Processes and High CPU Usage: On remote connections (e.g., SSH to a server), Cursor may leave behind orphaned bash processes tied to the PTY host, causing high CPU usage even after the editor is closed. This indicates issues with process cleanup and resource management4.

This is a sad reality of working with terminal in Cursor. Even for most simple use cases like read or echo.

Windows 10 / WSL here, Cursor 1.1.5

yeah this is currently the most annoying issue with cursor and I also having a lot of abandoned terminals I cant access. also using WSL but on Windows 11

1 Like

It’s been notably worse the past few days since latest Cursor upgrade. Even the most basic commands (pwd, ls) run fine and then the Cursor terminal just hangs there waiting for completion.
It is intermittent - very occasionally it will recognise the command has completed and continue the agent loop, but completely unreliable.

Macos, Cursor 1.1.5

4 Likes

Resolved for me by following 🛠️ Guide: Fix Cursor Agent Terminal Hangs Caused by .zshrc.

2 Likes

nice, now we also need a fix for bash :wink:

Thanks!

This resolved my issue for now (MacOS):

:soap: Optional: Comment block

You can include this for clarity in .zshrc:

if [[ "$TERM_PROGRAM" == "vscode" || "$TERM_PROGRAM" == "cursor" ]]; then
  return
fi

From:

3 Likes

I think it has something to do with data related to my workspace.. which is probably missing after I restarted my system.. attached logs for same..


This is making Cursor unusable for me. Our company got us licenses yesterday and I’ve burned through 140 out of our 500 monthly requests because 70% of those are trying to find a workaround for not being able to do something in terminal. I will be out of requests before the end of the week at this rate.

The rest of our devs are probably going to start trying it soon and they will no doubt be frustrated by the same thing because we all use similar work patterns. We use work issued Windows laptops and ssh to remote Linux containers where we have the actual code and services running. So terminal commands are 100% vital.

3 Likes

in Windows, the solution for me was switching the default terminal to Git Bash instead of Cmd or PowerShell.

3 Likes

You can click in it and interrupt it (Ctrl+C on Win11) or press Enter (1-3 times).
I use PowerShell 7.5.2

3 Likes

this is really annoying, is there any good way to resolve this in windows?

2 Likes

this is all apparently resolved in v1.2.x

not yet, I’m using v1.2.1 and it’s still showing

2 Likes

No, it’s not resolved. Every other order is blocked on my end—it’s a nightmare.

That’s true for Mac, I thought might be fish problem. Hope curosr fix it!

1 Like

Yeah it’s back again…

Cursor Agents are basically unusable right now, as every single command gets stuck.

Same here. Every terminal command hungs. I’m using WSL and the bash terminal.

ok so the workaround I’ve ended up implementing. If helpful for anyone - it seems commands outputting several lines were failing.

Instead I’ve isntructed the agent to run the results to file and read the file not with cat but directly. This seems to have worked for me.

1 Like