You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
ImprovementsKind: in v2.1.333,
ImprovementsSection of the release
What
Before writing diagnostics lines to the file named in CLAUDE_CODE_DIAGNOSTICS_FILE, Claude Code now checks that the target is a plain file with no other hard links. A hard link is a second name for the same file somewhere else on disk, so writing through one name changes the file under every name.
If the check fails, Claude Code drops the diagnostics lines and logs this warning once: "Diagnostics lines dropped (reported once): CLAUDE_CODE_DIAGNOSTICS_FILE must be a plain file with no other hard links". Before, it appended to the path with no such check.
Why
If your diagnostics file is a hard link or not a plain file, output to it now stops, with only that single warning to tell you. Point the variable at an ordinary file to keep receiving diagnostics.