Lost edits / work - IDE agent worktree and canonical (project)path diverge

Hey, thanks for the detailed report. This is a known issue, worktree can turn on silently without any clear user action.

You found the key spot, the Local/Worktree/Cloud dropdown at the bottom of the chat. The main workaround right now is to check before each new agent session that it’s set to “Local”, not “Worktree”. If you’re already working, watch the branch icon to the right of the model picker. If it’s there, worktree is active.

A couple things to know:

  • In an already started chat, the dropdown disappears (like you noticed), but the worktree icon stays visible. If there’s no icon, you’re in Local.
  • If worktree already turned on, it’s best to start a new chat and explicitly pick “Local”.
  • Similar reports: here and here

The team is aware of the issue, and your report helps with prioritization. Unfortunately, there’s no way to fully disable worktrees yet, but it’s a frequently requested feature.

Let me know if you have any other questions.