速報 09:57
サンドボックスに閉じたつもりのコマンドが、毎回シェルの起動ファイルを外で実行していました。
macOSとLinuxのこの抜けが、Claude Code 2.1.309 で直りました。
同じ版で、書き込み禁止の指定がシンボリックリンク越しに効かない点と、サンドボックス内のコマンドがMCP設定ファイルを書き換えられる点も修正されています。
自動承認でコマンドを流している人は、今日この版に上げてください。
出典の原文(引用)
Release v2.1.309: Fixed sandboxed Bash commands on macOS and Linux running the shell's startup files outside the sandbox before each command; Fixed macOS sandbox `denyWrite` glob patterns not applying at a path's real location when the pattern's folder is reached through a symlink; Fixed sandboxed commands and auto-accepted edits being able to modify the MCP config file passed with `--mcp-config`— github.com
