Claude Code Changelog·2026年6月3日 06:58·約4分
Claude Code v2.1.161 の更新内容
TL;DR
Anthropic は Claude Code のバージョン 2.1.161 をリリースし、メトリクスデータのラベルに環境変数値を含める機能や、エージェント作業の進捗表示を改善しました。また、未接続の MCP コネクタを整理する新機能も追加されました。
変更点
- OTEL_RESOURCE_ATTRIBUTES の値が、メトリクスデータポイントのラベルとして現在含まれるようになりました。これにより、チームやリポジトリなどのカスタム次元で利用状況メトリクスを切り分けることが可能になります。
- Claude エージェントの行では、作業が並列化された際、詳細情報の前に完了数/総数が表示されるようになり、プレビュー機能では最長実行中のアイテムが表示されます。
- /mcp コマンドでは、これまでサインインしたことがない claude.ai 接続先が、「未使用の接続先を表示」行の後ろに折りたたまれるようになりました。
- パラレルツール呼び出し: 同じバッチ内で Bash コマンドが失敗しても、他の呼び出しはキャンセルされません。各ツールは独立して結果を返します。
- フルスクリーンモード: クリップボードは Linux 環境で利用可能な場合、wl-copy/xclip/xsel を使用し、クリップボードと PRIMARY セレクションの両方にコピーして中クリックでの貼り付けに対応します。また、「{key} キーを押したままネイティブ選択」というヒントでは、ターミナルごとに正しいキーが表示されるようになりました。
- 「モーションを減らす」設定に従わなかった /effort ダイアログ、ワークフローアニメーション、プロンプトキーワードのシャイマー表示を修正しました。
- forceLoginOrgUUID/forceLoginMethod の管理設定ポリシーが、組織ピン(2.1.146 版で発生した回帰問題)と共にサードパーティプロバイダーセッション(Bedrock, Vertex, Foundry, Mantle)をブロックする問題を修正しました。
- --output-format text または json を使用した場合に、バックグラウンドサブエージェントの出力が claude -p の標準出力を破損させる問題を修正しました。
- /usage-credits コマンドが、チームおよびエンタープライズ管理者に対して再ログインを開始するのではなく、組織の使用状況設定ページへ誘導するように修正しました。
- セッションが git worktree 内または別のリポジトリ内にあった場合に、「デフォルトブランチでは実行できません」と報告していた /autofix-pr の問題を修正しました。
- git worktree でない場合(例:jj ワークスペース)、現在のディレクトリからのセッションを --resume ピッカーが表示しなかった不具合を修正
- /usr/bin/bash script.sh のように bash を明示的に呼び出す Windows フックが「コマンドが見つからない」または「バイナリファイルを実行できません」というエラーで失敗する不具合を修正
- 通信機能の初期化完了前に emit された OpenTelemetry ログイベント(user_prompt, api_request, tool_result, tool_decision)が静かにドロップされる不具合を修正
- claude mcp list/get/add コマンドで機密情報がターミナルに出力されていた不具合を修正:${VAR} 参照の展開を無効化し、認証ヘッダーと URL の機密情報を隠蔽(redact)するようになりました
- 分離環境で起動した Workflow エージェントにおいて、バックグラウンドセッション内の "worktree" が自身の worktree 内のファイルを編集できなくなる不具合を修正
- claude エージェントからディスパッチされたバックグラウンドセッションが、設定ファイル settings.json に指定されたモデルではなく、デーモンの環境にある古いモデルで起動する不具合を修正
- セッションの再開後に Write ツールの結果を描画した際に発生する可能性のあるクラッシュを修正
- 結果の最終化中にエラーが発生した場合に完了したサブエージェントが実行中として表示され続ける不具合を修正
- CLAUDE_CODE_TMPDIR が深いパスに設定されている場合、$TMPDIR 内で Unix ソケットをバインドするツールから EADDRINUSE エラーが発生する不具合を修正
- レイアウトエンジンの JIT コンパイルプロファイルを安定化させることで、ターミナル描画のパフォーマンスを改善
- 大規模ファイルの書き込み時の描画パフォーマンスを改善
- [VSCode] ターミナルの GPU アクセラレーションを無効にする(または /terminal-setup を実行する)ことを提案するヒントを追加し、文字化けしたグリフの問題を解決
原文を表示
What's changed
- OTEL_RESOURCE_ATTRIBUTES values are now included as labels on metric datapoints, so you can slice usage metrics by custom dimensions like team or repo
- claude agents rows now show done/total before the detail when work is fanned out; peek shows the longest-running item
- /mcp now collapses claude.ai connectors you've never signed in to behind a "Show unused connectors" row
- Parallel tool calls: a failed Bash command no longer cancels other calls in the same batch — each tool returns its own result independently
- Fullscreen mode: clipboard now uses wl-copy/xclip/xsel on Linux when available, copies to both the clipboard and PRIMARY selection for middle-click paste, and the "hold {key} for native selection" hint now shows the correct key per terminal
- Fixed the /effort dialog, workflow animations, and prompt keyword shimmer not honoring the "Reduce motion" setting
- Fixed forceLoginOrgUUID/forceLoginMethod managed-settings policies blocking third-party provider sessions (Bedrock, Vertex, Foundry, Mantle) alongside the org pin (regression in 2.1.146)
- Fixed background subagent output corrupting claude -p stdout when using --output-format text or json
- Fixed /usage-credits starting a re-login for Team and Enterprise admins instead of pointing to the organization's usage settings page
- Fixed /autofix-pr reporting "cannot run on the default branch" when the session is inside a git worktree or another repository
- Fixed --resume picker not showing sessions from the current directory when it isn't a git worktree (e.g., jj workspaces)
- Fixed Windows hooks that invoke bash explicitly (e.g., /usr/bin/bash script.sh) failing with "command not found" or "cannot execute binary file"
- Fixed OpenTelemetry log events (user_prompt, api_request, tool_result, tool_decision) being silently dropped when emitted before telemetry initialization completed
- Fixed claude mcp list/get/add printing secrets to the terminal: ${VAR} references are no longer expanded, and credential headers and URL secrets are redacted
- Fixed Workflow agents spawned with isolation: "worktree" in background sessions being blocked from editing files inside their own worktree
- Fixed background sessions dispatched from claude agents booting on a stale model from the daemon's environment instead of the model in settings.json
- Fixed a potential crash when rendering Write tool results after resuming a session
- Fixed completed subagents getting stuck showing as running when an error occurs while finalizing their result
- Fixed EADDRINUSE errors from tools that bind Unix sockets under $TMPDIR when CLAUDE_CODE_TMPDIR is set to a deep path
- Improved terminal rendering performance by stabilizing the layout engine's JIT compilation profile
- Improved rendering performance for large file writes
- [VSCode] Added a tip suggesting disabling terminal GPU acceleration (or running /terminal-setup) to fix garbled glyphs
この記事をシェア
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み