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.
Diagnostics logging builds its payload lazily and swallows failures
Under the hood
Useful1Signal1
Elsewhere
Diagnostics logging only builds its payload when a diagnostics file is set, and never throws.
What's wrong with this entry?
Anonymous. No account, no email.
What
The diagnostics log writer now accepts a function as its payload and calls it only when a diagnostics file is configured, so the cost is skipped otherwise. If building or serialising the payload throws, it writes a failure record instead of letting the error escape.
Details
Active only when CLAUDE_CODE_DIAGNOSTICS_FILE is set.
Evidence
diagnostics_payload_failed
Strings lifted out of the shipped bundle, so the claim above can be checked against them.