Claude Code v2.1.214

変更項目 47 件

公式 CHANGELOG.md

今回の更新では、単一階層ディレクトリの許可ルール適用範囲が明確化され、より厳密な権限管理が可能となりました。また、Windows环境のPowerShellツールにおける表示・挙動の不具合修正や、Dockerデーモンリダイレクトフラグに対する権限確認の厳格化など、安全性と安定性を向上させる修正が広範囲で行われています。その他、OpenTelemetryのログ相関性強化や長時間のツール実行時における進捗可視化など、観測性と運用の利便性を高める機能改善も実施されました。

追加(Added)

7件
EndConversationツールを追加しました。これにより、著しく攻撃的なユーザーや脱獄の試みに対してセッションを終了させることが可能です。
英語原文を表示
Added the EndConversation tool: Claude can end sessions with highly abusive users or jailbreak attempts, as on claude.ai since 2025 — see https://www.anthropic.com/research/end-subset-conversations
長時間実行されるツール呼び出しにおいて、応答が途絶えてしまうのを防ぐため、定期的な進捗ハートビートを追加しました。
英語原文を表示
Added a periodic progress heartbeat for long-running tool calls that previously went silent
メモリファイルのフロントマターに、ISO形式のmodified(更新)タイムスタンプを追加しました。
英語原文を表示
Added an ISO modified timestamp to memory file frontmatter
OpenTelemetryログイベントにmessage.uuid、client_request_id、tool_source属性を追加し、メッセージ間の相関とツールの出所を追跡できるようにしました。
英語原文を表示
Added message.uuid, client_request_id, and tool_source attributes to OpenTelemetry log events for message-level correlation and tool provenance

変更後

複雑なワークフロー実行時のデバッグやテレメトリ分析が容易になります。

OpenTelemetryのコンテンツ属性の切り捨て制限を60KBから設定可能に変更しました。
英語原文を表示
Added CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH to configure the 60 KB truncation limit on OpenTelemetry content attributes

変更後

テレメトリバックエンドの制限に合わせてログ収集量を細かく制御できます。

subagentStatusLineのペイロードに「推論の努力レベル(effort)」を追加し、エージェントパネルでモデルと努力設定を表示できるようにしました。
英語原文を表示
Added reasoning effort to the subagentStatusLine payload, so custom agent rows can render model and effort

変更後

エージェントが現在どの程度のコストと深さで思考しているかを一目で確認できます。

関連ドキュメント

