# Abnormal automatic closure of chat interface (Agents)

**URL:** <https://forum.cursor.com/t/abnormal-automatic-closure-of-chat-interface-agents/164576>\
**Category:** Bug Reports\
**Tags:** chat\
**Created:** [July 1, 2026, 5:20pm UTC](https://forum.cursor.com/t/abnormal-automatic-closure-of-chat-interface-agents/164576 "2026-07-01T17:20:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor-XC](https://avatars.discourse-cdn.com/v4/letter/v/f475e1/32.png) [@Victor-XC](https://forum.cursor.com/u/Victor-XC)\
**Post date:** [July 1, 2026, 5:20pm UTC](https://forum.cursor.com/t/abnormal-automatic-closure-of-chat-interface-agents/164576/1 "2026-07-01T17:20:18Z")

</div>

### 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

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [July 2, 2026, 4:21am UTC](https://forum.cursor.com/t/abnormal-automatic-closure-of-chat-interface-agents/164576/5 "2026-07-02T04:21:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Victor-XC](https://avatars.discourse-cdn.com/v4/letter/v/f475e1/32.png) [@Victor-XC](https://forum.cursor.com/u/Victor-XC)\
**Post date:** [July 16, 2026, 12:49pm UTC](https://forum.cursor.com/t/abnormal-automatic-closure-of-chat-interface-agents/164576/6 "2026-07-16T12:49:11Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Victor-XC](https://avatars.discourse-cdn.com/v4/letter/v/f475e1/32.png) [@Victor-XC](https://forum.cursor.com/u/Victor-XC)\
**Post date:** [July 16, 2026, 12:50pm UTC](https://forum.cursor.com/t/abnormal-automatic-closure-of-chat-interface-agents/164576/7 "2026-07-16T12:50:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [July 16, 2026, 1:10pm UTC](https://forum.cursor.com/t/abnormal-automatic-closure-of-chat-interface-agents/164576/8 "2026-07-16T13:10:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [August 15, 2026, 1:10pm UTC](https://forum.cursor.com/t/abnormal-automatic-closure-of-chat-interface-agents/164576/9 "2026-08-15T13:10:19Z")

</div>

Closed on August 15, 2026, 1:10pm UTC

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