{"version":"2.1.333","anchor":"diagnostics-file-refuses-hard-linked-files","canonical_anchor":"diagnostics-file-refuses-hard-linked-files","heading":"Diagnostics file must be a plain file with no other hard links","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/diagnostics-file-refuses-hard-linked-files","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Diagnostics file must be a plain file with no other hard links\n\nClaude Code now skips writing to `CLAUDE_CODE_DIAGNOSTICS_FILE` unless it is a plain file with no other hard links, and logs one warning\n\n**What**\n\nBefore 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.\n\nIf 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.\n\n**Why**\n\nIf 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.\n\n- Area: Elsewhere\n- Names: `CLAUDE_CODE_DIAGNOSTICS_FILE`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}