{"version":"2.1.331","anchor":"worktree-exit-may-keep-the-process-cwd-and-tmuxwindows-clea","canonical_anchor":"worktree-exit-may-keep-the-process-cwd-and-tmuxwindows-clea","heading":"Leaving a worktree may no longer move Claude Code back to the original folder","tier":"notice","area":"Worktrees","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/worktree-exit-may-keep-the-process-cwd-and-tmuxwindows-clea","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Leaving a worktree may no longer move Claude Code back to the original folder\n\nOn worktree exit or keep, Claude Code may stay where it is instead of returning to the recorded folder, and retries refused git steps\n\n**Unclear.** When Claude Code stays put and when it still returns to the original folder is not clear.\n\n**What**\n\nA worktree is a separate working copy of your repository. When you exit or keep one, Claude Code used to always move back to your original folder. It can now stay where it is, noting that it does not enter the recorded folder for now.\n\nCleanup also retries a git step when git refused it the first time.\n\n**Why**\n\nThis changes which folder Claude Code is in after you leave a worktree.\n\n- Area: Worktrees\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}