Terminal closed in IDE when i close Agents window

Describe the Bug

When I have both the Agents window and the IDE window open, closing the Agents window also closes the terminal running inside the IDE.

This immediately terminates any running processes in that terminal (e.g. npm run dev, Docker commands, build scripts, etc.), even though the IDE itself remains open.


Steps to Reproduce

  1. Open both the Agents window and the IDE window.

  2. Open a terminal in the IDE.

  3. Start a long-running process (for example npm run dev).

  4. Close the Agents window.

  5. The terminal in the IDE closes automatically and the running process is killed.


Expected Behavior

Closing the Agents window should have no effect on terminals opened in the IDE. The terminal should remain open and any running processes should continue running.


Screenshots / Screen Recordings

Not attached yet. I can provide a screen recording if needed.


Operating System

macOS


Version Information

IDE:

Version: 3.12.17
VS Code Extension API: 1.128.0
Commit: 0fb762053c34788bb7760d5673f8a6d4c8589d50
Date: 2026-07-17T02:53:53.006Z
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.256
OS: Darwin arm64 25.5.0


Model

N/A


Additional Information

This happens every time on my machine (100% reproducible).

The IDE itself stays open; only the terminal is closed. This is especially disruptive because it unexpectedly kills development servers and other long-running commands.


Does this stop you from using Cursor?

No – Cursor works, but with this issue.

Hi there!

We detected that this may be a bug report, so we’ve moved your post to the Bug Reports category.

To help us investigate and fix this faster, could you edit your original post to include the details from the template below?

Bug Report Template - Click to expand

Where does the bug appear (feature/product)?

  • Editor, Tab & Chat (autocomplete, Composer, in-editor agent)
  • Terminal & commands
  • Models, pricing & API keys (availability, Auto/Max, BYOK/Bedrock)
  • MCP & tools
  • Cloud Agents & Automations (cursor.com/agents, scheduled/event)
  • BugBot & Code Review
  • Cursor CLI
  • Cursor Mobile
  • Remote (SSH / Dev Containers / WSL)
  • Account, billing & login
  • Something else…

Describe the Bug
A clear and concise description of what the bug is.


Steps to Reproduce
How can you reproduce this bug? We have a much better chance at fixing issues if we can reproduce them!


Expected Behavior
What is meant to happen here that isn’t working correctly?


Screenshots / Screen Recordings
If applicable, attach images or videos (.jpg, .png, .gif, .mp4, .mov)


Operating System

  • Windows 10/11
  • MacOS
  • Linux

Version Information

  • For Cursor IDE: Menu → About Cursor → Copy
  • For Cursor CLI: Run agent about in your terminal
IDE:
Version: 2.xx.x
VSCode Version: 1.105.1
Commit: ......

CLI:
CLI Version 2026.01.17-d239e66

For AI issues: which model did you use?
Model name (e.g., Sonnet 4, Tab…)


For AI issues: add Request ID with privacy disabled
Request ID: f9a7046a-279b-47e5-ab48-6e8dc12daba1
For Background Agent issues, also post the ID: bc-…


Additional Information
Add any other context about the problem here.


Does this stop you from using Cursor?

  • Yes - Cursor is unusable
  • Sometimes - I can sometimes use Cursor
  • No - Cursor works, but with this issue

The more details you provide, the easier it is for us to reproduce and fix the issue. Thanks!