Switching workspaces frequently

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I have started working in the Agents window as I have begun coordinating more work between different worktrees of my work. I have been really enjoying my experience, but I have noticed an issue that has been relatively annoying.

When I come back to a session in the sidebar after not using it for a while (20 minutes or so) my sidebar menu has closed which then leads to any terminals I was running in that tab closing unexpectedly and losing the context that was there. This is manageable and really only impacts when trying to juggle 5+ sessions and forgetting about one for a while, but it would be nice to not lose these terminal instances.

Steps to Reproduce

Multiple repos/worktrees
Switch back and forth between a few with the terminal open
Wait on one of them for a while
Come back to it and sidebar is closed

Operating System

Windows 10/11

Version Information

Version: 3.15.6 (system setup)
VS Code Extension API: 1.128.0
Commit: a1f686545fd0ce8917bbd2449f733551a9bce420
Date: 2026-08-06T01:41:03.876Z
Layout: Agent Window
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.291
OS: Windows_NT x64 10.0.26200

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi @Adam_Johnson Thank you for the post. This is an issue we’re tracking. It seems that when you switch away from a session, its terminal stops being bound to the running shell, and eventually causes the process to be cleaned up. In the meantime, a full restart of Cursor puts things right for a while. For anything you can’t afford to lose, start it from a terminal in the classic Editor Window, or under tmux in WSL, which survives regardless.

We’ll keep you updated with any relevant updates!

I appreciate it. I think I found the root post and commented there as well