Claude Code Changelog

v2.1.81

2026年3月20日 GitHub で見る

📝 概要

スクリプト実行用の--bareフラグ追加、チャネルサーバーによる権限プロンプト転送機能、OAuth再認証問題など多数のバグ修正と改善

🔄 主な変更点

  • 新機能: --bareフラグでスクリプト実行時のオーバーヘッド削減(フック/LSP/プラグイン同期をスキップ)
  • 新機能: --channelsによる権限承認プロンプトのスマートフォン転送対応
  • バグ修正: 複数セッション起動時のOAuth再認証問題を解決
  • バグ修正: 音声モード関連の複数の問題(エラー表示、WebSocket切断からの復旧)
  • バグ修正: CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETASが正しく機能しない問題
  • バグ修正: Node.js 18でのクラッシュ、worktree復帰、/btwコマンドなど多数
  • 改善: MCPツール呼び出し表示の簡潔化、Remote Controlセッションタイトルの自動生成
  • 改善: プラグインの自動更新(ref追跡時に毎回再クローン)
  • 変更: Windowsでの行ごとストリーミング無効化

💡 解説・活用案

--bareフラグはCI/CDパイプラインやスクリプト化された自動処理に最適です。不要な初期化処理をスキップすることで起動が高速化され、ANTHROPIC_API_KEYを使った認証のみで動作します。また、チャネルサーバー機能により、リモート環境での作業時にスマートフォンで権限承認できるようになり、セキュリティと利便性が両立します。複数セッションでの再認証ストレスも解消されたため、より快適な開発体験が期待できます。

🌐 日本語訳

変更内容

  • スクリプト化された-p呼び出し用に--bareフラグを追加 — フック、LSP、プラグイン同期、スキルディレクトリ走査をスキップします。ANTHROPIC_API_KEYまたは--settings経由のapiKeyHelperが必要です(OAuthとキーチェーン認証は無効化)。自動メモリは完全に無効化されます
  • --channels権限リレーを追加 — 権限機能を宣言しているチャネルサーバーは、ツール承認プロンプトをスマートフォンに転送できます
  • 複数の同時Claude Codeセッションで、1つのセッションがOAuthトークンを更新する際に繰り返し再認証が必要になる問題を修正
  • 音声モードがリトライ失敗を黙って飲み込み、実際のエラーの代わりに誤解を招く「ネットワークを確認してください」というメッセージを表示していた問題を修正
  • サーバーが静かにWebSocket接続を切断したときに音声モードの音声が復旧しない問題を修正
  • CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETASがstructured-outputsベータヘッダーを抑制せず、Vertex/Bedrockに転送するプロキシゲートウェイで400エラーが発生していた問題を修正
  • 他の管理設定が構成されていないTeam/Enterprise組織での--channelsバイパスを修正
  • Node.js 18でのクラッシュを修正
  • 文字列内にダッシュを含むBashコマンドで不要な権限プロンプトが表示される問題を修正
  • セッション中にプラグインディレクトリが削除されたときにプラグインフックがプロンプト送信をブロックする問題を修正
  • バックグラウンドエージェントタスクの出力が、タスクがポーリング間隔の間に完了したときに無期限にハングする可能性があった競合状態を修正
  • worktree内にあったセッションを再開すると、そのworktreeに戻るようになりました
  • アクティブな応答中に使用したときに/btwがペーストされたテキストを含まない問題を修正
  • tmux環境下で、高速なCmd+Tabに続くペーストがクリップボードコピーより先に実行される可能性があった競合を修正
  • ターミナルタブタイトルが自動生成されたセッション説明で更新されない問題を修正
  • 不可視のフック添付ファイルがトランスクリプトモードでメッセージカウントを膨らませていた問題を修正
  • Remote Controlセッションが最初のプロンプトから派生させる代わりに汎用タイトルを表示していた問題を修正
  • /renameがRemote Controlセッションのタイトルを同期しない問題を修正
  • Remote Control /exitが確実にセッションをアーカイブしない問題を修正
  • MCPの読み取り/検索ツール呼び出しを単一の「Queried {server}」行に折りたたむよう改善(Ctrl+Oで展開)
  • ! bashモードの発見性を改善 — 対話型コマンドを実行する必要があるときにClaudeが提案するようになりました
  • プラグインの鮮度を改善 — ref追跡されたプラグインは、上流の変更を取り込むために読み込みごとに再クローンされるようになりました
  • Remote Controlセッションタイトルが3番目のメッセージの後に更新されるよう改善
  • MCP OAuthを更新し、Dynamic Client Registrationを持たないサーバー向けにClient ID Metadata Document(CIMD / SEP-991)をサポート
  • プランモードを変更し、デフォルトで「コンテキストをクリア」オプションを非表示に("showClearContextOnPlanAccept": trueで復元可能)
  • レンダリングの問題により、Windows(Windows Terminal内のWSLを含む)での行ごとの応答ストリーミングを無効化
  • [VSCode] Git Bash使用時のWindows PATH継承をBashツールで修正(v2.1.78での退行)
原文(英語)を表示

What's changed

  • Added --bare flag for scripted -p calls — skips hooks, LSP, plugin sync, and skill directory walks; requires ANTHROPIC_API_KEY or an apiKeyHelper via --settings (OAuth and keychain auth disabled); auto-memory fully disabled
  • Added --channels permission relay — channel servers that declare the permission capability can forward tool approval prompts to your phone
  • Fixed multiple concurrent Claude Code sessions requiring repeated re-authentication when one session refreshes its OAuth token
  • Fixed voice mode silently swallowing retry failures and showing a misleading "check your network" message instead of the actual error
  • Fixed voice mode audio not recovering when the server silently drops the WebSocket connection
  • Fixed CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS not suppressing the structured-outputs beta header, causing 400 errors on proxy gateways forwarding to Vertex/Bedrock
  • Fixed --channels bypass for Team/Enterprise orgs with no other managed settings configured
  • Fixed a crash on Node.js 18
  • Fixed unnecessary permission prompts for Bash commands containing dashes in strings
  • Fixed plugin hooks blocking prompt submission when the plugin directory is deleted mid-session
  • Fixed a race condition where background agent task output could hang indefinitely when the task completed between polling intervals
  • Resuming a session that was in a worktree now switches back to that worktree
  • Fixed /btw not including pasted text when used during an active response
  • Fixed a race where fast Cmd+Tab followed by paste could beat the clipboard copy under tmux
  • Fixed terminal tab title not updating with an auto-generated session description
  • Fixed invisible hook attachments inflating the message count in transcript mode
  • Fixed Remote Control sessions showing a generic title instead of deriving from the first prompt
  • Fixed /rename not syncing the title for Remote Control sessions
  • Fixed Remote Control /exit not reliably archiving the session
  • Improved MCP read/search tool calls to collapse into a single "Queried {server}" line (expand with Ctrl+O)
  • Improved ! bash mode discoverability — Claude now suggests it when you need to run an interactive command
  • Improved plugin freshness — ref-tracked plugins now re-clone on every load to pick up upstream changes
  • Improved Remote Control session titles to refresh after your third message
  • Updated MCP OAuth to support Client ID Metadata Document (CIMD / SEP-991) for servers without Dynamic Client Registration
  • Changed plan mode to hide the "clear context" option by default (restore with "showClearContextOnPlanAccept": true)
  • Disabled line-by-line response streaming on Windows (including WSL in Windows Terminal) due to rendering issues
  • [VSCode] Fixed Windows PATH inheritance for Bash tool when using Git Bash (regression in v2.1.78)