Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
I’ve got an issue where the terminal fails to return control to the cursor agent when the agent runs the terminal inline. Sometimes the terminal will run just fine, and then return control to the agent, so it can proceed.. but sometimes the terminal just sits there, at the command line, with its task complete, but yet not returning control back to cursor.
I have to go into the terminal window inline, and press enter, once, or twice or sometimes more, before it returns control to the agent.
Also, sometimes when I have to do this, it blanks out the terminal window just as its returning control, so cursor agent complains that the terminal command produced no output. But that’s not the case. It did… but then it was blanked.
This is frustrating because I rely on the agent running terminal commands, and then interpreting the results from those commands. And, it forces me to sit and hand hold the agent running, because I have to occasionally press enter to make the agent proceed.
Steps to Reproduce
- Ask the agent something that would make it produce a terminal and run a command. Something like a database query, or a directory scan.
- The agent will complete the command, and return to the command line in the terminal.
- The terminal will sit there, not proceeding automatically, until the user presses enter within the terminal, causing the command line to show again, and again,
so I’ll see the terminal say:
PS C:\repos\myProject> _
I press enter a few times
PS C:\repos\myProject>
PS C:\repos\myProject>
PS C:\repos\myProject> _
before it returns control to the agent. If I happen to not be sitting there, the agent will just wait forever.
Expected Behavior
When a terminal completes execution, it should immediately return control to the agent, passing along the textual output generated in the terminal.
I’m using powershell.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.5.11 (user setup)
VSCode Version: 1.99.3
Commit: 2f2737de9aa376933d975ae30290447c910fdf40
Date: 2025-09-05T03:48:32.332Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100
For AI issues: which model did you use?
claude-4-sonnet, thinking, Max
For AI issues: add Request ID with privacy disabled
9427180a-0cdc-4c6f-a036-e894d06a2280
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor