Cursor agent constantly hangs on console commands

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I’m sure this has been reported before but I cannot find a topic, so creating new if not..

Something insane like, 60% of the time, when Cursor is running in agent mode in the IDE and doing things (especially running tests) it hangs on waiting for a response or even seemingly to start things. It seems to be totally random on what kind of command it is.. could be an npx or a npm or a bash or a powershell or a cmd..

It makes using Agent almost impossible as I have to constantly go in and skip, meaning it does not actually run the command and it does not know that I skipped it. A lot of “Let me try a different way” though.

This seems to happen less often on a Mac so I wonder if its mostly a Windows problem. Anyway it’s been there ever since I’ve opened up Cursor and I wonder if there’s going to be a way to fix it or if there are settings or recommendations to follow.

I also tried looking at the Cursor terminal but I don’t see any logs so if I can gather logs from somewhere to help lmk.

Steps to Reproduce

Use cursor in agent mode
Do something like “run all tests” or “run a typescript check on all files” or anything using the console

Expected Behavior

It doesn’t hang on console

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Latest Version of Cursor

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

1 Like

Yeah, I had to create an always apply cursor rule to:

  • Prevent it from running a dev instance if there is already one.
  • Forbid it to use terminal commands in watch mode.
  • Make it mandatory that terminal commands run in background to avoid it getting stuck every now and then (your exact issue).

and many more just to be able to operate normally.

I would expect these to be baked in the cursor hidden prompt or agent to be honest as they’re blocking for the normal execution, tho…

I have the same problem. Cursor agent constantly hangs on console commands

not a very useful tool for automation if you have to baby sit it and click on things. sad situation.

Can you expand on this and/or provide your rule? I’m not sure what the difference between Cursor running on a background/foreground (?) console would be or look like in the agent window.

think i fixed this with the script cursor agent made me : it basicly runs a pre flight check and makes a stack etc use at you own risk seems to have improved using it read the read me. i also updated to powershell 7 and got cursor to use it https://drive.google.com/drive/folders/1vMEf4cV_p97jxqaDvGCj97mnnCtKMAI9?usp=sharing There are 2 versions now the Cursor_Vscode-watchdog-stack-hang-fixer.zip is a more comprehensive tool and atempted fix the watchdog monitors and fixes issues to stop the hangs etc . please feel free to add causes of hanges and possible solutions and ill get them added to the watch dog .

Changing terminal from powershell to cmd or to wsl as default terminal in cursor (i think its a vscode config) worked for me

1 Like

https://drive.google.com/drive/folders/1vMEf4cV_p97jxqaDvGCj97mnnCtKMAI9?usp=sharing There are 2 versions now the Cursor_Vscode-watchdog-stack-hang-fixer.zip is a more comprehensive tool and atempted fix the watchdog monitors and fixes issues to stop the hangs etc . please feel free to add causes of hanges and possible solutions and ill get them added to the watch dog .

yes, you just create an always-apply rule telling it what to do

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.