Claude Code Changelog

v2.1.74

2026年3月12日 GitHub で見る

📝 概要

コンテキスト最適化の提案機能追加と、メモリリーク修正を含む多数の安定性・UX改善

🔄 主な変更点

  • /contextコマンドに最適化提案機能を追加(重いツール、メモリ肥大化を検知)
  • autoMemoryDirectory設定で自動メモリの保存先をカスタマイズ可能に
  • ストリーミングAPI応答バッファのメモリリーク修正(Node.js/npm環境)
  • エージェントのmodel:フィールドで完全なモデルID(例: claude-opus-4-5)が使用可能に
  • MCP OAuth認証の複数の不具合修正(ポート競合、トークン更新など)
  • macOSネイティブバイナリでの音声モード失敗を修正(マイク権限プロンプトが正常に表示されるように)
  • RTL(右から左)言語のレンダリング問題を修正(ヘブライ語、アラビア語など)
  • Windows環境でのLSPサーバー動作不良を修正
  • VSCodeの未保存セッション削除ボタン修正とターミナルスクロール改善

💡 解説・活用案

今回の変更で特に注目すべきは、/contextコマンドの最適化提案機能です。コンテキストが肥大化している場合に具体的な改善方法を提示してくれるため、パフォーマンス問題の早期発見・解決が容易になります。また、メモリリークの修正により長時間のセッションでも安定して動作するようになりました。多言語対応の改善やOAuth周りの修正により、グローバルな開発環境でも使いやすくなっています。

🌐 日本語訳

変更内容

  • /contextコマンドに実行可能な最適化提案を追加 — コンテキスト負荷の高いツール、メモリ肥大化、容量警告を特定し、具体的な最適化のヒントを提供
  • autoMemoryDirectory設定を追加し、自動メモリストレージのカスタムディレクトリを設定可能に
  • ジェネレーターが早期終了された際にストリーミングAPI応答バッファが解放されず、Node.js/npmコードパスでRSSが無制限に増加するメモリリークを修正
  • ユーザーのallowルールやスキルのallowed-toolsによって管理ポリシーのaskルールがバイパスされる問題を修正
  • エージェントのfrontmatterのmodel:フィールドおよび--agents JSON設定で、完全なモデルID(例: claude-opus-4-5)が暗黙的に無視されていた問題を修正 — エージェントは--modelと同じモデル値を受け入れるようになりました
  • コールバックポートが既に使用中の場合にMCP OAuth認証がハングする問題を修正
  • HTTP 200でエラーを返すOAuthサーバー(Slackなど)において、リフレッシュトークンの期限切れ後にMCP OAuthリフレッシュが再認証を促さない問題を修正
  • ターミナルがマイク権限を付与されていないユーザーのmacOSネイティブバイナリで音声モードが暗黙的に失敗する問題を修正 — バイナリにaudio-inputエンタイトルメントを含めることでmacOSが正しくプロンプトを表示するようになりました
  • hook.timeoutに関わらず終了時に1.5秒後にSessionEndフックが強制終了される問題を修正 — CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MSで設定可能に
  • ローカルソースを持つマーケットプレイスプラグインに対してREPL内で/plugin installが失敗する問題を修正
  • マーケットプレイスの更新でgitサブモジュールが同期されない問題を修正 — サブモジュール内のプラグインソースが更新後に壊れなくなりました
  • 引数付きの不明なスラッシュコマンドが入力を暗黙的に削除していた問題を修正 — 入力を警告として表示するようになりました
  • Windows Terminal、conhost、VS Code統合ターミナルでヘブライ語、アラビア語、その他のRTLテキストが正しくレンダリングされない問題を修正
  • 不正な形式のファイルURIによりWindows上でLSPサーバーが動作しない問題を修正
  • --plugin-dirを変更し、ローカル開発コピーが同名のインストール済みマーケットプレイスプラグインを上書きするように(そのプラグインが管理設定で強制有効化されている場合を除く)
  • [VSCode] 未保存セッションの削除ボタンが機能しない問題を修正
  • [VSCode] ターミナル対応の加速により統合ターミナルでのスクロールホイールの応答性を改善
原文(英語)を表示

What's changed

  • Added actionable suggestions to /context command — identifies context-heavy tools, memory bloat, and capacity warnings with specific optimization tips
  • Added autoMemoryDirectory setting to configure a custom directory for auto-memory storage
  • Fixed memory leak where streaming API response buffers were not released when the generator was terminated early, causing unbounded RSS growth on the Node.js/npm code path
  • Fixed managed policy ask rules being bypassed by user allow rules or skill allowed-tools
  • Fixed full model IDs (e.g., claude-opus-4-5) being silently ignored in agent frontmatter model: field and --agents JSON config — agents now accept the same model values as --model
  • Fixed MCP OAuth authentication hanging when the callback port is already in use
  • Fixed MCP OAuth refresh never prompting for re-auth after the refresh token expires, for OAuth servers that return errors with HTTP 200 (e.g. Slack)
  • Fixed voice mode silently failing on the macOS native binary for users whose terminal had never been granted microphone permission — the binary now includes the audio-input entitlement so macOS prompts correctly
  • Fixed SessionEnd hooks being killed after 1.5 s on exit regardless of hook.timeout — now configurable via CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS
  • Fixed /plugin install failing inside the REPL for marketplace plugins with local sources
  • Fixed marketplace update not syncing git submodules — plugin sources in submodules no longer break after update
  • Fixed unknown slash commands with arguments silently dropping input — now shows your input as a warning
  • Fixed Hebrew, Arabic, and other RTL text not rendering correctly in Windows Terminal, conhost, and VS Code integrated terminal
  • Fixed LSP servers not working on Windows due to malformed file URIs
  • Changed --plugin-dir so local dev copies now override installed marketplace plugins with the same name (unless that plugin is force-enabled by managed settings)
  • [VSCode] Fixed delete button not working for Untitled sessions
  • [VSCode] Improved scroll wheel responsiveness in the integrated terminal with terminal-aware acceleration