Claude Code Changelog

v2.1.78

2026年3月17日 GitHub で見る

📝 概要

プラグインの永続化対応やストリーミング改善、サンドボックス関連のセキュリティ修正を含む安定性向上アップデート

🔄 主な変更点

新機能

  • API エラー時に発火する StopFailure フックイベントを追加
  • プラグイン更新後も状態を保持する ${CLAUDE_PLUGIN_DATA} 変数を追加
  • プラグイン配布エージェント向けに effort, maxTurns, disallowedTools frontmatter をサポート
  • tmux 内でも外側のターミナル通知(iTerm2/Kitty/Ghostty)が届くように改善

改善

  • レスポンステキストが生成と同時に行単位でストリーミング表示されるように変更
  • 大規模セッション(>5 MB)でサブエージェント使用時の会話履歴が途切れる問題を修正
  • メモリ使用量と大規模セッション再開時の起動時間を改善

バグ修正(重要)

  • セキュリティ: サンドボックス依存関係不足時に無言で無効化される問題を修正(起動警告を表示)
  • bypassPermissions モード時に .git, .claude などの保護ディレクトリがプロンプトなしで書き込み可能だった問題を修正
  • deny: ["mcp__servername"] 設定がモデルに送信前にツールを削除しない問題を修正
  • sandbox.filesystem.allowWrite で絶対パスが機能しない問題を修正
  • WSL2 + WSLg (Windows 11) で音声モードが動作しない問題を修正

その他

  • ANTHROPIC_CUSTOM_MODEL_OPTION 環境変数でカスタムモデルを /model ピッカーに追加可能に
  • VS Code で認証済みでもログイン画面が一瞬表示される問題を修正
  • Bash ツールが VS Code を Dock/Spotlight 起動時に Homebrew などの PATH 依存バイナリを見つけられない問題を修正

💡 解説・活用案

今回のアップデートでは、プラグイン開発者向けに永続化機能が強化され、プラグイン更新時のデータ保持が可能になりました。また、サンドボックスのセキュリティが厳格化され、依存関係不足時の警告表示や保護ディレクトリへのアクセス制御が改善されています。大規模セッションでのメモリ効率向上により、長時間の対話セッションでも安定して動作するようになりました。tmux ユーザーは set -g allow-passthrough on を設定することで、ターミナル通知をより便利に活用できます。

🌐 日本語訳

