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

**URL:** <https://forum.cursor.com/t/lost-edits-work-ide-agent-worktree-and-canonical-project-path-diverge/154663>\
**Category:** Bug Reports\
**Tags:** worktrees\
**Created:** [March 13, 2026, 9:55am UTC](https://forum.cursor.com/t/lost-edits-work-ide-agent-worktree-and-canonical-project-path-diverge/154663 "2026-03-13T09:55:17Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [March 13, 2026, 11:12am UTC](https://forum.cursor.com/t/lost-edits-work-ide-agent-worktree-and-canonical-project-path-diverge/154663/5 "2026-03-13T11:12:48Z")

</div>

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](https://forum.cursor.com/t/how-do-i-get-the-model-to-change-the-source-directory-and-not-cursor-worktrees/150335) and [here](https://forum.cursor.com/t/worktree-agents-fork-automatically-into-separate-workspaces/152512)

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.

---

_[View the full topic](https://forum.cursor.com/t/lost-edits-work-ide-agent-worktree-and-canonical-project-path-diverge/154663)._
