Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Terminal leaks running processes when canceled.
Steps to Reproduce
- Ask an agent to run “sleep 300” in a foreground terminal. Wait for it to start running.
- Dump
pstree -taand locate the sleep process appropriately parented under Cursor. - Stop the agent with the stop button in the GUI.
- Run
pstreeagain and observe that the sleep process is now daemonized and is parented under systemd.
Expected Behavior
Stopping the agent should forcibly kill all processes. You can imagine how having two builds running concurrently in the same repo can cause problems, etc. Also, why is it even allowed to daemonize? It should be in a cgroup all to itself.
Operating System
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
For AI issues: which model did you use?
gpt-5
For AI issues: add Request ID with privacy disabled
Can’t due to organizational restrictions.
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor