Close All Editors command also closes agent window

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

“View: Close All Editors” command also closes agent window. I expect it to only close the editors for files I’ve opened. This is how it has always worked in the past. The regression started in Cursor version 3.

Steps to Reproduce

Open files in a project.
Open an agent chat.
Run “View: Close All Editors”
files and agent closes.

Expected Behavior

“View: Close All Editors” should only close editors (files) that i’ve opened. It shouldn’t affect the agent panel.

Operating System

MacOS

Version Information

Version: 3.1.15 (Universal)
VSCode Version: 1.105.1
Commit: 3a67af7b780e0bfc8d32aefa96b8ff1cb8817f80
Date: 2026-04-15T01:46:06.515Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi there,
Thanks for reporting this. In Cursor 3, the agent panel is implemented as an editor tab group, which means commands like “Close All Editors” now include it. This is a change from the previous architecture where chat wasn’t part of the editor system.

I understand the expectation that “Close All Editors” should only affect file tabs, and that’s fair feedback. I’ll share this with the team so they can evaluate whether the agent panel should be excluded from mass-close commands.

In the meantime, you can close file tabs individually or right-click a tab and use “Close All” within a specific editor group to avoid closing the agent.

FWIW I’ve added this to my keybindings.json

    {
        "key": "cmd+r w",
        "command": "workbench.action.closeOtherEditors",
        "when": "editorTextFocus"
    },
    {
        "key": "cmd+r cmd+w",
        "command": "workbench.action.closeOtherEditors",
        "when": "editorTextFocus"
    }

It will leave the current active file open, which Cmd+R+W didn’t, but at least will close everything else and leave the composer tab alone.

Would still like to see the previous behaviour restored.

I’ve noticed this today as well. What I ended up doing is pinning individual agent chat windows. This way, they should stay when I want to clean just the code editors with said shortcut. Posting it as a workaround here in case it helps someone else :slightly_smiling_face:.