Agent dock closes when closing the last tab

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When closing the last tab in the agent window (ctrl+i to open it), the window closes.
This forces me to first open a new empty tab, then go to the last old tab, and close it,

The agent window should not close without me asking it to close.

Steps to Reproduce

  1. open agent window (ctrl+i)
  2. close all tabs
  3. window will close

Expected Behavior

  1. window should stay open

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.3.35 (user setup)
VSCode Version: 1.105.1
Commit: cf8353edc265f5e46b798bfb276861d0bf3bf120
Date: 2026-01-13T07:39:18.564Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report.

Looks like this is the current expected behavior: the dock closes when there’s no content in it. I’ll share this as feedback with the team, since the logic of “the window should stay open until I close it myself” makes total sense.

For now, the workaround you described is the only option.

Very strange that it’s intended. Think of chrome closing when the last tab closes.

Oh well

Adding my +1 to this issue. Frustratingly, when you click the close (x) icon on the last agent tab, it doesn’t even actually close that agent any more, only hides the whole panel. When you open it up again, the tab you ‘closed’ is still present.

edit: I see this has been raised as a separate issue too.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.