On macOS, the integrated terminal inside Cursor can become permanently unresponsive. After it happens, any command executed in Cursor’s terminal hangs indefinitely, including simple commands like echo and even process termination commands like kill/pkill. This persists even after restarting Cursor and the laptop. However, the same commands run instantly in a normal macOS Terminal.app, so the issue appears specific to Cursor’s integrated terminal session/PTY handling.
Steps to Reproduce
On macOS (Cursor using the integrated terminal), run a command that scans/greps/parses a any file
The command takes a long time or appears to stall.
after that cursor tries to kill that process.
Observe that the new command(s) also hang indefinitely.
Restart Cursor and even reboot the machine.
Reopen the project and verify that the integrated terminal is still stuck.
Expected Behavior
Cursor integrated terminal should continue to accept commands normally.
Hey, I can see the screenshot. The agent terminals have a bunch of stuck commands, including a simple echo. This looks like a known PTY leak issue on macOS.
If there are no orphaned processes, or killing them didn’t help, share the output of the first command wc -l so we can dig deeper. The team is aware of this class of bugs, but your case could still help with further investigation.
Good to hear reinstalling fixed it. Since the orphaned cursor-shell processes weren’t the cause, it was most likely a corrupted terminal state in the workspace storage, not a PTY leak.
If it happens again, you can try a less drastic option before reinstalling and delete the workspace storage folder:
This clears the cached terminal state without a full reinstall. You’ll lose some workspace-specific settings and chat history, but nothing critical. Make a backup first.