You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
PermissionsArea: what it touches
ImprovementsKind: in v2.1.331,
ImprovementsSection of the release
What
When you give Claude Code permission to read a file, it now holds on to that exact file and reads it through that handle. If the file has become a hard link since you approved it, Claude Code refuses to read it and says so. A hard link is a second name for the same file, so the same contents may also live somewhere else.
Claude Code also now checks for a symlink, a shortcut that points to another location, where the approved folder path finally leads.
Before, the file was opened directly, and the hard link check only ran in the CLAUDE_CODE_EVAL_CONFINED mode.
Why
This stops a file from being swapped for something else in the gap between your approval and the actual read.