Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When one or more terminals are open in Cursor IDE, closing the Agent window automatically terminates all the existing terminal sessions.
Steps to Reproduce
- Open Cursor IDE.
- Open one or more terminals.
- Open the Agent window.
- Run any process/command in the terminal.
- Close the Agent window.
- Observe that after slight delay the existing terminal sessions are automatically terminated.
Expected Behavior
Closing the Agent window should not affect or terminate any existing terminal sessions. All open terminals and their running processes should continue to work normally.
Screenshots / Screen Recordings
Operating System
Windows 10/11
Version Information
Version: 3.15.6 (user setup)
VS Code Extension API: 1.128.0
Commit: a1f686545fd0ce8917bbd2449f733551a9bce420
Date: 2026-08-06T01:41:03.876Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.291
OS: Windows_NT x64 10.0.26200
Does this stop you from using Cursor
No - Cursor works, but with this issue