2.1.140

Claude Code 2.1.140 - リリースノート

2026年5月12日
Claude Code

日本語サマリー

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

破壊的変更や重要なセキュリティ修正に関する記載はありません。

主な変更点

  • Agent ツールの改善: Agent ツールの subagent_type において、大文字小文字や区切り文字(ハイフンやスペースなど)を区別せずに受け付けるように改善(例: "Code Reviewer" が code-reviewer に解決される)
  • UI/表示の更新: Agent のカラーパレットを更新
  • /goal コマンドの修正: disableAllHooks や allowManagedHooksOnly 設定時に無言でフリーズしていた問題を修正し、明確なメッセージを表示するように変更
  • 設定のホットリロード修正: シンボリックリンクされた設定ファイルが原因で、誤った変更イベントや不要な ConfigChange フックが発生していたリグレッションを修正
  • バックグラウンド実行の安定性向上: アイドル状態で終了する際に claude --bg が「connection dropped mid-request」エラーで失敗する問題や、エンタープライズ向けセキュリティ環境での起動失敗(タイムアウト)問題を修正
  • 設定・ポリシーの同期修正: リモートの管理設定(managed settings)で 401 エラー時の再試行や、管理対象の extraKnownMarketplaces 自動更新ポリシーが known_marketplaces.json に保存されない問題を修正
  • パフォーマンス改善: /loop による不要なポーリングスケジュールの排除、および Windows 環境で存在しない実行可能ファイル(gh など)を確認する際に where.exe が毎回同期的に起動してイベントループが停止する問題を修正
  • ツール呼び出しの修正: Read ツール呼び出し時に、offset にスペースが含まれる文字列や + 接頭辞の文字列が渡されると検証に失敗する問題を修正
  • ターミナル UI の修正: ターミナルがフォーカスを失った際、ネイティブのカーソルが入力キャレットの位置に留まらない問題を修正
  • プラグインの警告追加: plugin.json でキーが設定されているため、デフォルトのコンポーネントフォルダ(例: commands/)が暗黙的に無視されている場合に警告を表示するよう変更(/doctor, claude plugin list, /plugin で確認可能)

原文(Release Notes)

What's changed

  • Improved Agent tool subagent_type matching to accept case- and separator-insensitive values (e.g. "Code Reviewer" resolves to code-reviewer)
  • Updated agent color palette
  • Fixed /goal silently hanging when disableAllHooks or allowManagedHooksOnly is set — now shows a clear message instead of an indicator that never resolves
  • Fixed a regression in settings hot-reload where symlinked settings files caused misattributed change events and spurious ConfigChange hooks
  • Fixed claude --bg failing with "connection dropped mid-request" when the background service was about to idle-exit
  • Fixed background service startup failing on machines with enterprise endpoint security by allowing more time
  • Fixed remote managed settings not retrying on 401 — now retries once with a force-refreshed token
  • Fixed managed extraKnownMarketplaces auto-update policy not being persisted to known_marketplaces.json
  • Fixed /loop scheduling redundant wakeups to poll for background tasks that already notify on completion
  • Fixed a recurring event-loop stall on Windows when a missing executable (e.g. gh) triggered synchronous where.exe re-spawns on every check
  • Fixed Read tool calls failing validation when offset is passed as a whitespace-padded or +-prefixed string
  • Fixed native terminal cursor not staying at the input caret when the terminal loses focus
  • Plugins now warn when a default component folder (e.g. commands/) is silently ignored because plugin.json sets the matching key. Shown in /doctor, claude plugin list, and /plugin.