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 loads a mid-turn hook from a separate build chunk

Under the hood
Useful1 Signal3
Cloud Sessions

Directory sync loads an extra chunk to register a mid-turn hook, logging failures.

What

When the managed cloud worker starts syncing your directory, it now also loads a separate build chunk and registers a mid-turn hook. If that load fails it logs dir_sync_mid_turn_import_failed at warn level and continues.

Details
  • The hook's implementation is in a build chunk that is not part of the readable bundle, so what it does mid-turn is not visible here; only that dir sync now has a mid-turn registration path alongside its existing start path.
  • Reachable only when the dir-sync worker runs; setting CLAUDE_CODE_DISABLE_DIR_SYNC suppresses it.
Evidence

dir_sync_mid_turn_import_failed

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 →