v2.1.105
📝 概要
ワークツリー切り替え機能、プラグイン監視機能、UIの改善、多数のバグ修正を含む安定性向上リリース
🔄 主な変更点
- 新機能:
EnterWorktreeツールにpathパラメータを追加し、既存ワークツリーへの切り替えが可能に - 新機能: PreCompactフックがコンパクション処理をブロック可能に(終了コード2または
{"decision":"block"}で制御) - 新機能: プラグインのバックグラウンド監視機能を追加(
monitorsキーで設定) - 改善:
/proactiveが/loopのエイリアスとして利用可能に - 改善: APIストリームが5分間無応答の場合、自動的に中断して非ストリーミングでリトライ
- 改善:
WebFetchが<style>と<script>タグを除去し、実際のコンテンツを優先的に取得 - 改善:
/doctorのレイアウトを改善、fキーで問題を自動修正 - 修正: キューに入れたメッセージに添付した画像が失われる問題を解決
- 修正: プロンプト入力が2行に折り返された際に画面が真っ白になる問題を解決
- 修正: フルスクリーンモードでの複数行選択時に先頭空白がコピーされる問題を解決
- 修正: Alt+EnterやCtrl+Jで改行が入力できない問題を解決(2.1.100での退行バグ)
- 修正: MCPサーバーの非同期接続時、最初のターンでツールが利用できない問題を解決
💡 解説・活用案
今回のアップデートでは、既存ワークツリー間の切り替えがスムーズになり、マルチブランチ開発のワークフローが大幅に効率化されます。プラグインのバックグラウンド監視機能により、プロジェクトの状態変化を自動検知して通知できるようになるため、CI/CDパイプラインやファイル監視タスクとの連携が強化されます。また、WebFetchの改善により、CSS重量級のページでもコンテンツ本文を確実に取得できるようになり、ウェブスクレイピングタスクの成功率が向上します。
🌐 日本語訳
変更内容
EnterWorktreeツールにpathパラメータを追加し、現在のリポジトリの既存ワークツリーに切り替え可能に- PreCompactフックのサポートを追加:フックが終了コード2で終了するか
{"decision":"block"}を返すことでコンパクションをブロック可能に - プラグイン向けのバックグラウンド監視機能をサポート:トップレベルの
monitorsマニフェストキーを使用し、セッション開始時またはスキル呼び出し時に自動起動 /proactiveが/loopのエイリアスになりました- 停止したAPIストリーム処理を改善:ストリームはデータが5分間なければ中断され、無限にハングする代わりに非ストリーミングでリトライするようになりました
- ネットワークエラーメッセージを改善:接続エラーが発生した場合、無言のスピナーではなく即座にリトライメッセージを表示
- ファイル書き込み表示を改善:長い単一行の書き込み(例:圧縮されたJSON)は、複数画面にわたってページ送りする代わりにUI上で切り詰められるようになりました
/doctorのレイアウトをステータスアイコンで改善;fキーを押すと報告された問題をClaudeが修正/configのラベルと説明を明確化のため改善- スキル説明の処理を改善:リストの上限を250文字から1,536文字に引き上げ、説明が切り詰められた場合の起動時警告を追加
WebFetchを改善し、取得したページから<style>と<script>の内容を除去することで、CSS重量級のページでも実際のテキストに到達する前にコンテンツ予算を使い果たさないように- 古いエージェントワークツリーのクリーンアップを改善し、PRがスカッシュマージされたワークツリーを無期限に保持する代わりに削除するように
- MCPの大規模出力切り詰めプロンプトを改善し、フォーマット固有のレシピ(例:JSONの場合は
jq、テキストの場合は計算されたRead チャンクサイズ)を提供 - Claudeが作業中に送信されたキューイングされたメッセージに添付された画像が削除される問題を修正
- 長い会話でプロンプト入力が2行目に折り返されると画面が真っ白になる問題を修正
- フルスクリーンモードで複数行のアシスタント応答を選択する際、先頭の空白がコピーされる問題を修正
- 先頭の空白がアシスタントメッセージから削除され、ASCIIアートやインデントされた図が壊れる問題を修正
- コマンドがクリック可能なファイルリンクを出力する場合(例:Pythonの
rich/loguruロギング)にbash出力が文字化けする問題を修正 - ESCプレフィックスaltエンコーディングを使用する端末でalt+enterが改行を挿入しない問題、およびCtrl+Jが改行を挿入しない問題を修正(2.1.100での退行)
- EnterWorktree/ExitWorktreeツール表示で「Creating worktree」テキストが重複する問題を修正
- フォーカスモードからキューイングされたユーザープロンプトが消える問題を修正
- ファイルウォッチャーが起動後のクリーンアップを見逃した場合、ワンショットスケジュールタスクが繰り返し再起動する問題を修正
- Team/Enterpriseユーザーに対して、最初のメッセージ以降のインバウンドチャネル通知が黙って削除される問題を修正
package.jsonとロックファイルを持つマーケットプレイスプラグインが、インストール/更新後に依存関係が自動的にインストールされない問題を修正- プラグインプロセスが更新中にファイルを開いたままにしている場合、マーケットプレイスの自動更新が公式マーケットプレイスを壊れた状態にする問題を修正
/resume、--worktree、または/branch後の終了時に「Resume this session with...」ヒントが表示されない問題を修正- より長いプロンプトの末尾で入力された場合にフィードバック調査のショートカットキーが発動する問題を修正
- stdio MCPサーバーが不正な形式(非JSON)の出力を発する場合、「Connection closed」で即座に失敗する代わりにセッションがハングする問題を修正
- MCPサーバーが非同期に接続する場合、ヘッドレス/リモートトリガーセッションの最初のターンでMCPツールが欠落する問題を修正
- 米国外のAWS Bedrock地域での
/modelピッカーが、推論プロファイル検出がまだ進行中の場合に無効なus.*モデルIDをsettings.jsonに保持する問題を修正 - 429レート制限エラーがAPI-key、Bedrock、Vertexユーザーに対してクリーンなメッセージではなく生のJSONダンプを表示する問題を修正
- 不正な形式のテキストブロックを含むセッションを再開する際のクラッシュを修正
- 短い端末の高さで
/helpがタブバー、Shortcutsヘッダー、フッターを削除する問題を修正 keybindings.json内の不正な形式のキーバインディングエントリ値が、明確なエラーで拒否される代わりに黙ってロードされる問題を修正- あるプロジェクトの設定で
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFICを設定すると、マシン上のすべてのプロジェクトの使用状況メトリクスが永続的に無効になる問題を修正 - SSH/mosh経由でGhostty、Kitty、Alacritty、WezTerm、foot、rio、Contourを使用する場合の色あせた16色パレットを修正
- Bashツールがプランモードを終了すると、より高い権限レベルからダウングレードされる場合に
acceptEdits権限モードを提案する問題を修正
原文(英語)を表示
What's changed
- Added
pathparameter to theEnterWorktreetool to switch into an existing worktree of the current repository - Added PreCompact hook support: hooks can now block compaction by exiting with code 2 or returning
{"decision":"block"} - Added background monitor support for plugins via a top-level
monitorsmanifest key that auto-arms at session start or on skill invoke /proactiveis now an alias for/loop- Improved stalled API stream handling: streams now abort after 5 minutes of no data and retry non-streaming instead of hanging indefinitely
- Improved network error messages: connection errors now show a retry message immediately instead of a silent spinner
- Improved file write display: long single-line writes (e.g. minified JSON) are now truncated in the UI instead of paginating across many screens
- Improved
/doctorlayout with status icons; pressfto have Claude fix reported issues - Improved
/configlabels and descriptions for clarity - Improved skill description handling: raised the listing cap from 250 to 1,536 characters and added a startup warning when descriptions are truncated
- Improved
WebFetchto strip<style>and<script>contents from fetched pages so CSS-heavy pages no longer exhaust the content budget before reaching actual text - Improved stale agent worktree cleanup to remove worktrees whose PR was squash-merged instead of keeping them indefinitely
- Improved MCP large-output truncation prompt to give format-specific recipes (e.g.
jqfor JSON, computed Read chunk sizes for text) - Fixed images attached to queued messages (sent while Claude is working) being dropped
- Fixed screen going blank when the prompt input wraps to a second line in long conversations
- Fixed leading whitespace getting copied when selecting multi-line assistant responses in fullscreen mode
- Fixed leading whitespace being trimmed from assistant messages, breaking ASCII art and indented diagrams
- Fixed garbled bash output when commands print clickable file links (e.g. Python
rich/logurulogging) - Fixed alt+enter not inserting a newline in terminals using ESC-prefix alt encoding, and Ctrl+J not inserting a newline (regression in 2.1.100)
- Fixed duplicate "Creating worktree" text in EnterWorktree/ExitWorktree tool display
- Fixed queued user prompts disappearing from focus mode
- Fixed one-shot scheduled tasks re-firing repeatedly when the file watcher missed the post-fire cleanup
- Fixed inbound channel notifications being silently dropped after the first message for Team/Enterprise users
- Fixed marketplace plugins with
package.jsonand lockfile not having dependencies installed automatically after install/update - Fixed marketplace auto-update leaving the official marketplace in a broken state when a plugin process holds files open during the update
- Fixed "Resume this session with..." hint not printing on exit after
/resume,--worktree, or/branch - Fixed feedback survey shortcut keys firing when typed at the end of a longer prompt
- Fixed stdio MCP server emitting malformed (non-JSON) output hanging the session instead of failing fast with "Connection closed"
- Fixed MCP tools missing on the first turn of headless/remote-trigger sessions when MCP servers connect asynchronously
- Fixed
/modelpicker on AWS Bedrock in non-US regions persisting invalidus.*model IDs tosettings.jsonwhen inference profile discovery is still in-flight - Fixed 429 rate-limit errors showing a raw JSON dump instead of a clean message for API-key, Bedrock, and Vertex users
- Fixed crash on resume when session contains malformed text blocks
- Fixed
/helpdropping the tab bar, Shortcuts heading, and footer at short terminal heights - Fixed malformed keybinding entry values in
keybindings.jsonbeing silently loaded instead of rejected with a clear error - Fixed
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFICin one project's settings permanently disabling usage metrics for all projects on the machine - Fixed washed-out 16-color palette when using Ghostty, Kitty, Alacritty, WezTerm, foot, rio, or Contour over SSH/mosh
- Fixed Bash tool suggesting
acceptEditspermission mode when exiting plan mode would downgrade from a higher permission level