v2.1.86
📝 概要
セッション管理とパフォーマンスの大幅改善、ファイル操作のバグ修正、VSCode拡張の安定性向上を含む包括的なアップデート
🔄 主な変更点
- 新機能: APIリクエストに
X-Claude-Code-Session-Idヘッダーを追加(プロキシによるセッション集約が可能に) - VCS対応: JujutsuとSaplingのメタデータディレクトリ(
.jj,.sl)を除外リストに追加 - バグ修正:
--resumeでv2.1.85以前のセッションが失敗する問題を解決 - バグ修正: プロジェクトルート外のファイル操作(Write/Edit/Read)が失敗する問題を修正
- パフォーマンス改善: スキル実行時の不要なディスク書き込みを削減(Windows環境での設定破損リスクを軽減)
- メモリ対策:
/feedbackコマンド使用時のメモリ不足クラッシュを修正 - UI改善: OAuthログインURLのコピー機能、スクロール追従、マスク入力の表示問題を修正
- VSCode拡張: 長時間実行時の「応答なし」表示とMaxプランユーザーのモデル選択問題を解決
- トークン最適化:
@によるファイル参照時のJSON エスケープを廃止、Readツールの行番号フォーマットを圧縮
💡 解説・活用案
今回のリリースでは、特に長時間のセッションやファイル操作の安定性が大幅に向上しました。プロジェクトルート外のファイル(設定ファイルなど)も安全に編集できるようになり、メモリ管理の改善により大規模プロジェクトでのクラッシュリスクが低減されています。VSCode拡張ユーザーは、長時間実行タスクでの誤った「応答なし」表示が解消され、より快適に作業できるようになります。また、トークン使用量の最適化により、同じ作業でもコスト効率が向上する点も見逃せません。
🌐 日本語訳
変更内容
- APIリクエストに
X-Claude-Code-Session-Idヘッダーを追加。プロキシがリクエストボディを解析せずにセッション単位でリクエストを集約できるようになりました .jjと.slをVCSディレクトリ除外リストに追加。GrepやファイルオートコンプリートがJujutsuやSaplingのメタデータに降りていかないようになりました- v2.1.85より前に作成されたセッションで
--resumeが「tool_use ids were found without tool_result blocks」エラーで失敗する問題を修正 - 条件付きスキルやルールが設定されている場合に、プロジェクトルート外のファイル(例:
~/.claude/CLAUDE.md)でWrite/Edit/Readが失敗する問題を修正 - スキル呼び出しのたびに発生していた不要な設定ファイルのディスク書き込みを修正。これによりパフォーマンス問題とWindows環境での設定破損を防止
- 非常に長いセッションで大きなトランスクリプトファイルを使用している際に
/feedbackを使うとメモリ不足クラッシュが発生する可能性があった問題を修正 --bareモードでインタラクティブセッション中にMCPツールがドロップされ、ターン中にエンキューされたメッセージが黙って破棄される問題を修正cショートカットがOAuthログインURLの全文ではなく約20文字しかコピーしない問題を修正- 狭いターミナルで複数行にわたる場合に、マスク入力(例:OAuthコードペースト)がトークンの先頭を漏洩する問題を修正
- v2.1.83以降、macOS/Linuxで公式マーケットプレイスプラグインスクリプトが「Permission denied」で失敗する問題を修正
- 複数のClaude Codeインスタンスを実行中に1つで
/modelを使用した際、ステータスラインが別セッションのモデルを表示する問題を修正 - 長い会話の下部でホイールスクロールやクリック選択後に新しいメッセージをスクロールが追従しない問題を修正
/pluginアンインストールダイアログを修正:nを押すとプラグインをアンインストールしつつデータディレクトリは保持するようになりました- クリック後にEnterを押すと応答が到着するまでトランスクリプトが空白になるリグレッションを修正
- キーワード削除後に
ultrathinkヒントが残り続ける問題を修正 - 長時間セッションでのメモリ増加を修正。markdown/ハイライトレンダーキャッシュが完全なコンテンツ文字列を保持していた問題を解決
- 多数のclaude.ai MCPコネクタが設定されている場合の起動時イベントループストールを軽減(macOSキーチェーンキャッシュを5秒から30秒に延長)
@でファイルをメンションする際のトークンオーバーヘッドを削減。生の文字列コンテンツがJSON エスケープされなくなりました- Bedrock、Vertex、Foundryユーザーのプロンプトキャッシュヒット率を改善。ツールの説明から動的コンテンツを削除しました
- 「N個のメモリを保存しました」通知内のメモリファイル名が、ホバー時にハイライトされクリックで開くようになりました
/skillsリスト内のスキル説明を250文字に制限し、コンテキスト使用量を削減/skillsメニューをアルファベット順にソートし、スキャンしやすくしました- Autoモードがプラン制限により無効化されている場合、「temporarily unavailable」ではなく「unavailable for your plan」と表示されるようになりました
- [VSCode] 長時間実行操作中に拡張機能が誤って「Not responding」と表示される問題を修正
- [VSCode] OAuthトークンがリフレッシュされた後(ログインから8時間後)、MaxプランユーザーがSonnetにデフォルト設定される問題を修正
- Readツールがコンパクトな行番号フォーマットを使用し、変更されていない再読み込みの重複を排除することで、トークン使用量を削減
原文(英語)を表示
What's changed
- Added
X-Claude-Code-Session-Idheader to API requests so proxies can aggregate requests by session without parsing the body - Added
.jjand.slto VCS directory exclusion lists so Grep and file autocomplete don't descend into Jujutsu or Sapling metadata - Fixed
--resumefailing with "tool_use ids were found without tool_result blocks" on sessions created before v2.1.85 - Fixed Write/Edit/Read failing on files outside the project root (e.g.,
~/.claude/CLAUDE.md) when conditional skills or rules are configured - Fixed unnecessary config disk writes on every skill invocation that could cause performance issues and config corruption on Windows
- Fixed potential out-of-memory crash when using
/feedbackon very long sessions with large transcript files - Fixed
--baremode dropping MCP tools in interactive sessions and silently discarding messages enqueued mid-turn - Fixed the
cshortcut copying only ~20 characters of the OAuth login URL instead of the full URL - Fixed masked input (e.g., OAuth code paste) leaking the start of the token when wrapping across multiple lines on narrow terminals
- Fixed official marketplace plugin scripts failing with "Permission denied" on macOS/Linux since v2.1.83
- Fixed statusline showing another session's model when running multiple Claude Code instances and using
/modelin one of them - Fixed scroll not following new messages after wheel scroll or click-to-select at the bottom of a long conversation
- Fixed
/pluginuninstall dialog: pressingnnow correctly uninstalls the plugin while preserving its data directory - Fixed a regression where pressing Enter after clicking could leave the transcript blank until the response arrived
- Fixed
ultrathinkhint lingering after deleting the keyword - Fixed memory growth in long sessions from markdown/highlight render caches retaining full content strings
- Reduced startup event-loop stalls when many claude.ai MCP connectors are configured (macOS keychain cache extended from 5s to 30s)
- Reduced token overhead when mentioning files with
@— raw string content no longer JSON-escaped - Improved prompt cache hit rate for Bedrock, Vertex, and Foundry users by removing dynamic content from tool descriptions
- Memory filenames in the "Saved N memories" notice now highlight on hover and open on click
- Skill descriptions in the
/skillslisting are now capped at 250 characters to reduce context usage - Changed
/skillsmenu to sort alphabetically for easier scanning - Auto mode now shows "unavailable for your plan" when disabled by plan restrictions (was "temporarily unavailable")
- [VSCode] Fixed extension incorrectly showing "Not responding" during long-running operations
- [VSCode] Fixed extension defaulting Max plan users to Sonnet after the OAuth token refreshes (8 hours after login)
- Read tool now uses compact line-number format and deduplicates unchanged re-reads, reducing token usage