I noticed this behavior quite often. I am giving Cursor some tasks, it runs terminal commands but it waits for terminal command to complete even when it is done long time ago
Steps to Reproduce
My thoughts on this are:
have a windows machine
give cursor tasks that require running terminal commands (e.g. switch git branches, update master after PR was merged, etc)
Expected Behavior
Cursor always correctly detects that terminal command completed and goes on with his tasks
Cursor when it try to lunch a command in terminal or in the focus , it is in progress for infinite time , and does not lunch the command .
sometimes it lunch the command but when it finish , it does not detect that it finish .
i am obliged to stop it and say to the prompt that the command finish .
Steps to Reproduce
it happen randomely.
Expected Behavior
that the commands is executed instantly .
that Cursor detect when a command execution is finished
This happens to me on powershell/pwsh a lot and if i click on the terminal and just hit ‘enter’ to make the prompt show up again, it resumes, but then the agent doesn’t get the output from the terminal (it thinks the command returned nothing)
Cursor has had this problem forever… lots of people have reported it (including myself). Super frustrating and ruins the Cursor Agent experience. Must be an incredibly difficult problem.
i still have the issue as you can see in the screenshot.
the command is executed , but cursor still waiting for it finish like is not aware that is finished already .
The last version seems introduced another regression , the button that allow to copy from terminal to chat is missing , and when i try to the “Cltr +C” to copy it interprete is as “interupt command” and not copy .
i am very struggling with this terminal part .
Please add an automatic mode that forces the AI to run all terminal commands in the background. In many cases, terminal output isn’t needed. This could be implemented as part of the custom mode.
For the mode “waiting” state, simply make it send Enter up to 5 times at different intervals. This works in 99% of cases to resolve terminal hangs after commands in both Linux and PowerShell. To avoid accidental triggers, keep this feature as a separate terminal option rather than the default.
Just came here to +1 this. I have the exact same issue on Windows 11 for my git commands. Terminal hangs indefinitely after successfully executing. Version 1.6.42.
This failure to complete terminal command has come back with 1.7.46 andthe previous version too. What is causing it this time is when there is an error in the syntax of the command and the command fails, then the terminal hangs and does not exit unless I cancel it.