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.


good Automatically closing the panel for me has been bothering me for a long time!
During the process of opening this panel, when I click/switch files, it will automatically close. After closing and opening, it defaults to opening a new session!
It caused me to be irritable for a long time! Hope to resolve it as soon as possible, okay?

Can you observe it? I just clicked on a file, I guarantee I didn’t press any buttons

From your video, it’s clear what’s happening. Your chat Invite feature integra… is opened as an editor tab in the same row as askQuestions.md, not pinned in the sidebar. That tab is in preview mode, so when you single click a file in the tree (in your video it’s withdraw.controller.ts), Cursor reuses the same preview tab and replaces the chat with that file. That’s why it looks like the chat “closes itself”, and why you get a new session when you reopen it. This isn’t a bug, it’s how preview tabs work.

Any of these fixes will help:

  1. Pin the chat tab: right click the tab > Pin. Then file clicks won’t replace it.
  2. Turn off preview editors: set workbench.editor.enablePreview to false. Files will always open in a new tab and won’t overwrite anything.
  3. Keep Agents in the right sidebar instead of an editor tab. Then chat and files are in different areas and won’t conflict. You can toggle the panel with Cmd+Alt+B.

Try it and let me know if it helped.