v2.1.84
📝 概要
PowerShellツールのプレビュー追加、MCP機能改善、パフォーマンス最適化、多数のバグ修正を含む大型アップデート
🔄 主な変更点
- 新機能: Windows向けPowerShellツールをプレビュー版として追加(オプトイン)
- 新機能: カスタム環境変数でモデル設定をより柔軟に制御可能に(
ANTHROPIC_DEFAULT_*) - 改善: MCPツール/リソースの説明を2KBに制限してコンテキスト肥大化を防止
- 改善: ローカルとclaud.aiコネクター両方で設定されたMCPサーバーの重複排除(ローカル設定が優先)
- 改善: 起動パフォーマンスを約30ms改善
- 修正: 音声入力のプッシュトゥトーク機能の不具合を解消
- 修正: VSCodeでの日本語入力(IME)がインライン表示されるように修正
- 修正: macOSでキーチェーン読み取り失敗による「ログインしていません」エラーを修正
- 変更: イシュー/PR参照は
owner/repo#123形式のみリンク化(#123単体は対象外)
💡 解説・活用案
Windows環境でPowerShellが使えるようになり、Windows特有のタスク自動化が可能になります。MCP機能の改善により、複数のツールを組み合わせた開発がよりスムーズに。特に75分以上の長時間セッションでは自動的に/clearを促すようになり、トークンキャッシュの無駄を削減できます。日本語入力の修正により、日本語ユーザーの入力体験が大幅に向上しています。
🌐 日本語訳
変更内容
- 追加: WindowsユーザーにPowerShellツールをプレビュー版として追加(オプトイン)。詳細は https://code.claude.com/docs/en/tools-reference#powershell-tool を参照
- 追加: サードパーティプロバイダー(Bedrock、Vertex、Foundry)向けに、固定デフォルトモデルの努力/思考能力検出をオーバーライドする環境変数
ANTHROPIC_DEFAULT_{OPUS,SONNET,HAIKU}_MODEL_SUPPORTSと、/modelピッカーのラベルをカスタマイズする_MODEL_NAME/_DESCRIPTIONを追加 - 追加: ストリーミングアイドルウォッチドッグの閾値を設定する環境変数
CLAUDE_STREAM_IDLE_TIMEOUT_MSを追加(デフォルト90秒) - 追加:
TaskCreate経由でタスクが作成されたときに発火するTaskCreatedフックを追加 - 追加:
type: "http"のWorktreeCreateフックサポート — レスポンスJSONのhookSpecificOutput.worktreePath経由で作成されたワークツリーパスを返す - 追加: チーム/エンタープライズ管理者がチャネルプラグインの許可リストを定義できる管理設定
allowedChannelPluginsを追加 - 追加: タイムアウトのデバッグ用にAPIリクエストに
x-client-request-idヘッダーを追加 - 追加: 75分以上経過後に戻ってきたユーザーに
/clearを促すアイドルリターンプロンプトを追加し、古いセッションでの不要なトークン再キャッシュを削減 - 改善: ディープリンク(
claude-cli://)が検出リストの最初のターミナルではなく、ユーザーの優先ターミナルで開くように - 改善: ルールとスキルの
paths:frontmatterでglobのYAMLリストを受け付けるように - 改善: MCPツールの説明とサーバー指示を2KBに制限し、OpenAPI生成サーバーがコンテキストを肥大化させるのを防止
- 改善: ローカルとclaud.aiコネクター両方で設定されたMCPサーバーを重複排除 — ローカル設定が優先
- 改善: 対話型プロンプトでスタックしているように見えるバックグラウンドbashタスクが約45秒後に通知を表示
- 改善: 1M以上のトークン数を「1512.6k」ではなく「1.5m」と表示
- 改善:
ToolSearchが有効な場合でも、MCPツールが設定されているユーザーを含めて、グローバルシステムプロンプトキャッシングが機能するように - 修正: 音声プッシュトゥトーク機能の修正 — 音声キーを押している間に文字がテキスト入力に漏れなくなり、トランスクリプトが正しい位置に挿入されるように
- 修正: フッターアイテムにフォーカスがある場合の上下矢印キーの無反応を修正
- 修正: 複数行入力で行境界にある場合の
Ctrl+U(行頭までキル)が無効だった問題を修正し、繰り返しのCtrl+Uで行をまたいでクリアできるように - 修正: デフォルトのコードバインディング(例:
"ctrl+x ctrl+k": null)のnullアンバインドがコード待機モードに入ってしまい、プレフィックスキーが解放されない問題を修正 - 修正: マウスイベントがトランスクリプト検索入力にリテラルな「mouse」テキストを挿入する問題を修正
- 修正: 外部セッションが
--json-schemaを使用し、サブエージェントもスキーマを指定している場合にワークフローサブエージェントがAPI 400で失敗する問題を修正 - 修正: 一部のターミナルでユーザーメッセージバブル内の特定の絵文字の背景色が欠けている問題を修正
- 修正:
Edit(.claude)許可ルールを持つユーザーに対して「このセッションでClaudeが自身の設定を編集することを許可する」権限オプションが保持されない問題を修正 - 修正: 大きな編集ファイルの添付スニペット生成時のハングを修正
- 修正: サーバー再接続時のMCPツール/リソースキャッシュリークを修正
- 修正: 部分クローンリポジトリ(Scalar/GVFS)が大量のblob ダウンロードをトリガーする起動パフォーマンスの問題を修正
- 修正: ネイティブターミナルカーソルがテキスト入力キャレットを追跡しないため、IME変換(日本語・中国語・韓国語入力)がインライン表示され、スクリーンリーダーが入力位置を追跡できるように
- 修正: macOSで一時的なキーチェーン読み取り失敗によって引き起こされる偽の「ログインしていません」エラーを修正
- 修正: コールドスタート時の競合状態で、コアツールがバイパスなしで延期され、型付きパラメータでEdit/WriteがInputValidationErrorで失敗する問題を修正
- 改善: Windowsドライブルート(
C:\、C:\Windowsなど)の危険な削除の検出を改善 - 改善: スラッシュコマンドとエージェント読み込みと並行して
setup()を実行することで、対話型起動を約30ms改善 - 改善: MCPサーバーを使用した
claude "prompt"の起動改善 — すべてのサーバーが接続するまでブロックせず、REPLがすぐにレンダリングされるように - 改善: Remote Controlがブロックされた場合、一般的な「まだ有効になっていません」メッセージではなく、具体的な理由を表示するように
- 改善: プロンプトキャッシュ率のp90を改善
- 改善: メッセージウィンドウを圧縮とグループ化の変更から免れるようにすることで、長時間セッションでのスクロールトップへのリセットを削減
- 改善: アニメーション化されたツール進行状況がビューポート上にスクロールする際のターミナルのちらつきを削減
- 変更: イシュー/PR参照は
owner/repo#123として記述された場合のみクリック可能なリンクになるように — 単独の#123は自動リンクされなくなりました - 変更: 現在の認証設定で利用できないスラッシュコマンド(
/voice、/mobile、/chrome、/upgradeなど)は表示されずに非表示になるように - [VSCode] 使用率と次回リセット時刻を表示するレート制限警告バナーを追加
- 改善: 統計スクリーンショット(/statsでCtrl+S)がすべてのビルドで動作するようになり、16倍高速化
原文(英語)を表示
What's changed
- Added PowerShell tool for Windows as an opt-in preview. Learn more at https://code.claude.com/docs/en/tools-reference#powershell-tool
- Added
ANTHROPIC_DEFAULT_{OPUS,SONNET,HAIKU}_MODEL_SUPPORTSenv vars to override effort/thinking capability detection for pinned default models for 3p (Bedrock, Vertex, Foundry), and_MODEL_NAME/_DESCRIPTIONto customize the/modelpicker label - Added
CLAUDE_STREAM_IDLE_TIMEOUT_MSenv var to configure the streaming idle watchdog threshold (default 90s) - Added
TaskCreatedhook that fires when a task is created viaTaskCreate - Added
WorktreeCreatehook support fortype: "http"— return the created worktree path viahookSpecificOutput.worktreePathin the response JSON - Added
allowedChannelPluginsmanaged setting for team/enterprise admins to define a channel plugin allowlist - Added
x-client-request-idheader to API requests for debugging timeouts - Added idle-return prompt that nudges users returning after 75+ minutes to
/clear, reducing unnecessary token re-caching on stale sessions - Deep links (
claude-cli://) now open in your preferred terminal instead of whichever terminal happens to be first in the detection list - Rules and skills
paths:frontmatter now accepts a YAML list of globs - MCP tool descriptions and server instructions are now capped at 2KB to prevent OpenAPI-generated servers from bloating context
- MCP servers configured both locally and via claude.ai connectors are now deduplicated — the local config wins
- Background bash tasks that appear stuck on an interactive prompt now surface a notification after ~45 seconds
- Token counts ≥1M now display as "1.5m" instead of "1512.6k"
- Global system-prompt caching now works when
ToolSearchis enabled, including for users with MCP tools configured - Fixed voice push-to-talk: holding the voice key no longer leaks characters into the text input, and transcripts now insert at the correct position
- Fixed up/down arrow keys being unresponsive when a footer item is focused
- Fixed
Ctrl+U(kill-to-line-start) being a no-op at line boundaries in multiline input, so repeatedCtrl+Unow clears across lines - Fixed null-unbinding a default chord binding (e.g.
"ctrl+x ctrl+k": null) still entering chord-wait mode instead of freeing the prefix key - Fixed mouse events inserting literal "mouse" text into transcript search input
- Fixed workflow subagents failing with API 400 when the outer session uses
--json-schemaand the subagent also specifies a schema - Fixed missing background color behind certain emoji in user message bubbles on some terminals
- Fixed the "allow Claude to edit its own settings for this session" permission option not sticking for users with
Edit(.claude)allow rules - Fixed a hang when generating attachment snippets for large edited files
- Fixed MCP tool/resource cache leak on server reconnect
- Fixed a startup performance issue where partial clone repositories (Scalar/GVFS) triggered mass blob downloads
- Fixed native terminal cursor not tracking the text input caret, so IME composition (CJK input) now renders inline and screen readers can follow the input position
- Fixed spurious "Not logged in" errors on macOS caused by transient keychain read failures
- Fixed cold-start race where core tools could be deferred without their bypass active, causing Edit/Write to fail with InputValidationError on typed parameters
- Improved detection for dangerous removals of Windows drive roots (
C:\,C:\Windows, etc.) - Improved interactive startup by ~30ms by running
setup()in parallel with slash command and agent loading - Improved startup for
claude "prompt"with MCP servers — the REPL now renders immediately instead of blocking until all servers connect - Improved Remote Control to show a specific reason when blocked instead of a generic "not yet enabled" message
- Improved p90 prompt cache rate
- Reduced scroll-to-top resets in long sessions by making the message window immune to compaction and grouping changes
- Reduced terminal flickering when animated tool progress scrolls above the viewport
- Changed issue/PR references to only become clickable links when written as
owner/repo#123— bare#123is no longer auto-linked - Slash commands unavailable for the current auth setup (
/voice,/mobile,/chrome,/upgrade, etc.) are now hidden instead of shown - [VSCode] Added rate limit warning banner with usage percentage and reset time
- Stats screenshot (Ctrl+S in /stats) now works in all builds and is 16× faster