Claude Code Changelog

v2.1.117

2026年4月22日 GitHub で見る

📝 概要

プラグイン管理・MCP統合の改善、実験的機能の明示化、パフォーマンス最適化、多数のバグ修正を含む安定性向上リリース

🔄 主な変更点

  • 機能追加

    • 外部ビルドでフォーク型サブエージェントを有効化可能に(CLAUDE_CODE_FORK_SUBAGENT=1
    • /resumeコマンドで大規模セッション再読込前に要約を提案
    • プラグインインストール時に依存関係を自動解決
  • パフォーマンス向上

    • MCPサーバーの並列接続でスタートアップ高速化
    • macOS/Linux版でBashツール内蔵のbfs/ugrepによる検索高速化
    • Windows版でプロセスごとの実行ファイルキャッシュ最適化
  • Opus 4.6/Sonnet 4.6の改善

    • Pro/Maxサブスクライバーのデフォルトエフォートレベルをhighに変更
  • バグ修正

    • OAuth トークン期限切れ時の自動リフレッシュ対応
    • WebFetchの大規模HTML処理のハング修正
    • Opus 4.7のコンテキストウィンドウ誤認識(200K→1M)修正

💡 解説・活用案

今回のリリースでは、大規模セッションの扱いやすさとMCPサーバー統合の安定性が向上しました。特にプラグイン依存関係の自動解決により、マーケットプレイス活用がより簡単になります。また、Opus 4.7使用時のコンテキスト計算修正により、早期の自動圧縮を防ぎ、より長いコンテキストを活用できます。macOS/Linuxユーザーは内蔵検索ツールによる高速化の恩恵を受けられます。

🌐 日本語訳

変更内容

  • フォーク型サブエージェントを外部ビルドで有効化可能に(CLAUDE_CODE_FORK_SUBAGENT=1設定)
  • エージェントフロントマターのmcpServers--agent経由のメインスレッドエージェントセッションで読み込まれるように
  • /modelコマンドの改善:プロジェクトが別モデルを指定していても選択内容が再起動後も保持され、起動時ヘッダーにアクティブモデルの出典(プロジェクトまたは管理設定)を表示
  • /resumeコマンドで、古くて大きなセッションを再読込する前に要約を提案するように(既存の--resume動作と同様)
  • ローカルとclaude.ai両方のMCPサーバーが設定されている場合の起動高速化(並列接続がデフォルトに)
  • すでにインストール済みのプラグインに対するplugin install実行時、「既にインストール済み」で停止せず不足している依存関係をインストール
  • プラグイン依存関係エラーで「インストールされていません」とインストールヒントを表示、claude plugin marketplace addで設定済みマーケットプレイスから不足依存関係を自動解決
  • 管理設定のblockedMarketplacesstrictKnownMarketplacesがプラグインのインストール、更新、リフレッシュ、自動更新時に適用されるように
  • Advisor Tool(実験的):ダイアログに「実験的」ラベルと詳細リンクを追加、有効時に起動通知を表示、セッションがプロンプトや/compactのたびに「Advisor tool result content could not be processed」エラーでスタックしなくなった
  • cleanupPeriodDays保持期間スイープが~/.claude/tasks/~/.claude/shell-snapshots/~/.claude/backups/もカバーするように
  • OpenTelemetry:user_promptイベントにスラッシュコマンドのcommand_namecommand_sourceを含むように、cost.usagetoken.usageapi_requestapi_errorにモデルがエフォートレベルをサポートする場合effort属性を追加。カスタム/MCPコマンド名はOTEL_LOG_TOOL_DETAILS=1設定時以外は編集
  • macOSとLinuxのネイティブビルド:GlobGrepツールがBashツール経由で利用可能な組み込みbfsugrepに置き換え — 別ツール呼び出しなしで高速検索(WindowsとNPMインストールビルドは変更なし)
  • Windows:プロセスごとのwhere.exe実行ファイル検索キャッシュによりサブプロセス起動を高速化
  • Opus 4.6とSonnet 4.6のPro/Maxサブスクライバーのデフォルトエフォートレベルをhighに変更(以前はmedium
  • Plain-CLI OAuthセッションでアクセストークン期限切れ時に「Please run /login」で終了する問題を修正 — 401エラー時にトークンをリアクティブにリフレッシュ
  • 非常に大きなHTMLページでWebFetchがハングする問題を修正(HTML-to-Markdown変換前に入力を切り詰め)
  • プロキシがHTTP 204 No Contentを返した際のクラッシュを修正 — TypeErrorの代わりに明確なエラーを表示
  • CLAUDE_CODE_OAUTH_TOKEN環境変数で起動し、トークンが期限切れになった際に/loginが効果を持たない問題を修正
  • 入力後すぐにプロンプト入力のアンドゥ(Ctrl+_)が効かない問題と、各アンドゥステップで状態をスキップする問題を修正
  • Bun実行時にリモートAPIリクエストでNO_PROXYが尊重されない問題を修正
  • 低速接続でキー名が結合テキストとして到着した際に偽のEscape/Returnトリガーが稀に発生する問題を修正
  • SDK reload_pluginsがユーザーMCPサーバーを直列に再接続する問題を修正
  • Opus 4.7でthinkingを無効化した際にBedrock application-inference-profileリクエストが400エラーで失敗する問題を修正
  • プリント/SDKモードでサーバーが接続完了中にMCP elicitation/createリクエストが自動キャンセルされる問題を修正
  • サブエージェントがメインエージェントと異なるモデルを実行中にファイル読み取りで誤ってマルウェア警告を出す問題を修正
  • バックグラウンドタスク存在時のアイドル再レンダリングループを修正し、Linux上のメモリ増加を削減
  • [VSCode] 複数の大規模マーケットプレイスが設定されている際に「Manage Plugins」パネルが壊れる問題を修正
  • Opus 4.7セッションで/contextパーセンテージが過大表示され早期に自動圧縮される問題を修正 — Claude CodeがOpus 4.7のネイティブ1Mではなく200Kコンテキストウィンドウで計算していた
原文(英語)を表示

What's changed

  • Forked subagents can now be enabled on external builds by setting CLAUDE_CODE_FORK_SUBAGENT=1
  • Agent frontmatter mcpServers are now loaded for main-thread agent sessions via --agent
  • Improved /model: selections now persist across restarts even when the project pins a different model, and the startup header shows when the active model comes from a project or managed-settings pin
  • The /resume command now offers to summarize stale, large sessions before re-reading them, matching the existing --resume behavior
  • Faster startup when both local and claude.ai MCP servers are configured (concurrent connect now default)
  • plugin install on an already-installed plugin now installs any missing dependencies instead of stopping at "already installed"
  • Plugin dependency errors now say "not installed" with an install hint, and claude plugin marketplace add now auto-resolves missing dependencies from configured marketplaces
  • Managed-settings blockedMarketplaces and strictKnownMarketplaces are now enforced on plugin install, update, refresh, and autoupdate
  • Advisor Tool (experimental): dialog now carries an "experimental" label, learn-more link, and startup notification when enabled; sessions no longer get stuck with "Advisor tool result content could not be processed" errors on every prompt and /compact
  • The cleanupPeriodDays retention sweep now also covers ~/.claude/tasks/, ~/.claude/shell-snapshots/, and ~/.claude/backups/
  • OpenTelemetry: user_prompt events now include command_name and command_source for slash commands; cost.usage, token.usage, api_request, and api_error now include an effort attribute when the model supports effort levels. Custom/MCP command names are redacted unless OTEL_LOG_TOOL_DETAILS=1 is set
  • Native builds on macOS and Linux: the Glob and Grep tools are replaced by embedded bfs and ugrep available through the Bash tool — faster searches without a separate tool round-trip (Windows and npm-installed builds unchanged)
  • Windows: cached where.exe executable lookups per process for faster subprocess launches
  • Default effort for Pro/Max subscribers on Opus 4.6 and Sonnet 4.6 is now high (was medium)
  • Fixed Plain-CLI OAuth sessions dying with "Please run /login" when the access token expires mid-session — the token is now refreshed reactively on 401
  • Fixed WebFetch hanging on very large HTML pages by truncating input before HTML-to-markdown conversion
  • Fixed a crash when a proxy returns HTTP 204 No Content — now surfaces a clear error instead of a TypeError
  • Fixed /login having no effect when launched with CLAUDE_CODE_OAUTH_TOKEN env var and that token expires
  • Fixed prompt-input undo (Ctrl+_) doing nothing immediately after typing, and skipping a state on each undo step
  • Fixed NO_PROXY not being respected for remote API requests when running under Bun
  • Fixed rare spurious escape/return triggers when key names arrive as coalesced text over slow connections
  • Fixed SDK reload_plugins reconnecting all user MCP servers serially
  • Fixed Bedrock application-inference-profile requests failing with 400 when backed by Opus 4.7 with thinking disabled
  • Fixed MCP elicitation/create requests auto-cancelling in print/SDK mode when the server finishes connecting mid-turn
  • Fixed subagents running a different model than the main agent incorrectly flagging file reads with a malware warning
  • Fixed idle re-render loop when background tasks are present, reducing memory growth on Linux
  • [VSCode] Fixed "Manage Plugins" panel breaking when multiple large marketplaces are configured
  • Fixed Opus 4.7 sessions showing inflated /context percentages and autocompacting too early — Claude Code was computing against a 200K context window instead of Opus 4.7's native 1M