2.1.145

Claude Code 2.1.145 - リリースノート

2026年5月19日
Claude Code

日本語サマリー

以下は、Claude Code 2.1.145 のリリースノートの日本語要約です。

⚠️ 破壊的変更・重要な修正

  • 権限プロンプトのバイパス修正: Bashコマンド内で、許可リストにない環境変数への変数代入が自動承認されていたセキュリティ問題を修正しました。
  • API呼び出し失敗の修正: Agent Teamsのチームメイト名に非ASCII文字(日本語など)が含まれていると、無効なヘッダーエンコーディングによりAPI呼び出しが常に失敗する不具合を修正しました。

💡 主な変更点・新機能

  • セッション・ステータス管理の改善: claude agents にJSON出力オプション(--json)を追加し、ターミナルのタブタイトルで入力待ち状態のエージェント数を確認できるようになりました。
  • プラグインの事前確認: /plugin の画面で、インストール前にプラグインのコマンドやエージェント、MCP/LSPサーバーなどの情報を確認できるようになりました。
  • OpenTelemetryの強化: claude_code.tool OTELスパンに agent_id と parent_agent_id 属性を追加し、バックグラウンドサブエージェントのトレースが正しくネストされるよう改善しました。
  • ステータスラインの情報追加: GitHubのリポジトリやPR情報が検出された際、それらがステータスラインのJSON入力に含まれるようになりました。
  • フック入力の拡張: Stop および SubagentStop フックの入力に、background_tasks と session_crons フィールドが追加されました。
  • Readツールの改善: ファイル全体がトークン制限を超える場合にハードエラーを出す仕様を変更し、トランケートされた最初のページ("PARTIAL view")を返すように改善しました。

🐛 その他のバグ修正

  • スラッシュコマンドや@メンションのサジェストリストがフルスクリーンモードでマウス操作に対応しました。
  • MCPプロンプトで必須引数が省略された際のエラーメッセージが分かりやすく改善されました。
  • ターミナルのリサイズや再フォーカス後にスピナーや経過時間の表示がフリーズする問題を修正しました。
  • Windows PowerShell 5.1環境でのクロスプロジェクトのレジュームヒントが正しく動作するよう修正しました(コマンド区切り文字を ; に変更)。
  • context: fork を使用したスキルが自身を無限ループで繰り返し呼び出してしまう問題を修正しました。
  • gh pr create 実行後のフッターのPRバッジが即座に更新されない問題などを修正しました。

原文(Release Notes)

What's changed

  • Added claude agents --json to list live Claude sessions as JSON for scripting (tmux-resurrect, status bars, session pickers)
  • Added agent_id and parent_agent_id attributes to claude_code.tool OTEL spans, and fixed trace parenting so background subagent spans nest under the dispatching Agent tool span
  • Status line JSON input now includes GitHub repo and PR information when detected
  • /plugin Discover and Browse screens now show a plugin's commands, agents, skills, hooks, and MCP/LSP servers before installation
  • claude agents terminal tab title now shows the awaiting-input count so an alt-tabbed window tells you when an agent needs attention
  • Slash command and @-mention suggestion list now supports mouse hover and click in fullscreen mode
  • Stop and SubagentStop hook input now includes background_tasks and session_crons fields
  • Fixed a permission-prompt bypass where bare variable assignments to non-allowlisted environment variables in Bash commands were auto-approved
  • Fixed MCP prompt slash commands showing raw server validation errors when a required argument is omitted — the error now names the missing argument and shows expected usage
  • Fixed the spinner and elapsed-time display freezing until a keypress after the terminal was resized or refocused
  • Fixed the cross-project resume hint failing in default Windows PowerShell 5.1 — Windows now uses ; as the command separator
  • Fixed voice push-to-talk not working in the agent view's reply pane
  • Fixed task lists rendering in random order when several tasks are created at once
  • Fixed stale "Failed to install Anthropic marketplace" banner showing when the marketplace is already installed
  • Fixed the PR badge in the footer not updating immediately after gh pr create and other PR-state-changing commands run in-session
  • Fixed Agent Teams teammates with non-ASCII names failing every API call due to invalid header encoding
  • Fixed /review using a deprecated projectCards GraphQL query that errored on repos with Classic Projects
  • Fixed claude plugin validate not flagging skills: entries that point at a file instead of a directory — the error now suggests the parent directory
  • Fixed an infinite loop where a skill using context: fork could repeatedly re-invoke itself instead of running
  • Improved the Read tool to return a truncated first page with a "PARTIAL view" notice instead of a hard error when a whole-file read exceeds the token limit