Cursor worktree stuck in chat

cursor created a git worktree for my chat again and now the model can’t read local files, has to use web search for everything which is annoying

how do i exit the worktree in my chat? i deleted it via git but it’s still there and i don’t want to start a new chat

and how do i disable worktrees in cursor generally? i’m not running multiple models so no clue why it’s even enabled

thanks!

Hey, thanks for the request.

How to exit a worktree in the current chat:

At the top of the agent panel, there’s a dropdown where you can switch from Worktree to Local. If the chat was started in Plan mode, you won’t see that dropdown. You’ll see a branch icon next to the model picker instead. In that case, the easiest option is to start a new chat. Removing the worktree via git won’t switch the chat back.

How to avoid worktrees in the future:

Worktrees are only created when you use Parallel Agents or Use Multiple Models Best-of-N. If you pick a single model and don’t run parallel agents, worktrees shouldn’t be created. Make sure the dropdown at the top of the chat is set to Local, not Worktree.

There’s no separate setting to fully disable worktrees right now.

Clean up old worktrees:

git worktree prune
rm -rf ~/.cursor/worktrees/<repo_name>

Docs: Parallel Agents | Cursor Docs

Let me know if you can’t see the switch dropdown. If you can, share a screenshot of the top of the agent panel and we’ll take a look.