{"version":"2.1.328","anchor":"worktree-cleanup-and-worktree-resume-tweaks","canonical_anchor":"worktree-cleanup-and-worktree-resume-tweaks","heading":"Changes to worktree cleanup and resuming with --worktree","tier":"notice","area":"Worktrees","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/worktree-cleanup-and-worktree-resume-tweaks","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Changes to worktree cleanup and resuming with `--worktree`\n\nClaude Code now clears two stored worktree details before cleanup, and can resume a worktree as it is under some conditions\n\n**Unclear.** It is not known when a worktree is now kept or removed, or when resuming it as it is applies.\n\n**What**\n\nA worktree is a separate working copy of a git repository that Claude Code can work in, started with `--worktree`. Two changes affect it:\n\n- Cleanup now removes two stored details from the worktree's session record before it runs. One of them is checked for a value meaning the worktree may go.\n\n- Creating a worktree can now ask to resume it as it is, under two conditions.\n\n**Why**\n\nThis may change when a worktree is kept or removed as a session ends.\n\n- Area: Worktrees\n- Names: `--worktree`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}