CC Guide
2.1.117

Claude Code 2.1.117 - リリースノート

2026年4月22日
Claude Code

日本語サマリー

Claude Code 2.1.117 リリースノート要約

⚠️ 破壊的変更・セキュリティ修正

  • セキュリティ強化: Managed-settingsのblockedMarketplacesおよびstrictKnownMarketplacesが、プラグインのインストール・更新・自動更新時にも強制適用されるようになりました。
  • プライバシー保護: OpenTelemetryで、カスタム/MCPコマンド名はOTEL_LOG_TOOL_DETAILS=1が設定されない限りマスク(リダクション)されるようになりました。
  • デフォルト動作の変更: Opus 4.6およびSonnet 4.6向けのPro/Max加入者のデフォルトeffortmediumからhighに変更されました。

🚀 重要な新機能・改善

  • 外部ビルドでのサブエージェント利用: 環境変数CLAUDE_CODE_FORK_SUBAGENT=1を設定することで、外部ビルドでもフォークされたサブエージェントが有効化可能になりました。
  • ネイティブビルドの検索高速化: macOS/Linuxのネイティブビルドにおいて、GlobおよびGrepツールがBashツール内蔵のbfsおよびugrepに置き換わり、別ツールへのラウンドトリップなしで高速検索が可能になりました。
  • MCPサーバーの接続高速化: ローカルおよびclaude.aiのMCPサーバーが両方設定されている場合、起動時に並行接続がデフォルトとなり起動が高速化されました。
  • /modelの永続化: /modelでの選択がプロジェクト側のモデル設定を上書きし、再起動後も維持されるようになりました。
  • 依存関係の自動解決: claude plugin marketplace add実行時に、不足している依存関係が設定されたマーケットプレイスから自動的に解決されるようになりました。
  • OpenTelemetryの拡張: user_promptイベントにcommand_name等が追加され、モデルがサポートする場合に各種イベントにeffort属性が含まれるようになりました。

🐛 主なバグ修正

  • Opus 4.7 コンテキストの過剰圧縮を修正: Opus 4.7のコンテキストウィンドウを誤って200Kとして計算し、自動圧縮(autocompact)が早すぎた問題を修正しました(本来の1Mとして正しく計算)。
  • OAuth/トークン関連の修正: アクセストークンの期限切れ時の再ログイン(Please run /login)エラーや、CLAUDE_CODE_OAUTH_TOKEN環境変数利用時の/login無効化問題を修正しました。
  • プロキシ・通信関連の修正: HTTP 204 No Contentを返すプロキシ使用時のクラッシュ、巨大HTML読み込み時のWebFetchハングアップ、BunランタイムでのNO_PROXYが無視される問題を修正しました。
  • MCP・SDK関連の修正: MCP接続中に自動キャンセルされる問題、SDKのreload_plugins実行時にMCPサーバーの再接続が直列処理されていた問題を修正しました。
  • Bedrock互換性の修正: 推論機能(thinking)が無効なOpus 4.7バックエンド使用時にBedrockリクエストが400エラーで失敗する問題を修正しました。

原文(Release Notes)

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