File-identity checks for storage reads now use /proc/self/fd on supporting systems, falling back to stat comparison
After opening a file for a storage read, Claude Code now verifies the file's identity by checking, where available, that /proc/self/fd/<fd> still points at the expected path and isn't marked '(deleted)'. On systems where /proc isn't readable, it falls back to comparing stat information (link count, inode, and device) instead, and logs a one-time notice when it has to use that fallback.
This strengthens protection against a file being swapped out from under Claude Code between opening it and reading it, while still working on systems that lack a readable /proc.