Claude Code v2.1.212 で会話分岐機能強化
本文の状態
日本語全文を表示中
詳細モードで約10分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
Claude Code Changelog
Claude Code のバージョン v2.1.212 がリリースされ、セッション管理の改善やバグ修正が行われたが、これは既存機能の安定化とユーザビリティ向上を目的としたマイナーなアップデートである。
AI深層分析を開く2026年8月1日 04:06
AI深層分析
キーポイント
セッション管理とリソース制御の強化
/fork コマンドによる会話のコピー機能や、WebSearch およびサブエージェントの実行回数制限が導入され、無限ループを防ぐ仕組みが整備された。
バグ修正と安定性の向上
ファイル操作の権限確認漏れや、シンボリックリンク処理における誤動作、Windows 環境での PowerShell バージョン競合など、複数の深刻な不具合が修正された。
ユーザビリティと操作性の改善
過去のセッションからの再開機能や、エラーメッセージの明確化、キーボードショートカットの不具合修正により、開発体験が向上した。
エラー修正とセッション管理の改善
/ultrareviewのエラーやリポジトリ設定による起動失敗など、複数のバグを修正した。また、バックグラウンドセッションの再開やチーム通知の問題も解決された。
Web検索とプロンプトキャッシングの信頼性向上
API過負荷時のエラー表示やレート制限への対応が強化され、Web検索・取得の安定性が向上した。システムブロックによるプロンプトキャッシュもゲートウェイやカスタムURLで動作するようになった。
重要な引用
/fork now copies your conversation into a new background session while you keep working
Added a session-wide limit on WebSearch tool calls to stop runaway search loops
Fixed plan mode auto-running file-modifying Bash commands without a permission prompt
Fixed hosted (host-managed) sessions failing at startup when repository settings configured mTLS certs, extra CA bundles, or OAuth scopes; these transport settings are now ignored with a warning
編集コメントを表示
編集コメント
今回のアップデートは、大規模な機能追加ではなく、既存のワークフローを安定させるための微調整に焦点を当てている。特に無限ループ防止や権限確認の強化は、実務環境での利用において重要なセキュリティと安定性の向上と言える。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
変更点
- /fork コマンドを実行すると、現在の会話が新しいバックグラウンドセッションとしてコピーされます(Claude Agents の各行に独立したエントリとして作成)。作業中はそのまま継続でき、以前は起動していたインセッション用サブエージェントは、現在は /subtask コマンドとして扱われます。
- クラウドの自動モード設定をデフォルト状態に戻す「claude auto-mode reset」機能を追加しました。実行時には確認プロンプトが表示されますが、--yes オプションを指定することでスキップできます。
- WebSearch ツールの呼び出し回数にセッション全体の上限を設定する機能を追加しました(デフォルトは 200 回)。CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION 環境変数で設定値を変更可能です。これにより、検索ループが無限に続く「暴走」を防ぎます。
- サブエージェントの生成回数にもセッションごとの上限を設定しました(デフォルトは 200 回)。CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION 環境変数で上書き可能です。同様に、委任処理の無限ループを防止します。/clear コマンドを実行すると、この予算リセットされます。
- MCP ツールの呼び出しが 2 分以上経過した場合、自動的にバックグラウンドへ移行するようになりました。これによりセッションの操作性を維持できます。CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS 環境変数で閾値を設定したり、機能を無効化したり可能です。
- エージェントビューで /resume と入力すると、過去のセッション一覧(リストから削除されたセッションも含む)がポップアップ表示されます。選択したセッションをバックグラウンドセッションとして再開できます。
- プランモード実行時に、ファイル操作を行う Bash コマンド(touch や rm など)が許可プロンプトや SDK の canUseTool コールバックを経ずに自動実行される不具合を修正しました。
- .claude/worktrees ディレクトリに存在するリポジトリコミット済みシンボリックリンクの後にワークツリーを作成した際、リポジトリ外にファイルが作成されてしまうバグを修正しました。
- continue:false フックの実行中にツールエラーが発生した場合や処理途中での完了時に、フックの停止指示が失われる不具合を修正。また、フックインフラのエラーがユーザーによる拒否として誤って報告される問題も解決しました。
- Bash ツールの実行中に SIGTERM が発生し、プロセスツリーが孤児化して print/SDK モードで問題が発生していたのを修正しました。現在は CLI 側でターンを中止し、プロセスツリーを強制終了してエラーコード 143 で終了します。
- Windows でグループポリシーにより PowerShell 5.1 がブロックされている場合に、
/backgroundやclaude --bgコマンドが「EUNKNOWN: unknown error, uv_spawn」というエラーで失敗する問題を修正しました。現在はデーモン側で優先的に PowerShell 7 を使用するように変更しています。
- パス名補完ポップアップが開いている状態でファイルパスを含むコマンドを実行しようとした際、シェルモード(!)が機能しなかった不具合を修正しました。
- 拒否理由が長く、絵文字の途中までで切り捨てられた場合に、自動モードの拒否通知で文字化けが発生する問題を修正しました。
- キー報告拡張機能を備えたターミナル環境において、エージェントビューのディスパッチ入力欄で Ctrl+J を押しても改行が入力されなかった不具合を修正しました。また、? ヘルプオーバーレイ内でこのショートカットキーも明示的に表示されるようにしています。
/ultrareviewコマンドが#123やPR 123、貼り付けられた PR URL の形式を受け付けない問題を修正しました。エラーメッセージには、実際に使用すべきコマンドの名称を明記するように改善されています。
- リモートに存在するブランチを
/ultrareviewが取得できていなかった不具合を修正しました。また、入力ミスがあった場合でも最も近い名前のブランチを提案する機能を実装しています。
/clearコマンド実行後の新しい会話において、課金確認プロセスがスキップされていた問題を修正しました。
- Claude Desktop 上で
/ultrareviewを使用した際に「git リポジトリではありません」というエラーが表示されるケースで、ターミナルコマンドの代わりにプロジェクト内のリポジトリフォルダを提案するように改善しました。
- リポジトリ設定で mTLS 証明書や追加 CA バンドル、OAuth スコープが構成されている場合、ホスト管理(host-managed)セッションが起動時に失敗する問題を修正しました。これらの転送設定は現在は警告を表示した上で無視されるようになります。
- セッション再開前にオフセットや制限条件付きでファイルを読み込んでいた場合に発生していた、誤った「ファイルはまだ読み込まれていません」というエラーを修正しました。
- 印刷/SDK モードで
--continueまたは--resumeオプションを指定してセッションを再開した後、「アクティブな EnterWorktree セッションがありません」というエラーで ExitWorktree が失敗する不具合を修正しました。
- リモートコントロールクライアントが実行中のセッションに途中参加した場合、ワークフローエージェントのグリッドが空のまま表示される問題を修正しました。
- ストリーミングモードでの制御リクエストが、ハンドラー処理完了前に完了扱いされてしまい、セッション再起動時にリクエストが失われる可能性があった不具合を修正しました。
/forkコマンドで作成されたバックグラウンドセッションで、状態書き込みの失敗後に「ライブ親」保護機能が失われる問題を修正しました。
- エージェントビューから停止したバックグラウンドセッションを再開いた際に、何のエラーも表示されずに失敗していた不具合を修正しました。現在はセッションが再開されるか、再開できない理由が表示され、強制的な再起動が可能になります。
- エージェントチーム機能において、チーム初期化処理がセッション内で再度実行された際、停止中のメンバーがリーダーに重複したアイドル通知を送信してしまう問題を修正しました。
- 計画承認ダイアログのフッターで、ファイルパスが長い場合に「ctrl+g to edit in」の一部が改行されてしまう表示崩れを修正しました。
- フルスクリーンモードでターミナルの高さと幅を同時にリサイズした際、ウェルカムバナーが古いパネル幅のまま固定される不具合を修正しました。
- 画面レイアウトが狭い場合に、差分プレビューの行番号や「+/-」マーカーが表示されなくなる問題を修正しました。
- ファイルの読み込みが部分的な場合にも @メンションが機能しなくなったり、プラグインのアンインストール先が誤ったマーケットプレイスになったり、終了コード 143 で誤って「コマンドタイムアウト」と表示される不具合を修正しました。
- Azure Monitor やチャンク転送エンコーディングを受け付けない他のエンドポイントから 411/400 エラーで拒否されていた OpenTelemetry の HTTP エクスポートが正常に動作するようになりました。
- SDK モードやヘッドレスモードで TRACEPARENT が設定されている際、OTLP イベントログレコードから trace_id や span_id が欠落していた不具合を修正しました。
- 画像が多い会話で「リクエストが大きすぎる」という誤ったエラーが発生していた問題を解消し、実際の原因を説明するようエラーメッセージも改善しました。
- API の負荷が高まっている際に、Web 検索や Web フェッチの結果として「API エラー」というテキストが返されてしまう不具合を修正しました。
- Web 検索と Web フェッチの信頼性を向上させ、529 エラーやレート制限がかかったリクエストに対して、バウンド(待機時間)を適切に設定して再試行する仕組みを追加しました。
- プロンプトキャッシュ機能を強化し、会話中のシステムブロックが LLM ゲートウェイやカスタムベース URL(Bedrock、Vertex、1P 等)の背後でも正しく機能するようにしました。
- バックグラウンドエージェントのアタッチ処理を改善し、コールドアタッチ時にセッション起動中に空白画面が表示される代わりに、即座に整形されたトランスクリプトを表示できるようにしました。
- エージェント間のメッセージングにおけるトークン使用量を削減しました。これにより、SendMessage の本文が再生履歴やツールの結果として重複して記録されなくなりました。
- セッションにタイトルがない場合、/fork コマンドでコピーを作成する際、プロンプト名を基にした名前を付けるように変更しました。これでエージェントビューの行を認識しやすくなりました。
- /btw コマンドを単独で使用した際、直近のやり取りにあるサイド質問パネルを開くよう動作を変更しました。これにより、過去の回答を閲覧できるようになりました。
- ← フッターヒントの表示を変更し、バックグラウンドエージェントが完了してユーザーの入力待ち状態ではない場合、一瞬「N 件完了」と点滅するようにしました。
- タスクツールの mode パラメータを非推奨とし、現在は無視されるようになりました。これにより、サブエージェントはデフォルトで親セッションの権限モードを引き継ぐようになります。
- エンタープライズ設定の forceLoginMethod を、ターミナルだけでなく VS Code 拡張機能、SDK、setup-token、GitHub アプリのインストールログインにも適用対象に拡大し、強制するように変更しました。
- セッションのトランスクリプト記録内容を変更し、各アシスタントメッセージごとに推論にかかる努力レベルを記録するようになりました。
- ヘッドレス環境や SDK を使用したセッションにおいて、ターン途中に set_model コントロールリクエストを適用するように変更しました。これにより、次のモデル呼び出しで即座に新しいモデルが使用され、次のターンを待たずに切り替わるようになります。
- エージェントビューおよび claude agents --json 出力において、サンドボックス待ち、MCP 入力待ち、または管理設定プロンプト待ちの状態にあるセッションのステータスを「作業中」から「入力を必要」と表示するように変更しました。
- 認証ステータスパネルのタイトルを「クラウド認証」から単に「認証」に変更しました。
- 以前のリリースノート(2.1.200)に記載された内容に誤りがあったため修正しました。tmux の 3.6 シリーズでは同期出力がサポートされていないため、新しい tmux でサポートされている場合は自動的に検出されます。
原文を表示
What's changed
- /fork now copies your conversation into a new background session (its own row in claude agents) while you keep working; the in-session subagent it used to launch is now /subtask
- Added claude auto-mode reset to restore the default auto-mode configuration, with a confirmation prompt (pass --yes to skip)
- Added a session-wide limit on WebSearch tool calls (default 200, tunable via CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION) to stop runaway search loops
- Added a per-session cap on subagent spawns (default 200, override with CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION) to stop runaway delegation loops; /clear resets the budget
- MCP tool calls running longer than 2 minutes now move to the background automatically so the session stays usable; configure the threshold or disable with CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS
- Typing /resume in the agent view now opens a picker of past sessions — including sessions deleted from the list — and resumes your pick as a background session
- Fixed plan mode auto-running file-modifying Bash commands (e.g. touch, rm) without a permission prompt or SDK canUseTool callback
- Fixed worktree creation following a repository-committed symlink at .claude/worktrees, which could create files outside the repository
- Fixed a continue:false hook's halt being dropped when the tool fails or completes mid-stream, and hook infrastructure errors being misreported as user rejections
- Fixed SIGTERM during a running Bash tool orphaning the command's process tree in print/SDK mode; the CLI now aborts the turn, kills the tree, and exits 143
- Fixed /background and claude --bg failing with "EUNKNOWN: unknown error, uv_spawn" on Windows when Group Policy blocks PowerShell 5.1; the daemon now prefers PowerShell 7
- Fixed shell mode (!) not executing commands containing file paths while the path autocomplete popup was open
- Fixed auto-mode denial notifications rendering broken characters when a long denial reason was truncated mid-emoji
- Fixed Ctrl+J not inserting a newline in the agent view dispatch input on terminals with extended key reporting, and surfaced the newline shortcut in the ? help overlay
- Fixed /ultrareview rejecting PR references like #123, PR 123, and pasted PR URLs; error hints now name the command you actually typed
- Fixed /ultrareview not fetching the branch from origin when it exists remotely; it now suggests the closest branch name on typos
- Fixed /ultrareview skipping the billing confirmation in a new conversation after /clear
- Fixed /ultrareview's "not a git repository" error on Claude Desktop now suggesting the project's repository folder instead of terminal commands
- Fixed hosted (host-managed) sessions failing at startup when repository settings configured mTLS certs, extra CA bundles, or OAuth scopes; these transport settings are now ignored with a warning
- Fixed a spurious "File has not been read yet" error when editing a file that had been read with offset/limit before resuming a session
- Fixed ExitWorktree failing with "no active EnterWorktree session" after resuming a session with --continue/--resume in print/SDK mode
- Fixed the workflow agent grid staying empty for Remote Control clients that join a session mid-run
- Fixed streaming-mode control requests being marked complete before their handler finished, which could lose the request on session restart
- Fixed background sessions created with /fork losing their live-parent protection after a state write failure
- Fixed reopening a stopped background session from the agent view failing silently — it now resumes the session, or shows why it can't and lets you force a restart
- Fixed agent teams: a stopping teammate could send the leader duplicate idle notifications when team initialization re-ran within a session
- Fixed the plan-approval dialog footer splitting "ctrl+g to edit in " apart when the file path is long
- Fixed the welcome banner keeping its old panel widths after a combined width+height terminal resize in fullscreen mode
- Fixed diff previews losing their line numbers and +/- markers in narrow layouts
- Fixed @-mentions attaching nothing after a partial file read, plugin uninstall targeting the wrong marketplace, and false "Command timed out" on exit code 143
- Fixed OpenTelemetry HTTP exports being rejected with 411/400 by Azure Monitor and other endpoints that don't accept chunked transfer encoding
- Fixed OTLP event log records missing trace_id/span_id when TRACEPARENT is set in SDK/headless mode
- Fixed conversations with many images incorrectly failing with "Request too large" errors, and improved the error message to explain the actual cause
- Fixed web search and web fetch returning "API Error" text as search results or page content when the API was overloaded
- Improved web search and web fetch reliability by retrying 529 errors and rate-limited requests with bounded backoff
- Improved prompt caching: the mid-conversation system block now works behind LLM gateways and custom base URLs (Bedrock, Vertex, 1P)
- Improved background agent attach: cold-attaching now instantly shows the formatted transcript while the session boots, instead of a blank wait
- Reduced token usage in inter-agent messaging: SendMessage bodies are no longer duplicated into replayed history and tool results
- Changed /fork to name the copy after your prompt when the session has no title, so the row is recognizable in the agent view
- Changed bare /btw to reopen the side-question panel on your most recent exchange so you can browse earlier answers
- Changed the ← footer hint to pulse N done for a moment when a background agent finishes while nothing needs your input
- Deprecated the Task tool's mode parameter (now ignored); subagents inherit the parent session's permission mode by default
- Changed Enterprise forceLoginMethod to be enforced for VS Code extension, SDK, setup-token, and install-github-app logins, not just the terminal
- Changed session transcripts to record the reasoning effort level on each assistant message
- Changed headless/SDK sessions to apply a set_model control request mid-turn; the next model round-trip uses the new model instead of waiting for the next turn
- Changed agent view / claude agents --json: sessions waiting on a sandbox, MCP-input, or managed-settings prompt now show as "Needs input" instead of "Working"
- Updated the auth status panel title from "Cloud authentication" to "Authentication"
- Corrected an earlier release note (2.1.200): tmux through the 3.6 series lacks synchronized output; newer tmux with support is detected automatically
AI算出
主要ニュースainew評価高い
AI コーディングエージェントの主要ツールである Claude Code の新機能とセキュリティ強化が詳細に記述されており、開発者にとって実用的な重大な更新情報であるため primary_news と判断した。
6つの評価軸を見る
- AI関連度
- 100
- 情報源の信頼性
- 100
- 新規性
- 75
- 調べる価値
- 100
- 重複の少なさ
- 100
- 日本での有用性
- 25
関連記事
News to Guide
ニュースの次に確認する
発表内容を、現在の料金や仕様と照らし合わせられる関連ガイドです。
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み