Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When creating a new Cursor Agent session/chat with New Worktree, Cursor automatically switches focus back to that chat after the worktree finishes creating.
This happens even if I manually switch to another chat/session while the worktree is still being created. It feels unexpected because Cursor overrides the session I intentionally selected.
Steps to Reproduce
Open Cursor Agent on Windows.
Create a new Agent session/chat.
Select New Worktree.
Send the first message.
Before the worktree finishes creating, switch to another Agent chat/session.
Wait a few seconds until the new worktree finishes creating.
Cursor automatically switches back to the chat that was creating the worktree.
Expected Behavior
If I manually switch to another chat/session, Cursor should keep me in that selected session.
The worktree creation finishing in the background should not automatically change the active chat or steal focus from the session I am currently viewing.
Operating System
MacOS
Version Information
Version: 3.7.12
VS Code Extension API: 1.105.1
Commit: b887a26c4f70bd8136bfffeda812b24194ec9ce0
Date: 2026-06-05T01:45:12.918Z
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
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 25.5.0
Does this stop you from using Cursor
No - Cursor works, but with this issue