変更内容

  • API エラー(レート制限、認証失敗など)でターンが終了した際に発火する StopFailure フックイベントを追加しました
  • プラグインの永続的な状態を保存する ${CLAUDE_PLUGIN_DATA} 変数を追加。プラグイン更新後も保持され、/plugin uninstall 実行時には削除前に確認プロンプトを表示します
  • プラグイン配布エージェント向けに frontmatter で effort, maxTurns, disallowedTools をサポートしました
  • tmux 内で実行中でも set -g allow-passthrough on を設定することで、ターミナル通知(iTerm2/Kitty/Ghostty のポップアップ、プログレスバー)が外側のターミナルに到達するようになりました
  • レスポンステキストが生成されると同時に行単位でストリーミング表示されるようになりました
  • Linux のサンドボックス化された Bash 内で git log HEAD が "ambiguous argument" エラーで失敗する問題と、スタブファイルが作業ディレクトリの git status を汚染する問題を修正しました
  • サブエージェントを使用した大規模セッション(>5 MB)で cc log--resume が会話履歴を無言で切り詰めていた問題を修正しました
  • API エラーがストップフックをトリガーし、ブロッキングエラーをモデルに再送信して無限ループが発生する問題を修正しました
  • deny: ["mcp__servername"] パーミッションルールがモデルに送信する前に MCP サーバーツールを削除せず、ブロックされたツールをモデルが見て実行しようとする問題を修正しました
  • sandbox.filesystem.allowWrite が絶対パスで動作しない問題を修正しました(以前は // プレフィックスが必要でした)
  • /sandbox の Dependencies タブが macOS 上で Linux の前提条件を表示していた問題を修正し、macOS 固有の情報を表示するようにしました
  • セキュリティ: sandbox.enabled: true が設定されているが依存関係が不足している場合に、サンドボックスが無言で無効化される問題を修正 — 起動時に目に見える警告を表示するようになりました
  • bypassPermissions モードで .git, .claude、その他の保護ディレクトリがプロンプトなしで書き込み可能だった問題を修正しました
  • ノーマルモードで ctrl+u がスクロールする問題を修正し、readline の kill-line として動作するようにしました(ctrl+u/ctrl+d による半ページスクロールはトランスクリプトモードのみに変更)
  • 音声モードで修飾キー組み合わせのプッシュトゥトーク(例:ctrl+k)がホールド操作を要求していた問題を修正し、即座に有効化されるようになりました
  • WSL2 + WSLg (Windows 11) で音声モードが動作しない問題を修正。WSL1/Win10 ユーザーには明確なエラーメッセージを表示するようにしました
  • --worktree フラグが worktree ディレクトリからスキルとフックをロードしない問題を修正しました
  • CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONSincludeGitInstructions 設定がシステムプロンプトの git status セクションを抑制しない問題を修正しました
  • VS Code を Dock/Spotlight から起動した際に Bash ツールが Homebrew やその他の PATH 依存バイナリを見つけられない問題を修正しました
  • VS Code/Cursor/code-server などの truecolor サポートを明示していないターミナルで Claude のオレンジ色が色あせて見える問題を修正しました
  • /model ピッカーにカスタムエントリを追加する ANTHROPIC_CUSTOM_MODEL_OPTION 環境変数を追加。オプションで _NAME_DESCRIPTION のサフィックス付き変数で表示をカスタマイズ可能です
  • Haiku モデル使用時に ANTHROPIC_BETAS 環境変数が無視される問題を修正しました
  • キューに入った複数のプロンプトが改行区切りなしで連結される問題を修正しました
  • 大規模セッション再開時のメモリ使用量と起動時間を改善しました
  • [VSCode] 認証済みの状態でサイドバーを開く際にログイン画面が一瞬表示される問題を修正しました
  • [VSCode] Opus 選択時に "API Error: Rate limit reached" が表示される問題を修正 — プランティアが不明なサブスクライバーに対してモデルドロップダウンが 1M コンテキストバリアントを提供しないようにしました
原文(英語)を表示

What's changed

  • Added StopFailure hook event that fires when the turn ends due to an API error (rate limit, auth failure, etc.)
  • Added ${CLAUDE_PLUGIN_DATA} variable for plugin persistent state that survives plugin updates; /plugin uninstall prompts before deleting it
  • Added effort, maxTurns, and disallowedTools frontmatter support for plugin-shipped agents
  • Terminal notifications (iTerm2/Kitty/Ghostty popups, progress bar) now reach the outer terminal when running inside tmux with set -g allow-passthrough on
  • Response text now streams line-by-line as it's generated
  • Fixed git log HEAD failing with "ambiguous argument" inside sandboxed Bash on Linux, and stub files polluting git status in the working directory
  • Fixed cc log and --resume silently truncating conversation history on large sessions (>5 MB) that used subagents
  • Fixed infinite loop when API errors triggered stop hooks that re-fed blocking errors to the model
  • Fixed deny: ["mcp__servername"] permission rules not removing MCP server tools before sending to the model, allowing it to see and attempt blocked tools
  • Fixed sandbox.filesystem.allowWrite not working with absolute paths (previously required // prefix)
  • Fixed /sandbox Dependencies tab showing Linux prerequisites on macOS instead of macOS-specific info
  • Security: Fixed silent sandbox disable when sandbox.enabled: true is set but dependencies are missing — now shows a visible startup warning
  • Fixed .git, .claude, and other protected directories being writable without a prompt in bypassPermissions mode
  • Fixed ctrl+u in normal mode scrolling instead of readline kill-line (ctrl+u/ctrl+d half-page scroll moved to transcript mode only)
  • Fixed voice mode modifier-combo push-to-talk keybindings (e.g. ctrl+k) requiring a hold instead of activating immediately
  • Fixed voice mode not working on WSL2 with WSLg (Windows 11); WSL1/Win10 users now get a clear error
  • Fixed --worktree flag not loading skills and hooks from the worktree directory
  • Fixed CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS and includeGitInstructions setting not suppressing the git status section in the system prompt
  • Fixed Bash tool not finding Homebrew and other PATH-dependent binaries when VS Code is launched from Dock/Spotlight
  • Fixed washed-out Claude orange color in VS Code/Cursor/code-server terminals that don't advertise truecolor support
  • Added ANTHROPIC_CUSTOM_MODEL_OPTION env var to add a custom entry to the /model picker, with optional _NAME and _DESCRIPTION suffixed vars for display
  • Fixed ANTHROPIC_BETAS environment variable being silently ignored when using Haiku models
  • Fixed queued prompts being concatenated without a newline separator
  • Improved memory usage and startup time when resuming large sessions
  • [VSCode] Fixed a brief flash of the login screen when opening the sidebar while already authenticated
  • [VSCode] Fixed "API Error: Rate limit reached" when selecting Opus — model dropdown no longer offers 1M context variant to subscribers whose plan tier is unknown