Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When using multiple agents, set to create and use their own worktree, half of the agents quickly forget that they are working in their own worktree, and the “apply” “undo apply” buttons dissapear, and no way of getting them back or returning to working in worktree. So now the different agents immediately start overwriting each others code and it all quickly turns into a big mess, and I’ve now wasted ALOT of tokens, since I ran multiple agents.
How can I avoid this, or is the feature broken/not ready to be used yet?
Steps to Reproduce
Just run 4-5 agents and try to work with them, happens over and over once you apply one of them, soon, or without even that, one or more of the agents jump out of worktree and just edit main as usual.
Expected Behavior
The different agents always stay in the own worktree no matter what, until you merge to main on purpose.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.3.35 (system setup)
VSCode Version: 1.105.1
Commit: cf8353edc265f5e46b798bfb276861d0bf3bf120
Date: 2026-01-13T07:39:18.564Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200
For AI issues: which model did you use?
sonnet 4.5, gemini 3 pro, gemini 3 flash, composer1, chatgpt 5.2 codex. Doesn’t matter what model, it’s the IDE/cursor that causes it, all of them loose the worktree at random.
Does this stop you from using Cursor
No - Cursor works, but with this issue