{"version":"2.1.334","anchor":"resumed-worktree-fast-reset-adds-a-check-that-another-branch","canonical_anchor":"resumed-worktree-fast-reset-adds-a-check-that-another-branch","heading":"Resuming a worktree no longer resets it when that could lose commits","tier":"notice","area":"Worktrees","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/resumed-worktree-fast-reset-adds-a-check-that-another-branch","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Resuming a worktree no longer resets it when that could lose commits\n\nBefore resetting a resumed worktree, Claude Code now checks that another branch holds its commit and skips the reset if not\n\n**What**\n\nA worktree is a separate working copy of a git repository, often used so a task can run without touching your main checkout. When you resume a session in a worktree, Claude Code may reset that worktree to a new starting point.\n\nBefore doing that reset, Claude Code now checks that some other branch or remote already holds the commit the worktree started from. It skips the reset in two cases:\n\n- no other branch or remote holds that commit\n\n- git cannot say either way\n\n**Why**\n\nCommits you made in the worktree and never pushed are no longer at risk of being left behind with nothing pointing to them.\n\n- Flag `tengu_playful_valley`: Not enough to say (read for one account on one subscription tier against v2.1.334; this account: no value returned, anonymous baseline: no value returned, compiled default: on) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Worktrees\n- Names: `tengu_playful_valley`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}