Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.248 ·

Worktree exit dialog no longer pretends an uncountable branch has zero commits

Leaving a worktree warns about possible unpushed commits instead of claiming zero.

You'll notice New Features
JSON All of v2.1.248
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
WorktreesArea: what it touches
New FeaturesKind: in v2.1.248,
New FeaturesSection of the release
What

When leaving a worktree, Claude Code counts commits on its branch to tell you what removal would discard. If that count cannot be computed, the dialog now says so and warns the branch may hold unpushed commits, instead of silently claiming zero. Live for everyone.

Details
  • The count is only used when there is an original HEAD commit and git rev-list --count exits 0; hook-based worktrees count as zero; otherwise the count is null.
  • Unknown counts are reported as -1 in tengu_worktree_kept and tengu_worktree_removed rather than a fabricated 0.
  • The removal confirmation names the branch and mentions discarded work only when there were uncommitted changes.
Evidence

Worktree and branch ${a.worktreeBranch} removed., may hold unpushed commits (commit baseline unavailable). The branch will be deleted if you remove., tengu_worktree_removed

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.248 →

Feedback