2.1.163

Claude Code 2.1.163 - リリースノート

2026年6月4日
Claude Code

日本語サマリー

Claude Code 2.1.163 リリースノート要約

本リリースに伴う破壊的変更や重大なセキュリティ修正はありません。以下に主要な変更点とバグ修正をまとめました。

主な変更点・新機能

  • バージョン制限機能: マネージド設定に requiredMinimumVersion と requiredMaximumVersion が追加され、許可されたバージョン外での起動が制限されるようになりました。
  • プラグイン・UI改善: インストール済みプラグインをリスト表示する /plugin list コマンド(--enabled / --disabled フィルタ付き)が追加されました。
  • コピー機能: /btw にて、書式を維持したままマークダウン形式でクリップボードにコピーできる「c to copy」ショートカットが追加されました。
  • Hooks の改善: Stop および SubagentStop hooks が hookSpecificOutput.additionalContext を返すことで、エラー扱いなしにフィードバックを渡してターンを継続できるようになりました。
  • Skills の仕様追加: コマンド本体において、リテラルの $ を表すための \$ エスケープ構文が追加されました。
  • MCP / エージェント改善: stdio MCP サーバーが --resume 時に hooks/Bash と同じ CLAUDE_CODE_SESSION_ID を受け取るようになりました。また、claude agents のバックグラウンドセッションがアップデートをバックグラウンドで自動適用するようになり、アップデート後の起動が高速化しました。

重要なバグ修正

  • クラッシュ・フリーズ修正: claude -p が結果出力後にフリーズする問題や、Windows環境の OneDrive 配下等で発生していた "EEXIST" エラーによる Bash コマンド失敗が修正されました。
  • API・実行環境エラーの修正: Bedrock/Vertex/Foundry 環境において CI=true 時に発生していた "ANTHROPIC_API_KEY required" エラーを修正しました。
  • パス・権限関連の修正: $TMPDIR の意図しない上書きによる失敗(bazel等)を修正しました。また、hookの if: "Bash(...)" がサブシェル内でも正しく機能するようになり、$HOME を経由したホームディレクトリ(例: ~/Desktop/**)の deny ルール回避も修正されました。

原文(Release Notes)

What's changed

  • Added requiredMinimumVersion and requiredMaximumVersion managed settings — Claude Code refuses to start if its version is outside the allowed range and directs the user to an approved version
  • Added /plugin list command to list installed plugins, with --enabled/--disabled filters
  • Added a "c to copy" shortcut to /btw that copies the raw markdown answer to the clipboard, preserving formatting when pasted elsewhere
  • Hooks: Stop and SubagentStop hooks can now return hookSpecificOutput.additionalContext to give Claude feedback and keep the turn going without being labeled a hook error
  • Skills: added \$ escape syntax to include a literal $ before a digit in command bodies
  • stdio MCP servers now receive the same CLAUDE_CODE_SESSION_ID as hooks/Bash on --resume
  • Fixed claude -p hanging forever after its final result when a backgrounded command never exits — background shells are now stopped ~5s after the result once stdin closes
  • Fixed claude -p failing with "ANTHROPIC_API_KEY required" on Bedrock/Vertex/Foundry when CI=true and no Anthropic API key is set
  • Fixed bash commands failing under bazel and EDR-protected Go workflows: $TMPDIR was overridden to /tmp/claude-{uid} for all commands instead of only sandboxed ones (regression in 2.1.154)
  • Fixed Bash commands failing on Windows with "EEXIST: file already exists" on the session-env directory when it has the read-only attribute or is inside OneDrive
  • Fixed org-managed permission rules not applying for the entire session when the managed settings fetch completed during startup on a fresh config directory
  • Fixed background sessions in claude agents losing their running background tasks when reattached after a Claude Code update
  • Fixed terminal misalignment and a multi-second hang when exiting the agent view by pressing Esc
  • Fixed clicking Stop on a background-task chip in the desktop app not clearing the chip when the underlying process was already gone
  • Fixed keyboard input becoming permanently unresponsive after a paste operation whose end marker is dropped by the terminal
  • Fixed hook if: "Bash(...)" conditions firing on every Bash command containing $() or $VAR; the pattern now matches against commands inside subshells and backticks too
  • Fixed deny rules on home-directory paths (e.g. Read(~/Desktop/**)) not blocking Bash commands that reference the path via $HOME
  • Fixed a stray "(no content)" line left in the transcript after closing panel dialogs like /mcp and /plugins
  • Background agent sessions now update to a new Claude Code version in the background, so opening a session after an update no longer waits on a cold restart
  • Clearer descriptions for built-in commands and skills in the / menu
  • The subscription-switch suggestion now shows in the startup announcement slot instead of a toast
  • claude agents dispatching from the state-grouped view now starts the session in the directory the agent view was opened from