Claude Code v2.1.199 の更新内容
Claude Code v2.1.199 は、サブエージェントのステータス報告や SSL エラー処理などの信頼性を大幅に改善し、複雑なコマンド列の処理能力を強化した重要なパッチリリースです。
キーポイント
エラー処理とリカバリの強化
SSL 証明書エラーやサーバー過負荷時のストリーミングレスポンス破棄、サブエージェントのレート制限失敗など、以前は隠蔽されていたエラーを即座に検知し、ユーザーに具体的な解決策を示すように修正されました。
サブエージェントの信頼性向上
親エージェントへの不完全な作業報告や API 制限エラーの誤った成功報告が解消され、アイドル状態のサブエージェントの表示ロジックも改善されました。
バックグラウンドエージェントとダウングレード対策
Linux での自己破損問題や macOS の SSH 起動失敗、停止コマンド競合などの深刻なバグが修正され、システム全体の安定性が向上しました。
コマンド実行とリソース管理の改善
スラッシュ記号によるスキル連鎖処理の上限引き上げや、メモリ不足時の明確なエラー表示、セッションファイルの不要な肥大化防止などが実装されました。
影響分析・編集コメントを表示
影響分析
このアップデートは、開発者が AI エージェントを本番環境で使用する際の信頼性を劇的に高めるものです。特にエラー処理の透明性向上とサブエージェント間の連携ロジックの修正は、複雑な自動化ワークフローにおける予期せぬ失敗を防ぎ、運用コストを削減する効果があります。
編集コメント
今回のリリースは、単なるバグ修正を超え、AI エージェントが複雑な環境で自律的に動作する際の「堅牢性」を再定義する重要な一歩です。開発者がツールに依存して作業を進める際、エラー発生時の挙動が予測可能になることは、実務上の大きな安心材料となります。
変更点
- /skill-a や /skill-b のようにスラッシュスキルをスタックして呼び出す場合、以前は最初の 1 つだけでしたが、現在は先頭のスキルを最大 5 つまですべて読み込みます。
- SSL 証明書エラー(TLS 検知プロキシ、NODE_EXTRA_CA_CERTS の不足、期限切れの証明書など)により、実行可能なガイダンスが表示される前にリトライが失敗していましたが、現在は即座に失敗し、修正方法のヒントを表示します。
- API が部分的な出力後にストリーミング中に過負荷やサーバーエラーを発生させた場合、それまでのストリーミング応答が破棄されていましたが、現在は不完全な応答を示す通知と共に保持されます。
- サブエージェントがレート制限やサーバーエラーによって中断された際、以前は静かに失敗していましたが、現在は親エージェントに対して部分的な作業結果を返すようになりました。
- サブエージェントが API エラー(例えば利用限度に達した場合など)を検出した際、以前は成功した結果として報告されていましたが、現在はエラー情報を親エージェントへ伝達します。
- Linux 上のバックグラウンドエージェントデーモンにおいて、不整終了によって破損したワーカーレコードが残った状態で約 50 秒ごとに自身および実行中のすべてのエージェントを停止させるバグを修正しました。
- macOS 上で SSH を介してバックグラウンドエージェントがコールドスタートできない問題(「Could not switch to audit session」というエラー)を修正しました。これはバージョン 2.1.196 で導入された回帰現象でした。
- クラウド停止処理がバックグラウンドエージェントの再起動と競合した際に、以前は静かに無効化されていましたが、現在は停止要求が正しく尊重されます。
- バックグラウンドジョブで長時間のコマンドを実行している際、進行状況インジケーターが数分間停止する問題を修正しました。
- メモリ不足の環境でバックグラウンドセッションを実行した際に、以前は汎用的なエラーが表示されていましたが、現在はメモリ不足であることを示し、リソースの解放を提案します。
- エージェントビューでバックグラウンドエージェントが完了した際に、リモートセッションが一時的に「作業中」と「アイドル」の間をフラップする問題を修正しました
- 他のサブエージェントがまだ動作している間にアイドル状態のサブエージェントがエージェントパネルから消えてしまう問題を修正しました。余剰なアイドルエージェントは現在、展開可能なサマリー行に折りたたまれます
- サブエージェントを表示中に /model または /fast と入力すると、リードのモデルピッカーが静かに開くという問題と、コマンドがリードに適用されることを説明する通知が表示されるようになりました
- SessionStart、Setup、SubagentStart フックで、終了コード 2 で終了する際に stderr が静かに隠されていた問題を修正しました。エラーは現在トランスクリプトに表示されます
- claude --dangerously-skip-permissions デーモンがサブコマンドを実行するのではなくチャットプロンプトとして扱われていた問題を修正しました
- リスポーンされたエージェントが以前のエージェント名を再利用した際に、SendMessage が静かに誤ってルーティングされる問題を修正しました。ツールは現在不一致を検出し、呼び出し元に再ターゲットを求めます
- 新しいメッセージがないセッションを開くまたは再開しても、トランスクリプトファイルが無駄に肥大化する問題を修正しました
- ← または /background でセッションをバックグラウンド化すると、エージェントビューの行から /color が削除される問題を修正しました
- 起動回復ダイアログから破損した設定ファイルをリセットすると、復元不能な状態で破壊されてしまう問題を修正しました。現在はまずファイルをバックアップします
- 異なるビルドまたは設定ディレクトリから実行されたセッションで、Chrome 内の Claude が再接続ページを繰り返し開く問題を修正しました
- プランモードが状態変更型のブラウザツール呼び出しに対してプロンプトを表示しなかった問題を修正しました。読み取り専用の browser_batch 呼び出しは現在正しく自動許可されます
- トランジエントサーバーレート制限エラー(使用量制限とは無関係な 429 エラー)は、サブスクリプションユーザーに対して転送が失敗する代わりに、バックオフ付きで自動的に再試行されるようになりました
- CLAUDE_CODE_RETRY_WATCHDOG は、容量以外のトランジエントエラーに対するデフォルトの再試行回数を 300 に引き上げ、CLAUDE_CODE_MAX_RETRIES の上限 15 を解除しました
- claude agents セッションの行では、冗長な「PR」ラベルを省き、プルリクエストリンクが単に #N(例:#123)として表示されるようになりました
原文を表示
What's changed
- Stacked slash-skill invocations like /skill-a /skill-b do XYZ now load all leading skills (up to 5), not just the first
- Fixed SSL certificate errors (TLS-inspecting proxies, missing NODE_EXTRA_CA_CERTS, expired certs) burning retries before showing actionable guidance — they now fail immediately with the fix hint
- Fixed streaming responses being discarded when the API emits a mid-stream overloaded/server error after partial output — the partial is now kept with an incomplete-response notice
- Fixed subagents cut off by a rate limit or server error silently failing instead of returning their partial work to the parent
- Fixed subagents reporting API errors (e.g. usage limit reached) as successful results — the error is now reported to the parent agent
- Fixed the background-agent daemon on Linux killing itself and every running agent every ~50 seconds after an unclean shutdown left a corrupted worker record
- Fixed background agents failing to cold-start over SSH on macOS with "Could not switch to audit session" (regression in 2.1.196)
- Fixed claude stop being silently undone when it raced a background-agent respawn — the respawn now honors the stop
- Fixed background job progress indicators stalling for minutes while the job ran long commands
- Fixed background sessions on memory-starved machines showing a generic error — they now indicate low memory and suggest freeing resources
- Fixed remote sessions briefly flapping between Working and Idle in the agent view when a background agent completes
- Fixed idle subagents vanishing from the agent panel while other subagents were still working; surplus idle agents now collapse into an expandable summary row
- Fixed typing /model or /fast while viewing a subagent silently opening the lead's model picker — a notice now explains the command applies to the lead
- Fixed SessionStart, Setup, and SubagentStart hooks silently hiding stderr when exiting with code 2 — the error is now shown in the transcript
- Fixed claude --dangerously-skip-permissions daemon being treated as a chat prompt instead of running the subcommand
- Fixed SendMessage silently misrouting when a re-spawned agent reuses a previous agent's name — the tool now detects the mismatch and asks the caller to retarget
- Fixed opening or resuming a session with no new messages needlessly growing the transcript file
- Fixed backgrounding a session with ← or /background dropping its /color from the agent view row
- Fixed resetting a corrupted config file from the startup recovery dialog destroying it unrecoverably — it now backs up the file first
- Fixed Claude in Chrome repeatedly opening the reconnect page when sessions run from different builds or config directories
- Fixed plan mode not prompting for state-changing browser tool calls; read-only browser_batch calls are now correctly auto-allowed
- Transient server rate-limit errors (429s unrelated to your usage limit) are now retried automatically with backoff for subscribers instead of failing the turn
- CLAUDE_CODE_RETRY_WATCHDOG now raises the default retry count for non-capacity transient errors to 300 and lifts the cap of 15 on CLAUDE_CODE_MAX_RETRIES
- claude agents session rows now show pull-request links as bare #N without the redundant "PR" label
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み