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.227 Home All releases olderv2.1.226 v2.1.228newer
Claude Code v2.1.227

Sync stops itself after repeated auth refusals, repeated crashes, or a rehomed workspace

You'll notice
Useful2 Signal2
Remote Sync

Worker syncing shuts itself off after repeated auth failures, crashes or a moved workspace.

What

Rather than retrying forever, the worker syncer turns itself off on three conditions and the session continues without syncing.

Details
  • MAX_CONSECUTIVE_AUTH_REFUSALS (10) consecutive auth refusals, or a single response saying the session is refused, disarms it with a dir_sync_worker_session_refused warning.
  • MAX_CONSECUTIVE_PHASE_CRASHES (3) unexpected exceptions in a pull or push phase also disarms it; each crash logs dir_sync_worker_phase_crashed with the error name, error code and consecutive count.
  • If a resumed worker finds itself pointed at a workspace that already has a non-empty published record from someone else, it logs dir_sync_worker_rehomed_disarmed and stops rather than merging the two.
Evidence

dir_sync_worker_rehomed_disarmed

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.227 →