Claude Code Changelog·2026年5月14日 08:19·約10分
v2.1.141 の新機能:デスクトップ通知や HTTPS クローン対応など
TL;DR
開発ツール「v2.1.141」が更新され、制御端末がない環境でもデスクトップ通知やウィンドウタイトル表示が可能になる「terminalSequence」フィールドが追加されました。また、GitHub SSH キーがない環境向けに HTTPS でのプラグインソースクローンを可能にする設定と、ワークロードアイデンティティ連動用の環境変数も導入されています。
変更点
- ハック JSON 出力に terminalSequence フィールドを追加し、制御端末がない場合でもデスクトップ通知、ウィンドウタイトル、ベルを発信できるようにしました。
- CLAUDE_CODE_PLUGIN_PREFER_HTTPS を追加し、GitHub SSH キーが存在しない環境でも HTTPS プロトコルを使用して GitHub プラグインソースをクローンできるようにしました。
- 負荷アイデンティティ連合のために ANTHROPIC_WORKSPACE_ID 環境変数を追加しました。これにより、連合ルールが複数のワークスペースにまたがる場合にも、発行されたトークンを特定のワークスペースにスコープ制限できます。
- claude agents コマンドに --cwd オプションを追加し、セッションリストを指定ディレクトリにスコープ制限できるようにしました。
- /feedback コマンドで、現在のセッションを超えて問題が及ぶ場合のために、直近 24 時間または過去 7 日間のセッションを含められるようになりました。
- Rewind メニューに「ここまでの要約」を追加し、以前のコンテキストを圧縮しつつ、最近のやり取りはそのまま保持できるようにしました。
- Auto モードの権限ダイアログで、permissions.ask ルールがプロンプトを引き起こした理由を説明するように改善されました。
- IDE が接続されている場合、ファイル編集に関する権限プロンプトに「IDE で差分を表示」オプションを復元しました。
- /bg または ←← を経由して起動されたバックグラウンドエージェントは、デフォルトに戻らずに現在の権限モードを保持するようになりました。
- claude agents: 作業を終了したがバックグラウンドシェルを実行し続けているエージェントは、「Working」状態のままではなく「Completed」状態に移行するように変更されました。
- 長時間の思考期間中のスピナーフィードバックを改善しました。Claude がまだ動作中であることを示すため、10 秒経過するとスピナーがアンバー色に暖まります。
- プラグインメニューのナビゲーションを改善:→/Tab キーでタブを切り替え、↑キーでタブストリップへ移動し、全画面モードではタブヘッダーと検索ボックスがクリック可能になりました
- 背景側のサイドクエリにおいて、ANTHROPIC_SMALL_FAST_MODEL のオーバーライドが設定されていない場合に Bedrock/Vertex/Foundry/gateway で利用不可能な Haiku モデル ID を送信する不具合を修正しました。現在はメインループのモデルにフォールバックします
- Windows 上でデーモンパイプキーファイルがロックされているか読み取り不能な場合に、claude デーモンのステータスや /doctor コマンドが例外を投げる不具合を修正しました。現在は不明瞭な失敗ではなく、根本的なエラーを表示するようになりました
- フラグを追加するラッパーを通じて起動された際に、claude エージェントがダッシュボードの代わりにエージェントタイプの一覧を表示していた不具合を修正しました
- 作業ディレクトリが削除された場合にクラッシュしたセッションを起動した際、冗長なディスパッチが発生していた claude エージェントの不具合を修正しました
- カスタム ANTHROPIC_BASE_URL ゲートウェイ上の背景ジョブが自動命名されない不具合を修正しました。現在は Haiku モデルが設定されていない場合、ネーミング処理でメインモデルを使用します
- 1 つのセッションで /model コマンドを実行すると、他の並行実行中のセッションでオートコンパクト閾値が静かに変更されていた不具合を修正しました
- ツール許可プロンプトが開いている状態でパーミッションモードを切り替えた際、新しい設定でツールが許可されてもプロンプトが自動的に非表示にならない不具合を修正しました
- 許可/ダイアログプロンプトが開いている状態で Enter キーを押すと、入力ボックス内のテキストも送信されてしまう不具合を修正しました
- EnterWorktree で作業ディレクトリを切り替えた後に、フックが存在しない transcript_path を受け取る不具合を修正しました
- セル折り返しを持つマークダウンテーブルが、境界線付きグリッドとしてレンダリングされる代わりに縦方向のキーバリューレイアウトにフォールバックする不具合(2.1.136 での回帰)を修正
- 入力ボックスへ自動復元された際にキャンセルされたプロンプトが上矢印履歴から削除され、重複エントリが発生しないように修正
- 応答が行われる前に Ctrl+C/Esc でキャンセルされたプロンプトが上矢印履歴からドロップされる不具合を修正
- vim の INSERT/VISUAL モード中に実行中のターンを Ctrl+C が中断できない不具合を修正
- Enter キーが chat:newline に再バインドされている際に、代替の chat:submit キーバインド(例:meta+enter, ctrl+enter)が機能しない不具合を修正
- 出力スタイルが設定された場合にプロンプト提案が静かに無効化される不具合を修正
- turn-completion メッセージ内で spinnerVerbs 設定が無視される不具合を修正
- AskUserQuestion ポップアップが直前のチャットコンテンツの最後の行を隠す不具合を修正
- 検索にエラーが発生した際に Web Search ステータスが「Did 0 searches」と表示される不具合を修正
- 任意の行がターミナル幅を超えた場合にマルチラインステータスライン出力が行が欠落または破損する不具合を修正
- ライト背景上で light-ansi テーマが差分コンテキスト行に不可視の白色を使用していた問題を修正し、現在は黒色を使用するように変更
- エラーオーバーレイが最小化されたバンドルソースをダンプして元のエラーメッセージを隠す不具合を修正
- フィードバック調査の評価値数字を入力した後に Enter キーを押すと、評価値として送信されるのではなくチャットメッセージとして送信されてしまう不具合を修正
- エージェントパネルで選択されたサブエージェントに対して x キーを押すと、エージェントが停止する代わりにプロンプトに入力されてしまう不具合を修正
- ユーザーの最初のプロンプト前にプラグインモニター通知からセッションタイトルが導出されていた不具合を修正
- 折りたたまれた読み込み/検索グループ内でツール呼び出しごとに一度だけ「許可権限フックにより許可」が表示される不具合を修正
- /tui コマンドで実行中のバックグラウンドシェルやサブエージェントが静かに破棄されていた不具合を修正 — 現在は拒否し、完了するまで待機するよう要求
- Bedrock、Vertex、Foundry、およびその他のサードパーティプロバイダー上で「API 使用量課金」と表示されていたウェルカムバナーの不具合を修正 — 現在はプロバイダー名を表示
- フルスクリーンモードで短縮されたターミナルにフォーカスされたサーバーが表示されなくなっていた /mcp サーバーリストの不具合を修正
- /feedback バンドルの赤文字化処理で、セッション ID のような引用値を含む場合に無効な JSON が生成される不具合を修正
- デスクトップおよびサードパーティプロバイダーのセッションが、ホスト管理設定から apiKeyHelper/ANTHROPIC_AUTH_TOKEN を誤って継承していた不具合を修正
- ロガー初期化前に発火された早期分析イベントが静かに破棄されていた不具合を修正
- 市場参照先が既に存在しなくなったプラグインで SHA も固定されている場合に、claude プラグインのインストールに失敗する不具合を修正
- .mcp.json を経由して MCP サーバーを宣言しているプラグインの詳細パネルで、MCP サーバー数が 0 と表示される不具合を修正
- 設定変数が未設定のプラグイン MCP サーバーで、一般的な接続エラーではなく「設定の問題」メッセージと修復ヒントが表示されない不具合を修正 — また、不正な .mcp.json エントリが他の MCP サーバーを破棄する問題も修正
- POSIX シェルパラメータ展開(例:${var%pattern})を使用する MCP サーバー設定で、環境変数が欠落していると誤って判定される不具合を修正
- MCP HTTP/SSE サーバーが接続時に 403 を返して「失敗」と表示される問題を修正し、正しく「認証が必要」を表示するようにしました
- オプションのサーバーイベントストリーム再接続に失敗してもリモート MCP サーバーが不要に切断される問題を修正し、ツール呼び出しは POST 経由で継続されるようにしました
- ワーカーセッショントークンがセッション中にローテーションされた際、すべてのリモートコントロール MCP コネクタが 401 エラーで失敗する問題を修正しました
- サーバーから古いトークンを拒否された際に、/login をループするのではなく信頼済みデバイスを自動的に再登録するようにリモートコントロールを修正しました
- ベータ版のトレーシングを有効にした SDK/ヘッドレスモードで、初期の OTel スパンが静かにドロップされる競合状態(race condition)を修正しました
- カスタム音声:pushToTalk キーバインディングと「space」: null による解除が無視されていた問題を修正しました
- クリップボードにスクリーンショットが含まれている場合に、Windows の Alt+V 画像貼り付けで「画像が見つかりません」と報告される問題を修正しました
- glibc と musl プラットフォームパッケージの両方がインストールされている Linux 環境で SDK が「Claude Code ネイティブバイナリが見つからない」と表示される問題を修正しました
- Bedrock: awsCredentialExport は、環境変数 AWS 認証情報が解決された場合でもスキップされず、常に設定通りに実行されるように変更され、クロスアカウントアクセスの認証が修正されました
- [VSCode] チャット内マイクが音声フィードバックを表示しない問題(マイクから沈黙しか出力されない場合)を修正し、「オーディオが検出されません」と表示するようにしました
- [VSCode] 音声モード: WSL エラー時に、WSLg ユーザー向けに sox libsox-fmt-pulse のインストールを提案するメッセージを追加しました
- claude agents: プリウォームされたバックグラウンドワーカーが不健康な場合でもセッション起動が失敗しないように修正し、新規起動にフォールバックするようにしました
- クロードエージェントは、新しい REPL をバックグラウンド化した場合に残っていた空のプレースホルダーセッションを表示しなくなり、他のエージェントがない状態で←キーで入力された場合はオンボーディングテキストが表示されるようになりました
- ←キーから残った空のアイドル状態のバックグラウンドセッションは、現在デーモンによって 5 分後に自動的に廃止されます
原文を表示
What's changed
- Added terminalSequence field to hook JSON output so hooks can emit desktop notifications, window titles, and bells without a controlling terminal
- Added CLAUDE_CODE_PLUGIN_PREFER_HTTPS to clone GitHub plugin sources over HTTPS instead of SSH, for environments without a GitHub SSH key
- Added ANTHROPIC_WORKSPACE_ID environment variable for workload identity federation — scopes the minted token to a specific workspace when the federation rule covers more than one
- Added claude agents --cwd to scope the session list to a directory
- /feedback can now include recent sessions (last 24 hours or 7 days) for issues spanning more than the current session
- Rewind menu: added "Summarize up to here" to compress earlier context while keeping recent turns intact
- Auto mode permission dialog now explains when a permissions.ask rule caused the prompt
- Restored the "view diff in your IDE" option on file-edit permission prompts when an IDE is connected
- Background agents launched via /bg or ←← now preserve the current permission mode instead of reverting to default
- claude agents: agents that finish work but leave a background shell running now move to Completed instead of staying under Working
- Improved spinner feedback during long thinking periods — the spinner now warms to amber after 10 seconds to signal Claude is still working
- Improved plugin menu navigation: →/Tab switch tabs, ↑ moves to the tab strip, and tab headers and search box are clickable in fullscreen mode
- Fixed background side-queries sending an unavailable Haiku model ID on Bedrock/Vertex/Foundry/gateway when no ANTHROPIC_SMALL_FAST_MODEL override is set — now falls back to the main-loop model
- Fixed claude daemon status and /doctor on Windows throwing when the daemon pipe key file is locked or unreadable — now shows the underlying error instead of an opaque failure
- Fixed claude agents showing the agent-type list instead of the dashboard when launched through a wrapper that adds flags
- Fixed claude agents opening a crashed session firing redundant dispatches when the working directory was deleted
- Fixed background jobs on a custom ANTHROPIC_BASE_URL gateway not getting auto-named — the namer now uses the main model when no Haiku model is configured
- Fixed /model in one session silently changing the autocompact threshold in other concurrent sessions
- Fixed switching permission mode while a tool-permission prompt is open not auto-dismissing the prompt when the new setting permits the tool
- Fixed pressing Enter while a permission/dialog prompt is open also submitting text in the input box
- Fixed hooks receiving a non-existent transcript_path after EnterWorktree switches the working directory
- Fixed markdown tables with cell wrapping falling back to the vertical key-value layout instead of rendering as a bordered grid (regression in 2.1.136)
- Fixed cancelled prompts being removed from Up-arrow history when auto-restored into the input box, avoiding duplicate entries
- Fixed prompts cancelled with Ctrl+C/Esc before any response being dropped from Up-arrow history
- Fixed Ctrl+C not interrupting a running turn while in vim INSERT/VISUAL mode
- Fixed alternative chat:submit keybindings (e.g. meta+enter, ctrl+enter) not working when enter is rebound to chat:newline
- Fixed prompt suggestions being silently disabled when an output style was configured
- Fixed spinnerVerbs setting not being honored in turn-completion messages
- Fixed AskUserQuestion popup hiding the last line of preceding chat content
- Fixed Web Search status showing "Did 0 searches" when searches returned errors
- Fixed multi-line statusline output dropping or corrupting rows when any line exceeds terminal width
- Fixed light-ansi theme using invisible white for diff context lines on light backgrounds — now uses black
- Fixed error overlay dumping minified bundle source that hid the original error message
- Fixed pressing Enter after typing a feedback survey rating digit submitting it as a chat message instead of the rating
- Fixed pressing x on a selected subagent in the agent panel typing into the prompt instead of stopping the agent
- Fixed session title being derived from plugin monitor notifications before the user's first prompt
- Fixed "Allowed by PermissionRequest hook" repeating once per tool call under a collapsed read/search group
- Fixed /tui silently dropping running background shells and subagents — now refuses and asks to wait for them to finish
- Fixed welcome banner showing "API Usage Billing" on Bedrock, Vertex, Foundry, and other third-party providers — now shows the provider name
- Fixed /mcp server list not keeping the focused server visible in short terminals in fullscreen mode
- Fixed redaction in /feedback bundles producing invalid JSON for quoted values like session IDs
- Fixed desktop and third-party provider sessions incorrectly inheriting apiKeyHelper/ANTHROPIC_AUTH_TOKEN from host managed-settings
- Fixed early analytics events being silently dropped when fired before logger initialization
- Fixed claude plugin install failing for plugins whose marketplace ref no longer exists upstream when a sha is also pinned
- Fixed plugin details pane showing 0 MCP servers for plugins that declare them via .mcp.json
- Fixed plugin MCP servers with unset config variables showing a generic connection failure instead of a "config issue" message with a fix-it hint; malformed .mcp.json entries no longer drop other MCP servers
- Fixed MCP server configs using POSIX shell parameter expansions (e.g. ${var%pattern}) being incorrectly flagged as missing environment variables
- Fixed MCP HTTP/SSE servers returning 403 on connect showing as "failed" instead of "needs auth"
- Fixed remote MCP servers disconnecting unnecessarily when the optional server-events stream failed to reconnect — tool calls continue over POST
- Fixed Remote Control MCP connectors all failing with 401 when the worker session token rotated mid-session
- Fixed Remote Control automatically re-enrolling a trusted device when the server rejects a stale token, instead of looping through /login
- Fixed a race where early OTel spans could be silently dropped in SDK/headless mode with beta tracing enabled
- Fixed custom voice:pushToTalk keybindings and "space": null unbinds being silently ignored
- Fixed Windows Alt+V image paste reporting "no image found" when the clipboard contains a screenshot
- Fixed SDK "Claude Code native binary not found" on Linux when both glibc and musl platform packages are installed
- Bedrock: awsCredentialExport now always runs when configured instead of being skipped when ambient AWS credentials resolve, fixing auth for cross-account access
- [VSCode] Fixed in-chat mic showing no feedback when the microphone produced only silence — now shows "No audio detected"
- [VSCode] Voice mode: the WSL error now suggests installing sox libsox-fmt-pulse for WSLg users
- claude agents: launching a session no longer fails when the pre-warmed background worker is unhealthy — now falls back to a fresh launch
- claude agents no longer shows empty placeholder sessions left over from backgrounding a fresh REPL, and shows onboarding text when entered via ← with no other agents
- Empty idle background sessions left over from ← are now automatically retired by the daemon after 5 minutes
この記事をシェア
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み