Abnormal automatic closure of chat interface (Agents)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When I open the chat panel (Agents) on my right, I am selecting/clicking on other files in the resource manager, and suddenly the current chat panel (Agents) automatically closes. This is not triggered every time, but occasionally it can trigger this bug correctly!
Do you have the function of automatically closing the chat panel (Agents)? Perhaps the problem lies here! I don’t know if you can understand? If there is anything you don’t understand, please leave a comment and I will reply!

Steps to Reproduce

Open the chat panel (Agents) on the right,
Select/click on files in the resource manager
This can’t be triggered every time, occasionally it can trigger this bug correctly!

Operating System

MacOS

Version Information

Version: 3.8.23
VS Code Extension API: 1.105.1
Commit: 7cf19b7482706625cdb70db3211b7dd035b7aa30
Date: 2026-06-23T14:57:42.334Z
Layout: editor
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 24.6.0

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the detailed report. Just to be clear, we don’t have a feature that auto-closes the Agents panel when you click a file, so this is definitely unintended behavior.

A couple things to check:

  1. Update Cursor to the latest version. You’re on 3.8.23, and we fixed a few right sidebar visibility glitches after that. Your case might already be covered.

  2. The diagnostics show Layout: editor, which suggests the Agents chat is opened as an editor tab, not docked in the right sidebar. If that’s the case, a single click on a file in the Explorer can reuse the preview tab and replace the chat tab, which looks like it “closed”. Workaround: pin the chat tab right click the tab > Pin, or disable preview editors by setting workbench.editor.enablePreview to false. Panel toggle is Cmd+Alt+B.

If it still happens after updating, please share a short screencast showing the panel closing so we can file an accurate bug. Let me know how it goes.