2.1.161

Claude Code 2.1.161 - リリースノート

2026年6月2日
Claude Code

日本語サマリー

以下は Claude Code 2.1.161 のリリースノートの要約です。

破壊的変更・セキュリティ修正

  • 機密情報のターミナル出力修正: claude mcp の list/get/add コマンド実行時に、${VAR} 形式の環境変数が展開されたり、認証ヘッダーやURL内のシークレットが平文で表示されたりしていた問題を修正(マスキングされるように改善)。

新機能・仕様変更

  • カスタムディメンションでのメトリクス計測: 環境変数 OTEL_RESOURCE_ATTRIBUTES の値がメトリクスデータポイントのラベルに含まれるようになり、チームやリポジトリごとに使用量をスライスできるようになりました。
  • 並列ツール呼び出しの独立性: 並列実行中の Bash コマンドが失敗しても、同じバッチ内の他の呼び出しに影響しなくなりました。
  • UIの改善: claude agents でタスクが分配された際、進行状況として done/total を表示するよう変更。また、/mcp で未使用のコネクタが折りたたまれて表示されるようになりました。
  • Linuxクリップボードの改善: フルスクリーンモードにおいて、Linux環境では wl-copy / xclip / xsel を利用したクリップボード操作に対応しました。

バグ修正

  • サードパーティプロバイダーのブロック問題: forceLoginOrgUUID / forceLoginMethod 等の管理設定により、Bedrock や Vertex などのサードパーティプロバイダーセッションが意図せずブロックされていたリグレッション(2.1.146由来)を修正。
  • 標準出力の破損: バックグラウンドのサブエージェント出力が、--output-format text または json 使用時に claude -p の標準出力を破損していた問題を修正。
  • --resume の挙動: --resume の選択画面で、jj workspaces のように git worktree ではないカレントディレクトリのセッションが表示されなかった問題を修正。
  • /autofix-pr のエラー: git worktree や他のリポジトリ内でセッションを開いている場合、デフォルトブランチで実行できないという誤ったエラーが出ていた問題を修正。
  • isolation: "worktree" の不具合: バックグラウンドセッションで起動されたワークフローエージェントが、自身の worktree 内の編集をブロックされていた問題を修正。
  • Windowsフックの不具合: 明示的に bash を呼び出す Windows フック(例: /usr/bin/bash script.sh)が失敗していた問題を修正。
  • OpenTelemetryイベントの欠落: テレメトリの初期化完了前に発行されたログイベントが通知されずにドロップされていた問題を修正。

パフォーマンス改善・その他

  • レイアウトエンジンの JIT コンパイルプロファイルを安定化させ、ターミナルのレンダリングパフォーマンスを改善。
  • 大規模なファイル書き込み時のレンダリングパフォーマンスを改善。
  • アクセシビリティ設定の「アニメーションを減らす (Reduce motion)」が、/effort ダイアログやワークフロー画面で適切に反映されるように修正。
  • VSCode拿張にて、文字化けが発生する場合の対処法としてターミナルのGPUアクセラレーションを無効化する(または /terminal-setup を実行する)ヒントを追加。

原文(Release Notes)

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