Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.274 ·

Worktree resume: git reset now uses '--' separator and per-directory env; new verified-worktree check gates fast-resume

Worktree fast-resume now checks the worktree is verified before resetting, and handles reset failure more safely

TierUnder the hoodhow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaGit Worktreeswhat it touches
KindImprovementsin v2.1.274,
Under the hood

Worktree fast-resume now checks the worktree is verified before resetting, and handles reset failure more safely

What

When resuming a git worktree (a separate working copy of a repository) quickly, the code now:

  • builds its git environment per working directory instead of sharing one environment across worktrees
  • adds a -- separator to the git reset --hard command, which prevents a branch or ref name from being misread as a file path
  • checks that the worktree is in a verified state with no pending marker before attempting the fast reset
  • on reset failure, returns nothing and logs a warning instead of silently continuing as if the reset had worked
Why

These changes make worktree resume safer: a failed or unverified reset no longer proceeds silently, which could otherwise leave a worktree in an unexpected state without any warning.

See this entry in the whole of v2.1.274 →