Claude Code v2.1.336 ·
Opening an attached file can now refuse files with a second name or a deleted path
Claude Code's safe file open gains an option to refuse a file that has more than one name or has been deleted
Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
Internal ChangesKind: in v2.1.336,
Internal ChangesSection of the release
What
The safe way Claude Code opens files, such as attachments, now has an optional stricter mode. When it is used, the open is refused if:
- the file has more than one name on disk, meaning a hard link points to it, with the error "the file has a second name"
- the file's path shows it has been deleted
Why
This guards against tricks where a file is swapped, linked or removed between being checked and being opened.
See this entry in the whole of v2.1.336 →