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.246 Home All releases olderv2.1.245 v2.1.247newer
Claude Code v2.1.246

Debug log lines are no longer lost when the log rotates

You'll notice
Useful2 Signal1
Internals

Debug log lines written during a log rotation are kept rather than dropped.

What

The rotating debug log used by runners and background sessions now buffers lines written while a rotation is under way and replays them into the new file, instead of dropping them.

Details
  • Writes after the log is closed are ignored rather than erroring.
  • Closing waits for any rotation in flight before ending the stream, using a helper that returns immediately if the stream is already closed.
Evidence

[runner:session] debug log flush failed (best-effort):

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 →