Agent keeps getting stuck and can only continue after "Move to background"

Im using cursor in agent mode 99% of the time.

Yet a lot of times it simply gets stuck not executing a command and usually once I just click “Move to background” it immediately continues.

I don’t quite understand why you guys can’t seem to fix that.

8 Likes

Yea, I’ve had this persistent issue too,you either have to skip the task or move to background then copy n paste the terminal lines into the Agent chat which is time consuming, I hope they figure out a way to fix the auto-terminal as it really hurts vibe coding.

I’ll be working on a task and have to tell it to redo what it’s doing with that new information and often it fails or has to start a new chat to continue…

Same issue here - agent just freezes mid-task and only resumes after I manually hit “Move to background.” Happens pretty consistently, but wasn’t an issue a week ago.

1 Like

I am getting a similar issue. I gave a prompt to a background agent. It says it’s finished, but if I open the background agent tab, I still see the “loading…” status and I cannot submit any new prompts. I don’t know where to see the changes that were made to the code or what to do next. It’s just stuck and won’t finish. It’s been like that for about 1 hour.

image
Super annoying…

1 Like

same error here, please fix it because it spends more requests

1 Like

Same issue here with agent mode: it blocks any AI response that includes a shell command. (until clicking to “Move to background”)

1 Like

this is soo annoying - and I tried literally every solution recommended here and on Reddit, enabling Zsh, disabling powerlevel10k etc. It’s worse than ever. I can’t believe why this hasn’t been fixed yet.

any news? some config to automatically run in background?

If you’re running a test and the test is configured to wait for changes, the Cursor agent window will not proceed because your test runner is blocking. This probably applies to any other command that waits for changes, like running an app with nodemon.

1 Like

I’m having this issue and it has nothing to do with what’s running in the console. It’ll just hang until I click “move to background”. It could be a grep or simple script or even just an echo.

1 Like

cursor please fix this it is super annoying

Now it really likes to use Unix commands in the Windows environment and repeatedly make errors, even though I emphasized in the rule that it should not be done.
I really like the toolset that cursor used to come with (such as Parallel_APPLY, which was amazing when I first saw it, it’s my favorite tool, it’s great), but now it doesn’t call its own tools and always uses various error commands.

The new version is much better, but it is not perfect either. Many of the compiled versions do not display the compilation progress and keep waiting, then the chat times out!

This fixed the issue for me:

:hammer_and_wrench: Guide: Fix Cursor Agent Terminal Hangs Caused by .zshrc

1 Like

in Windows, the solution for me was switching the default terminal to Git Bash instead of Cmd or PowerShell.

I started experiencing this problem for the first time after the 1.2 release.

I have the same problem after the upgrade. I’m on windows powershell so the zsh fix doesn’t apply to me. It’s July 11th. Any updates or recommendations?

its the biggest issue i have using cursor. really detracts from usability

same, cursor always get stuck in the terminal