Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
There are a number of bugs and discussions about the terminal hanging. The suggested remedies didn’t work for me, leading me to discover another reason it will hang.
Apparently Cursor is very aggressive at wanting everything to complete before it ends the terminal. I’m using a script to start/stop a background process so the chat agent can test against the running app. This seems like it should be a common pattern. Is there a preferred way to have the agent launch background services? I was using nohup … & to run the command. I isolated it as the consistent cause of the hang (removing it removed the hang).
Fortunately, I found a workaround. The daemon tool is able to spawn a command in such a way that the chat agent does not hang.
Steps to Reproduce
Ask the agent to run a script that starts a long running process in the background. For example:
( sleep 8 & disown ) & disown
This will hang for 8 seconds and then complete.
Expected Behavior
I would expect the chat agent to complete the terminal task and continue and not hang. In the example in the “steps to reproduce”, I would not expect the chat agent to wait for 8 seconds before continuing.
Operating System
Windows 10/11
Linux
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.6.45 (user setup)
VSCode Version: 1.99.3
Commit: 3ccce8f55d8cca49f6d28b491a844c699b8719a0
Date: 2025-09-22T18:22:38.013Z
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
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor