Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.292 ·

File reads, search and attachments hardened against swapped paths

Attachments are re-checked when opened, Grep reads through an inherited file handle, and new directories are private to your user

Group of 3 You'll notice Internal Changes
JSON All of v2.1.292
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Bash ToolArea: what it touches
Internal ChangesKind: in v2.1.292,
ImprovementsSection of the release

What

Several changes tighten how Claude Code opens and reads files:

  • Attachments: in --restricted mode, or when blockReadsOutsideWorkingDirectories is set, the check on attached files now records which path it approved and the file's identity. When the file is opened, Claude Code compares the device and inode numbers (the file's identity on disk) and, on Linux, checks through /proc/self/fd that the open file really is at the approved path. If not, it refuses with errors such as "it opened at a different path than approved". Before, only the device and inode were compared. The documentation changelog lists a related fix: an @-mention under the read block or --restricted could read a file outside the working directories through a link changed mid-read.
  • Grep: the search program it runs, ripgrep, is now handed an already-open file through inheritFd instead of a /proc/<pid>/fd/N path, with extra checks on /proc/ paths.
  • Directories: a helper that creates directories now creates them with mode: 448, meaning 0700, so only your user can open them.
  • Bash: the tool result gains leftRunningPgid when a command leaves its process group (the command and anything it started) still running after a turn.

Why

These close gaps where a file or link could be swapped between the moment Claude Code checks it and the moment it reads it, which matters most in restricted setups. The Bash addition makes it visible when a command leaves processes running in the background.

See this entry in the whole of v2.1.292 →

Feedback