Claude Code Changelog·2026年6月6日 09:55·約4分
Claude Code v2.1.166 の変更点
TL;DR
Anthropic は Claude Code のバージョン 2.1.166 をリリースし、主要モデルが過負荷時に試行するフォールバックモデル設定機能を追加しました。また、ツール名に対するグロブパターンサポートを強化し、セッション間のメッセージングの安全性も向上させました。
変更点
- プライマリモデルが過負荷または利用できない場合に、順次試行される最大 3 つのフォールバックモデルを設定するための fallbackModel 設定を追加しました。--fallback-model オプションは対話セッションにも適用されます。
- deny ルールのツール名位置で glob パターンサポートを追加しました("*" はすべてのツールを拒否します)。allow ルールは MCP 以外の glob を拒否し、deny ルール内の不明なツール名は起動時に警告を表示します。
- セッション間メッセージングの強化:他の Claude セッションから SendMessage を経由して中継されたメッセージにはもはやユーザー権限が含まれず、受信側は中継された権限リクエストを拒否し、自動モードではそれらがブロックされます。
-MAX_THINKING_TOKENS=0、--thinking オプションの無効化、およびモデルごとの思考切り替えにより、Claude API を通じてデフォルトで思考を行うモデルでの思考機能を無効化できるようになりました(3P プロバイダーは変更なし)。
-Claude Code は、API が予期せぬ再試行不可能なエラーを返した場合に、フォールバックモデルで 1 回だけターンを再試行します。認証、レート制限、リクエストサイズ、転送エラーは引き続き即座に表示されます。
-claude update コマンドでは、ダウンロード前にターゲットバージョンを通知するようになりました(以前は無音でした)。
-claude エージェント:リストに URL を入力すると、最初のプロンプトにその URL が含まれるセッションにフィルタリングされます。
-処理不可能な画像がセッションで送信された際に発生していた繰り返し「画像の処理ができない」エラーと、余分なトークン使用量を修正しました。
-起動時のワーカー登録中に一時的なバックエンド障害が発生した場合にリモートセッションが永久に停止する問題を修正しました。
- JetBrains IDE のターミナル(IntelliJ, PyCharm, WebStorm など)における 2026.1 以降のちらつきを、同期出力を有効化することで修正しました
- Kitty キーボードプロトコル(WezTerm, Ghostty, kitty)を使用するターミナルにおいて、Shift+非 ASCII 文字(例:Shift+ä → Ä)がドロップされる問題を修正しました
- Windows 上で、終了されたプロセスの子プロセスが出力パイプを保持している場合、PowerShell コマンドの検証が時間予算を大幅に超過してフリーズする偶発的な不具合を修正しました
- macOS でデーモンが接続中に停止した場合、後続する
claude --bg-pty-hostプロセスが 100% CPU を使用し続ける孤児化プロセスが発生する問題を修正しました /voiceの切り替え後に、古い認証チェックをクリアするために/loginが必須となる不具合を修正しました- 無効なエントリを持つ管理設定において、残りの有効なポリシーの強制が静かに無効化される問題を修正しました
${VAR}参照を使用している場合、管理設定のallowedMcpServers/deniedMcpServersプリディケートが一致しなくなる不具合を修正しました- クラウドエージェントから再開された際、「会話が見つかりません」というエラーで Git worktree のクラッシュループに陥るバックグラウンドエージェントセッションの問題を修正しました
- ストリーミング中に Ctrl+O 変換ビューで思考テキストが重複表示される問題を修正しました
- リモートセッション内で
/doctorを実行した際、矛盾する「リモートセッション内にいません」という失敗チェックが表示される不具合を修正しました - クラウドエージェントのディスパッチおよび返信入力欄で複数行プロンプトを入力している際、カーソルが最初の行の末尾に固定される問題を修正しました
- Unicode サポートがないターミナルにおいて、タスクリスト内のバックグラウンドエージェント行間に空白行が表示される不具合を修正しました
原文を表示
What's changed
- Added fallbackModel setting to configure up to three fallback models tried in order when the primary model is overloaded or unavailable; --fallback-model now also applies to interactive sessions
- Added glob pattern support in deny rule tool-name position ("*" denies all tools); allow rules reject non-MCP globs, and unknown tool names in deny rules warn at startup
- Hardened cross-session messaging: messages relayed via SendMessage from other Claude sessions no longer carry user authority — receivers refuse relayed permission requests, and auto mode blocks them
- MAX_THINKING_TOKENS=0, --thinking disabled, and the per-model thinking toggle now disable thinking on models that think by default via the Claude API (3P providers unchanged)
- Claude Code now retries a turn once on the fallback model when the API rejects an unexpected non-retryable error; auth, rate-limit, request-size, and transport errors still surface immediately
- claude update now announces the target version before downloading instead of going silent
- claude agents: typing a URL into the list now filters to the session whose first prompt contained it
- Fixed a recurring "image could not be processed" error and extra token usage when an unprocessable image was sent in a session
- Fixed remote sessions becoming permanently stuck when a brief backend disruption occurred during worker registration at startup
- Fixed flickering in JetBrains IDE terminals (IntelliJ, PyCharm, WebStorm, etc.) on 2026.1+ by enabling synchronized output
- Fixed Shift+non-ASCII characters (e.g. Shift+ä → Ä) being dropped in terminals using the Kitty keyboard protocol (WezTerm, Ghostty, kitty)
- Fixed PowerShell command validation occasionally hanging far past its time budget on Windows when a killed process's children held its output pipes
- Fixed orphaned claude --bg-pty-host processes spinning at 100% CPU after the daemon dies while connected on macOS
- Fixed voice mode requiring /login to clear a stale auth check after toggling /voice
- Fixed managed settings with an invalid entry silently disabling enforcement of their remaining valid policies
- Fixed managed-settings allowedMcpServers/deniedMcpServers predicates not matching when they use ${VAR} references
- Fixed background agent sessions that entered a git worktree crash-looping with "No conversation found" when reopened from claude agents
- Fixed duplicated thinking text in the Ctrl+O transcript view while streaming
- Fixed /doctor showing a contradictory failed "Not inside a remote session" check when run inside a remote session
- Fixed the cursor sticking at the end of the first line when typing a multiline prompt in the claude agents dispatch and reply inputs
- Fixed blank lines appearing between background agent rows in the task list on terminals without Unicode support
この記事をシェア
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み