Cursor not moving forward after executing scripts

I am having a pretty consistent issue that when Cursor runs test scripts in Agent mode (using Claude 3.7 Sonnet), it will execute the script, the script will get back to a complete message and terminal prompt, and it will just hang there, I have to come back and click cancel. It does it near 100% of the time with this script. This is a pretty annoying bug as it stops the agent in its tracks and I have to manually move it forward (it will literally sit there all night until I hit cancel).

I have even added custom rules in Cursor Rules to try to get around it:

“* Script Completion Signaling:
* All standalone scripts (e.g., ingestion, data processing, specific tests run directly via python scripts/some_script.py) MUST print a clear, standardized success message to standard output upon successful completion. Example: INFO - [SCRIPT NAME] - Script completed successfully. Once any “SCRIPT COMPLETED” message is detected OR you see the command prompt again (ie /app#), complete/cancel the script and move forward.”

But it doesn’t seem to make a difference.

Windows, 0.48.8

1 Like

Exactly the same issue here. Run GCC and stucked…

Another example. It seems to happen most often when it runs a test script, or even simple linux commands with a decent amount of output, like a tail -50. I notice it happens more often when it opens a terminal directly under the command in the chat, as opposed to if it runs it in the background.

Is no one else having this issue? It is now to the point where every test script that cursor runs stops the app and I have to manually intervene basically making the product unusable unless I’m babysitting it since as my application has become more complex with a lot of back-end testing needed, cursor has made a whole suite of testing scripts which all pause. I am even running all the scripts now through a wrapper script that removes as much of the output as possible and gives very clear signal signs that the script has completed or failed and yet cursor still stalls.