Describe the Bug
There are a lot of related posts/bugs about terminal not working properly, but none properly describes what is happening or offer solutions.
The problem: When Agentic mode is running terminal commands, sometimes it does not show output and stalls forever, preventing the agent continuing working.
I do not completely know how the terminal execution works in Cursor, bu it seems like it’s often trying to re-use the previous terminal to execute additional commands. This is when this problem (sometimes) happen. It only shows the terminal command to run, but there is no box displayed for the output. We don’t know if the command it running or not, or what is happening, because we only see the command.
This problem never happens when it spawn a new terminal (when we see “Starting terminal” before the command is executed), this happens only when this appearant old terminal re-use it attemped by the agent.
This is screenshot of the stalled terminal
It stays like this forever, until I click move to background or skip.
Another related problem I have found is about detecting stalled command. When the agend runs command that does not exit for some reason, it will also get stuck forever until intercepted. If the previously mentioned bug happens - no output box dispayed - there is no way of pressing Ctrl+C to end the command, we must click the skip button or move to background. This will make the agent think that the user cancelled the command and by its internal instructions it asks what to do next, instead of continuing working on the problem. If the previously mentioned bug does not happen, the we can Ctrl + C the command manually which maked the agent continue normally, but still this is a manual interception needed which breaks the whole autonomous agent idea. There should be a feature that will allow the Agent to Terminate the command by sending an end signal co the running program if it gets stuck and no new output is printed for a few minutes, or the output suggests that the program ended, but process did not exit.
Steps to Reproduce
Ask the agent to work on a more complex task that requires a lot of terminal commands. I have tested with all the default terminal options, and this bug happens in each of them.
Expected Behavior
It is expected that the terminal output always work correctly, which means that it consistantly creates terminal output box and it does not hang nor stalls the agent forever.
Screenshots / Screen Recordings
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.2.4 (user setup)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T17:09:01.383Z
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
This happens on windows on all terminal options available.
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor