Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.248 Home All releases olderv2.1.247 v2.1.250newer
Claude Code v2.1.248

Local-only work check can trust the main checkout

You'll notice
Useful3 Signal2
Worktrees

You get fewer false "you have unpushed work" warnings when the main checkout already has them.

What

The check for whether a worktree holds commits that exist nowhere else can now treat the main checkout as proof they are safe. If the branch's upstream points at the main worktree's current position, a second check against that position can declare the tree clean, avoiding a false "you have unpushed work" warning.

Details
  • Enabled by an option passed by the caller; the source here does not show its default.
  • A new helper confirms the repository is not bare and that the main checkout's HEAD reference matches before the vouch is accepted.
Evidence

{ primaryCheckoutVouches: r }

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

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.248 →