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.246 ·

Background daemon spawn survives an npm reinstall in progress

Starting the background helper during an npm reinstall now waits and retries instead of failing.

You'll notice Bug Fixes
JSON All of v2.1.246
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Background TasksArea: what it touches
Bug FixesKind: in v2.1.246,
Bug FixesSection of the release
What

If Claude Code tries to launch its background daemon while npm is replacing the package on disk, spawn now waits for the binary to reappear and retries instead of failing outright.

Details
  • Triggered only when the launcher path is under /node_modules/@anthropic-ai/ and the failure is one of ENOENT, EACCES, ENOEXEC, ETXTBSY or similar.
  • Recorded as tengu_bg_daemon_spawn_reinstall_wait with waited_ms, recovered, respawn_ok and the errno.
  • Spawn now also returns the child's pid and exit promise, and the connect path records connect_errno when it gives up.
Evidence

tengu_bg_daemon_spawn_reinstall_wait

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

Feedback