Multi agent mode loose worktree and Apply / Undo Apply

Hey, thanks for the detailed report. This is a known issue: agents in a worktree can lose context and switch back to main. I also see @Ingvar is confirming the same thing.

The team is working on a fix, and we have a few active tickets around worktree functionality. Related reports:

To help with debugging, can you share:

  1. The Request ID for a specific case where the agent lost the worktree (chat context menu, then Copy Request ID)
  2. The exact prompt that triggered the switch
  3. Whether you used any @ mentions for files from the main directory

Item 3 is especially important. There’s a known bug where @ mentions in a worktree can cause edits to happen in main instead of the worktree.