Dockerデーモンをリダイレクトするフラグ(--urlや--identityなど)が付与されたdockerコマンドに対して、権限プロンプトを表示するように変更しました。
英語原文を表示
Added permission prompts for docker commands (including the Podman docker shim) carrying daemon-redirect flags (--url, --connection, --identity, and Podman's remote mode) that previously ran without one

変更後

外部のDockerデーモンや予期しない環境への接続を意図せず実行する事態を防げます。

変更(Changed)

4件
単一階層のdir/**フックのif条件が<cwd>/dirのみに一致するように変更しました。任意の階層での一致が必要な場合は**/dir/**を使用してください。
英語原文を表示
Changed single-segment dir/** hook if: conditions to match only <cwd>/dir; write **/dir/** for any-depth matching. deny/ask permission rules keep their any-depth match.

変更後

フックの適用範囲が予測しやすくなり、誤適用を防げます。

-m/--magic-file または -f/--files-from を使用する file コマンドを、自動許可の読み取り専用ではなく権限確認の対象に変更しました。
英語原文を表示
Changed file commands using -m/--magic-file or -f/--files-from to require permission instead of being auto-allowed as read-only

変更後

fileコマンドを介した不正なファイルパス指定や予期しない処理を未然に防げます。

関連ドキュメント

接続プーリングにおいて、 stale-connection エラー発生時にプールを無効化し、再試行時に新しいソケットを開くように変更しました。
英語原文を表示
Changed keep-alive connection pooling to disable after a stale-connection error, so retries open a fresh socket

変更後

接続エラー発生時の復旧が早くなります。

SessionStart フックにおいて、セッションがフォークで開始された場合、ソースを resume ではなく fork と報告するように変更しました。
英語原文を表示
Changed SessionStart hooks to report source "fork" when a session begins as a fork instead of "resume"

変更後

ログやイベント監視において、セッションの発生経緯が正確に特定できます。

改善(Improved)

1件
ホームディレクトリでのワークスペース信頼エラーにおいて、信頼設定がそこに保存されないことを明示し、プロジェクトディレクトリでの実行を促すように改善しました。
英語原文を表示
Improved the claude rc workspace-trust error in the home directory to say trust there is never saved and to suggest running from a project directory

変更後

なぜ信頼設定が求められているのか、どこで作業すべきかが直感的に分かります。

関連ドキュメント

修正(Fixed)

35件
単一階層のディレクトリ指定(dir/**)を用いた許可ルールが、サブディレクトリも含めて意図せず広範に適用されてしまう問題を修正しました。
英語原文を表示
Fixed single-segment dir/** allow rules like Edit(src/**) auto-approving writes to nested dir/ directories anywhere in the tree instead of only <cwd>/dir

変更後

意図しないディレクトリへの書き込みが自動承認されるリスクを避けられます。

Windows PowerShell 5.1セッションで実行されるコマンドに影響する権限チェックのバイパス問題を修正しました。
英語原文を表示
Fixed a permission-check bypass affecting commands run in Windows PowerShell 5.1 sessions
Bashのパーサーと権限解析器で解釈が異なるファイル記述子のリダイレクト形式において、権限チェックが確実にブロックするように修正しました。
英語原文を表示
Fixed Bash permission checks to fail closed on file-descriptor redirect forms that bash parses differently than the permission analyzer
10,000文字を超える非常に長いコマンドが適切に判定されない問題を修正し、今後は自動実行されず必ず承認を求めるようにしました。
英語原文を表示
Fixed Bash permission checks misjudging very long commands — commands over 10,000 characters now always prompt instead of running automatically
zshの変数の添字や [[ ]] 内の修飾子がinert textとして扱われていたBashパーミッションチェックを修正し、正しく承認を求めるようにしました。
英語原文を表示
Fixed Bash permission checks treating zsh variable subscripts and modifiers in [[ ]] comparisons as inert text — these commands now prompt for approval
helpやmanコマンドにおいて、コマンド置換やパスの誤用など、安全でないオプションを実行できる脆弱性を修正しました。
英語原文を表示
Fixed Bash permission checks to no longer auto-approve certain help and man commands that could run unsafe options, command substitutions, or backslash paths

変更後

不審なコマンド実行を意図せず許可してしまうリスクが減ります。

関連ドキュメント

ローカルの確認ダイアログが表示される前にリモートセッションで権限プロンプトが進行してしまう問題を修正しました。
英語原文を表示
Fixed permission prompts on remote sessions that could proceed before the local confirmation dialog
GrowthBookの機能フラグがnullと評価される際のクラッシュと、破損したフラグペイロードによりキャッシュが全消去されるバグを修正しました。
英語原文を表示
Fixed a crash when a GrowthBook feature evaluates to null, and a bug where a malformed flag payload could wipe the cached feature flags
Linux環境において、Bashツールによるpkill実行時にCLI自身のプロセスが巻き込まれ、セッションが終了する問題を修正しました。
英語原文を表示
Fixed Bash tool killing the Claude session when a pkill -f pattern accidentally matched the CLI's own process (Linux)

変更後

サブコマンド実行中にAIセッションが意図せず中断されることがなくなります。

設定ファイルがデバイスファイルや巨大ファイルである場合に発生していたメモリ消費の増加を抑止し、2MBを超えるファイル読み込み時にエラーを表示するようにしました。
英語原文を表示
Fixed unbounded memory growth when --settings points at a device file or multi-GB file; oversized (>2 MiB) settings files now fail at startup with a clear error

変更後

不適切な設定ファイルによるシステム全体のメモリ枯渇を防げます。

Windows上の企業向けプロキシ環境でストリーミングが「Socket is closed」エラーで失敗する問題を修正しました。
英語原文を表示
Fixed streaming turns failing with "Socket is closed" behind corporate proxies on Windows
低速なSDK/パイプライン消費者のために、出力の終了処理でバッファが切り捨てられないよう、キューのバイト数に応じた調整を行うようにしました。
英語原文を表示
Fixed stream-json output truncation at exit for slow-reading SDK/pipeline consumers; the exit drain now scales with queued bytes instead of a flat 2s cap
スケジュール実行されたタスクにおいて、設定されたプロンプトが信頼できない入力として拒否されていた問題を修正し、タスクとして正常に配信されるようにしました。
英語原文を表示
Fixed scheduled tasks refusing their own configured prompt as untrusted input — the fired prompt is now delivered as the session's assigned task

変更後

定期的な自動タスクがエラーで止まることなく実行されるようになります。

関連ドキュメント

子プロセスが標準入力を待機している際にPowerShellツールがタイムアウトまでハングする問題を修正しました。
英語原文を表示
Fixed PowerShell tool commands hanging until timeout when a child process waited on standard input (Windows)
PowerShellツールでPythonスクリプトを実行した際、非UTF-8データを標準入力から読み取るとUnicodeDecodeErrorでクラッシュする問題を修正しました。
英語原文を表示
Fixed Python scripts under the PowerShell tool crashing with UnicodeDecodeError when reading non-UTF-8 data from standard input (Windows)
PowerShellツール実行時、非ASCII文字が含まれる出力でUnicodeEncodeErrorが発生する問題や、PowerShell 7のANSIエスケープシーケンスが乱れる問題を修正しました。
英語原文を表示
Fixed Python scripts run via the PowerShell tool crashing with UnicodeEncodeError on non-ASCII output, and PowerShell 7 error messages containing raw ANSI escape sequences (Windows)

変更後

Windows環境でも文字化けや表示崩れを気にせずPowerShellツールを活用できます。

PowerShellツールにおいてwhere.exeやfc.exe、diff.exeが負の応答を返した際にエラーと誤判定される問題を修正しました。
英語原文を表示
Fixed the PowerShell tool reporting where.exe, fc.exe, and diff.exe as errors when they return a valid negative answer (Windows)

変更後

Windows環境でのファイル比較やツール検索が中断されることなく行えます。

関連ドキュメント

PowerShellツールにおいて、>や>>によるリダイレクト出力が意図せずUTF-16LE形式になり、他のツールで読み取れなくなる問題を修正しました。
英語原文を表示
Fixed > and >> under the PowerShell tool on Windows PowerShell 5.1 writing UTF-16LE files that other tools couldn't read as UTF-8

変更後

PowerShellで作成したログファイルをGitや他のエディタで正常に扱えるようになります。

関連ドキュメント

シャットダウン時に背景デーモンが後継デーモンの制御ソケットを削除してしまい、次回のクライアント起動時に健全なプロセスがkillされる問題を修正しました。
英語原文を表示
Fixed a displaced background daemon deleting its successor's control socket on shutdown, which made the next client kill the healthy replacement daemon

変更後

デーモン再起動時に発生していた不安定な動作を防げます。

関連ドキュメント

バックグラウンドセッションを一時停止(← /background)した際に、デーモンとワーカープロセスが解放されず無限に残り続ける問題を修正しました。
英語原文を表示
Fixed background sessions parked with ← or /background and left idle keeping the background daemon and a worker process alive indefinitely

変更後

使っていないセッションがメモリやCPUを占有し続けるのを防げます。

関連ドキュメント

バックグラウンドサービスがアイドル状態になった後、完了したセッションがclaude rmやエージェントビューから削除できなくなる問題を修正しました。
英語原文を表示
Fixed completed background sessions being impossible to remove via claude rm or the agent view once the background service had gone idle

変更後

不要になった完了済みセッションをいつでも整理・削除できます。

関連ドキュメント

Gitリポジトリ外のフォルダで作成されたバックグラウンドセッションがエージェントビューから削除できない問題を修正しました。
英語原文を表示
Fixed background sessions dispatched from a non-git folder being impossible to delete from the agents view

変更後

プロジェクトの場所を問わず、セッション管理が統一的になります。

関連ドキュメント

セッションストア内に読み取り不可能なフォルダが存在すると、停止済みバックグラウンドセッションの再開に失敗する問題を修正しました。
英語原文を表示
Fixed reopening a stopped background session failing to restore its saved conversation when an unreadable folder exists in the session store
リモートコントロールが明示的に有効になっていないセッションで、セッション準備完了のプッシュ通知が誤って飛ぶ問題を修正しました。
英語原文を表示
Fixed the Remote Control "session ready" push notification firing for sessions where Remote Control was not explicitly enabled

変更後

不要なプッシュ通知でデバイスが騒がしくなるのを防げます。

/install-github-app および /mcp 設定メニューがエージェントビューでブロックされていた問題を修正し、端末が接続されていないバックグラウンドセッションでのみ拒否するように変更しました。
英語原文を表示
Fixed /install-github-app and the /mcp settings menu being blocked in agent-view sessions — they're now refused only in background sessions with no terminal attached

変更後

エージェントビューからも設定操作をスムーズに行えるようになります。

関連ドキュメント

CLIフラグ --settings 経由で有効化したプラグインが読み込まれない問題を修正しました(v2.1.181以降の回帰)。
英語原文を表示
Fixed plugins enabled via the --settings CLI flag not loading (regression since v2.1.181)
OAuthトークンがローテーションされた後に、長時間のセッションで機能フラグが古いままになる問題を修正しました。
英語原文を表示
Fixed feature flags going stale in long-running sessions after the OAuth token rotates
/ultrareview がマージベースのないリポジトリで実行できない問題を修正し、追跡対象の全ファイルをレビュー候補として提案するようにしました。
英語原文を表示
Fixed /ultrareview refusing to run in repos with no merge base — it now offers to review all tracked files

変更後

初期段階のリポジトリでも、コードレビュー機能を活用できるようになります。

関連ドキュメント

shell-config のパスがディレクトリである場合に、claude update や claude doctor が停止したり、システム診断セクションが空白になる問題を修正しました。
英語原文を表示
Fixed claude update and claude doctor hanging silently, and the /status System diagnostics section going blank, when a shell-config path is a directory

変更後

環境設定のパス構成に関わらず、診断ツールが確実に実行できるようになります。

メモリファイル保存時に frontmatter の値が # の箇所で誤って切り捨てられていた問題を修正しました。
英語原文を表示
Fixed memory frontmatter values being silently truncated at an inline # when memory files are saved

変更後

メモリファイルに複雑な指令を保存しても内容が破損しなくなります。

関連ドキュメント

複数の message_delta フレームを発行するストリームにおいて、セッションコストとトークンのテレメトリが二重計算されていた問題を修正しました。
英語原文を表示
Fixed session cost and token telemetry double-counting on streams that emit multiple cumulative message_delta frames

変更後

正確なコスト管理とトークン追跡が可能になります。

アドバイザー機能が思考中に発生していた不要な「ネットワークを確認してください」という警告を修正しました。
英語原文を表示
Fixed a spurious "check your network" warning that appeared while the advisor was thinking

変更後

デバッグ時に不要なノイズに悩まされることがなくなります。

フックのstdout JSONがスキーマバリデーションに失敗した場合に、終了コード2が適切にブロックとして動作しなかった問題を修正しました。
英語原文を表示
Fixed hooks with exit code 2 not blocking as documented when the hook's stdout JSON fails schema validation

変更後

フックによる権限ポリシーの強制力が、出力形式に関わらず維持されます。

関連ドキュメント

非同期コンテキスト外で送信されるOTelログイベントが、インタラクションスパンのトレースコンテキストを欠損していた問題を修正しました。
英語原文を表示
Fixed OTel log events emitted outside the turn's async context missing the interaction span's trace context

変更後

分散トレースにおいてログの関連付け漏れがなくなり、解析精度が上がります。

プロンプトやリソース更新中のMCP一時エラーにより、サーバーのスラッシュコマンドやリソースがクリアされる問題を修正しました。
英語原文を表示
Fixed MCP transient errors during prompts/resources refresh clearing the server's slash commands and resources

変更後

サーバー更新中の操作中断が減り、安定してツールが利用できます。

関連ドキュメント

X はてブ