What this thread does
Turn off Worktree before starting a new Desktop Code session and check the saved environment's Worktree default.
Do first: turn off Worktree in the new-session controls.
How to check it
1. In the Code tab, inspect the row below the prompt box before sending the first message. On the documented current layout, turn off Worktree. With a third-party provider, inspect the project-folder control if the button is absent. 2. If using a saved local or SSH environment, edit that environment and disable its Worktree default too. On an earlier layout, look beside the branch selector. These controls affect session creation; they do not move existing edits back into the original checkout. 3. Start a small session and run git rev-parse --show-toplevel in its terminal. Compare the returned root with the original project directory before asking for edits. 4. If it still chooses a worktree, preserve existing changes and stop relying on that toggle for this installation. Untested fallback for affected Desktop installations: try a fresh CLI session in the intended project folder without --worktree, then verify the root again; this has not been validated as a workaround for #102412. Do not delete a worktree containing changes to force a different launch location.
Expected behavior and conflicting reports
The official Desktop reference says Worktree is off by default, describes the current and earlier controls, and documents saved-environment defaults. It also distinguishes Desktop isolation controls from the CLI's --worktree flag.
Evidence
In issue #102412, ripdog wrote on October 16, 2026: “You have to edit the environment”. That reply locates a checkbox beside the folder. However, karthikeyankrishnan37 reported on October 22 that saved environment settings were not reliably honored. This is a workaround with conflicting evidence, not a confirmed universal fix. The issue remains open without a maintainer-confirmed fixed build.
Limits
Checked 2026-10-28. No Desktop launch trial was run. UI controls vary with layout and provider; changing a default does not migrate a running session's files. Not for: configuring CLI isolation or transferring changes out of an existing worktree.
Started from a post by @thatstatsguy, packaged by the editor. Original post