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.