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

Directory sync only runs the git it found when the process started

You'll notice
Useful3 Signal3
Directory Sync

Directory sync pins git to the PATH from startup, so later PATH changes can't swap it.

What

Sync now resolves git from the absolute directories on the PATH as it was when Claude Code launched, so a later change to PATH cannot make sync run a different git. If git is not found there, sync logs once, records a new telemetry event, and substitutes a deliberately nonexistent path so every sync git call fails rather than running something unexpected.

Details
  • Message: "[dirSync] git is not on the absolute entries of the PATH this process was started with; no sync git runs".
  • Sentinel path: /nonexistent/git-not-on-the-PATH-this-process-was-started-with. Every sync git spawn goes through this resolver.
  • Sync git calls are also hardened: protocols disabled, no lazy fetch, no terminal prompt, explicit bare-repo safety, no submodule recursion.
  • The global and system git config passthrough now reads the captured startup environment rather than the live one, and always clears GIT_CONFIG.
  • No flag; live wherever directory sync runs.
Evidence

/nonexistent/git-not-on-the-PATH-this-process-was-started-with, tengu_dir_sync_git_not_on_start_path

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 →