このバージョン以降にも更新があります。

最新版 v2.1.307 を見る →

Claude Code v2.1.301

変更項目 51 件

公式 CHANGELOG.md

このバージョンの概要

v2.1.301 では、claude-api スキルへの OpenTelemetry トレーシングガイダンスの追加や、vim モードでの対応する括弧へジャンプする % モーションの追加、組織が最新モデルを利用できない場合に前の Fable モデルで 1 回リトライするよう fable(および best)モデルエイリアスのエラーを修正しました。そのほか、Read ツールが .xlsm や .parquet などのバイナリファイルをテキストとして読む問題や、使用上限に達した際のサマリー作成についての挙動など、多数の不具合を修正しています。

Added追加(8件)

Added
無人リトライモード(CLAUDE_CODE_RETRY_WATCHDOG)において、使用制限のリセットが遠すぎる場合に待機せずリクエストを終了させるための CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS を追加した。
英語原文を表示
Added CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS so unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) ends a request at a usage limit that resets too far away instead of waiting

変更後

CI などの無人実行で CLAUDE_CODE_RETRY_WATCHDOG を有効にした際、リセットまで長い時間がある利用制限エラーでリトライを延々と待ち続けることがなくなる。この変数で最大待機時間を指定すれば、回復まで遠い制限に当たったリクエストを即座に終了させられ、ジョブが何時間も留まり続けるのを防げる。

関連ドキュメント

Added
claude-api スキルに OpenTelemetry トレーシングのガイダンスを追加した。ant CLI を使ったトレース送信先の設定手順などが含まれる。
英語原文を表示
Added OpenTelemetry tracing guidance to the claude-api skill, including setting up trace destinations with the ant CLI

変更後

OpenTelemetry トレーシングの設定手順を claude-api スキルから参照できるようになり、ant CLI を使ったトレース送信先の設定方法も確認しながら進められる。

Added
vim モードに % モーションを追加した。マッチする括弧へジャンプする機能で、単独でも d/c/y との組み合わせでも使える。
英語原文を表示
Added the % motion to vim mode: jump to the matching bracket, alone or with d/c/y

変更後

対応する括弧へ素早くジャンプできるようになり、d%/c%/y% を使って括弧の対応範囲をまとめて削除・変更・コピーできる。長い入力の中で括弧の対応を確認したり括弧ごと編集するときの操作が楽になる。

Added
モッド(Mods)の Input に rows を追加した。ターミナル内の複数行テキストフィールドで、Enter で送信され、Shift+Enter または Enter 直前のバックスラッシュで改行する。
英語原文を表示
Added rows to a mod's Input: a text field of several lines in the terminal, where Enter submits and Shift+Enter or a backslash before Enter starts a new line

変更後

複数行のテキストを入力できるフィールドをモーダル内に作成できるようになった。Enter で送信し、Shift+Enter や行末のバックスラッシュで改行を挿入できるため、モーダル内で長文や複数行の入力を扱いやすくなる。

Added
OpenTelemetry の tool_decision イベントに classifier_verdict と permission_mode を追加し、オートモードの分類器による判断とパーミッションルールによる判断を区別できるようにした。
英語原文を表示
Added classifier_verdict and permission_mode to OpenTelemetry tool_decision events, so auto mode classifier decisions can be told apart from permission rules

変更後

OpenTelemetry の tool_decision イベントで classifier_verdict と permission_mode を取得できるようになり、auto mode の分類器による判定と権限ルールによる判定を区別して監視・分析できるようになる。

Added
OTEL_LOG_TOOL_DETAILS=1 の際に、OpenTelemetry の tool_decision イベントに classifier_category を追加した。分類器によるブロックがマッチした組み込みルールの名前が記録される。
英語原文を表示
Added classifier_category to OpenTelemetry tool_decision events, naming the built-in rule a classifier block matched, when OTEL_LOG_TOOL_DETAILS=1

変更後

OTel の tool_decision イベントに、許可・拒否を判定した組み込みルール(classifier block)の名前が classifier_category として記録されるため、どの分類ルールがその判断に使われたかを監査ログから確認できる。

関連ドキュメント

Added
[VSCode] Claude の応答における LaTeX 数式の描画を追加した。$$ や複数行の $$ … $$ ブロック、インラインの $…$ および $$…$$ 形式の数式に対応する
英語原文を表示
[VSCode] Added LaTeX math rendering in Claude's responses, including $$ and multi-line \[ … \] blocks and inline $…$ and \(…\) math

変更後

VSCode のチャットパネルで、Claude の応答に含まれる数式がLaTeXとして整形されて表示されるようになる。数式を含む説明を読む際に、ソースコードのような生のLaTeX記法ではなく、組版された数式としてそのまま確認できる。

関連ドキュメント

Added
[VSCode] VS Code パネルと JetBrains パネルで、Pro および Max プランの利用上限バナーに「Get more usage」リンクを追加した
英語原文を表示
[VSCode] Added a "Get more usage" link to the usage-limit banner for Pro and Max plans in the VS Code and JetBrains panels

変更後

Pro・Maxプランで利用上限に達した際、VS Code や JetBrains のパネルから追加利用の入手方法に直接アクセスできるようになる。

Changed変更(7件)

Changed
フルスクリーンモード: 可視のトランスクリプト再構築中に /compact や自動コンパクトによって UI が一瞬固まる問題を修正した
英語原文を表示
Fullscreen mode: Fixed /compact and auto-compact briefly freezing the UI while the visible transcript is rebuilt
Changed
セルフホストランナー: managed settings で MCP サーバーが制限されている際に、Slack から開始したセッションがリポジトリの検出やアタッチに失敗する問題を修正した。これらのツールを無効化するには deniedMcpServers を使用する
英語原文を表示
Self-hosted runner: Fixed sessions started from Slack being unable to find or attach a repository when managed settings restrict MCP servers; use deniedMcpServers to keep those tools off

変更後

マネージド設定で MCP サーバーが制限されている環境でも、Slack から開始したセッションがリポジトリを見つけられなかったりアタッチできなかったりする問題を解消する。特定の MCP ツールをオフにしたい場合は deniedMcpServers で個別に除外できるため、必要なリポジリアタッチ機能を損なわずにポリシーを維持できる。

Changed
セルフホストランナー: 無関係なセットアップやセッションのエラーが git の参照欠落メッセージを含んでいた場合に、セッションが「ソースブランチ削除済み」と報告されてリトライされない問題を修正した
英語原文を表示
Self-hosted runner: Fixed sessions being reported as having a deleted source branch, and not retried, when an unrelated setup or session failure quoted git's missing-ref wording

変更後

setup やセッションの失敗など無関係なエラーのメッセージが git の参照不足を示す文言を含んでいても、削除済みブランチと誤判定されずにセッションが再試行されるようになる。

Changed
セルフホストランナー: 終了中のセッションに対して、失敗または拒否されたセッションリリースのリトライを予告するログが出力される問題を修正した。繰り返し失敗した場合には回数が表示されるようになった
英語原文を表示
Self-hosted runner: Fixed the log promising a retry of a failed or declined session release for a session that is ending; repeated failures now show a count

変更後

終了中のセッションに対して、失敗または拒否されたセッション解放の再試行を予告する誤解を招くログが出力されなくなります。繰り返し失敗した場合は失敗回数が表示されるため、ログの乱れや失敗状況の把握の負担が軽減される。

Changed
Windows: 停止したバックグラウンド PowerShell コマンドの出力ファイルに、閉じ側の [killed] 行が欠落する問題を修正した
英語原文を表示
Windows: Fixed stopped background PowerShell commands missing the closing [killed] line in their output file

変更後

Windows 上で停止したバックグラウンド PowerShell コマンドの出力ファイルに、終了を示す [killed] 行が正しく記録されるようになり、コマンドが強制終了されたことを出力から確認できる。

関連ドキュメント

Changed
mod フックの .catch ハンドラーを、フックが例外を投げたときまたはタイムアウトしたときにのみ実行するよう変更した。フック自身の呼び出し内で発生したイベントは、その .catch に問い合わせることなくフックをスキップする
英語原文を表示
Changed a mod hook's .catch handler to run only when the hook throws or times out; events raised beneath the hook's own calls now skip that hook without asking its .catch

変更後

mod のフックが内部で発火したイベントで誤って .catch ハンドラーが動作するなくなったため、エラーハンドラーがフック自体の失敗時にだけ確実に実行されるようになった。

Changed
mod の $.env.set の挙動を変更した。変数の設定または解除が行われた時点で {} で解決し、書き込みが行われなかった場合には理由を示す { deny } で解決する
英語原文を表示
Changed a mod's $.env.set to resolve with {} once the variable is set or unset, or with { deny } saying why when the write is not made

Improved改善(4件)

Improved
より小さいコンテキストウィンドウを持つモデルへの切り替えを改善した。新しいモデルには長すぎる会話が、まず以前のモデルによって要約されるようになった
英語原文を表示
Improved switching to a model with a smaller context window: a conversation too long for the new model is now summarized by the previous model first

変更後

コンテキストウィンドウが小さいモデルへ切り替える際、会話が長すぎてエラーになることがあった問題を解消する。

関連ドキュメント

Improved
長時間実行中のサブエージェントの動作中の描画パフォーマンスを改善した。その進捗トレースが毎回の描画で全体を再処理するのではなく、増分的に更新されるようになった
英語原文を表示
Improved rendering performance while a long-running subagent works: its progress trail now updates incrementally instead of being reprocessed in full on every render

変更後

実行時間の長いサブエージェントが動作している間も、画面の描画が重くならず、進捗表示をスムーズに追い続けられる。

Improved
アーティファクトを改善した。Claude が書くページで、スティッキーヘッダーの上の帯域を塗りつぶすようにしたため、モバイルアプリでスクロールしたテキストがそこに表示されなくなった
英語原文を表示
Improved artifacts: pages Claude writes now paint the band above a sticky header, so scrolled text no longer shows there in the mobile apps

変更後

モバイルアプリでアーティファクトのページをスクロールしても、固定ヘッダー上部の帯の領域に本文がはみ出して見えなくなり、画面がすっきり表示される。

Improved
mod を改善した。VS Code やデスクトップ・モバイルアプリでは、質問ダイアログの上に描画されるツリーで Markdown と最大 48 行を表示できるようになった。ターミナルでは従来どおりプレーンテキスト 12 行のままとなる
英語原文を表示
Improved mods: in VS Code and the desktop and mobile apps, a tree drawn above the question dialog can now hold Markdown and up to 48 rows; the terminal keeps 12 plain rows

変更後

VS Code やデスクトップ・モバイルアプリで質問ダイアログの上に表示できるツリーが Markdown 要素を含められるようになり、最大 48 行まで描画できる。これにより質問画面の周辺により多くの情報をリッチに表示できるようになる。

Fixed修正(32件)

Fixed
WorktreeCreate フックで作成された worktree に未プッシュのコミットが残っている可能性がある場合、確認なしに終了時に削除されてしまう問題を修正した。
英語原文を表示
Fixed quitting removing a worktree made by a WorktreeCreate hook without asking when it may hold unpushed commits

関連ドキュメント

Fixed
組織で最新の Fable モデルが利用できない場合に、fable (および best) モデルエイリアスが Anthropic API でエラーになる問題を修正した。Claude Code は以前の Fable モデルで 1 回リトライするようになった。
英語原文を表示
Fixed the fable (and best) model alias erroring on the Anthropic API when the newest Fable model is not available to your organization: Claude Code now retries once on the previous Fable model
Fixed
ディスクフルによりログイン情報の更新ができなかった際に誤解を招く「Please run /login」エラーが表示される問題を修正した。エラーメッセージはディスク名を示し、ファイルの削除を促すようになった。
英語原文を表示
Fixed a misleading "Please run /login" error when a full disk keeps the login from being refreshed; the error now names the disk and says to delete files

関連ドキュメント

Fixed
検索プログラムが結果を返す前に予期せず失敗した際に、Grep と Glob が「マッチなし」と報告する問題を修正した。検索が失敗したことを示すエラーを返すようになった。
英語原文を表示
Fixed Grep and Glob reporting no matches when the search program failed unexpectedly before returning any results; they now return an error saying the search failed
Fixed
タスクテキストがユーザーの権限を持たないことを示すハーネスの注意書きを読んだ後、ワークフローエージェントが自分のステップをスキップし、実行全体が成功と報告されることがある問題を修正した。
英語原文を表示
Fixed workflow agents sometimes skipping their step, and the run still reporting success, after reading the harness note that their task text carries no user authority

関連ドキュメント

Fixed
Edit または Write を対象とする PreToolUse フックが設定されている場合にアーティファクトの更新が拒否される問題を修正した。publish 呼び出し内でファイルを変更する代わりに、Claude がファイルを編集してから再公開するようになった。
英語原文を表示
Fixed artifact updates being refused where a PreToolUse hook covers Edit or Write; Claude now edits the file and then republishes instead of changing it in the publish call

関連ドキュメント

Fixed
引数名が非常に多い、または長いスキルやコマンドの呼び出し時に数秒間フリーズする問題を修正した。最初の 64 個の名前(それぞれ最大 64 文字)のみが埋め込まれるようになった。
英語原文を表示
Fixed skills and commands with very many or very long argument names stalling for seconds when invoked; only the first 64 names, each up to 64 characters, are now filled in
Fixed
引数が多数のプレースホルダーを埋める際に、スキル・コマンド・フックが非常に大量のメモリを消費する問題を修正した。
英語原文を表示
Fixed skills, commands and hooks using very large amounts of memory when their arguments fill many placeholders
Fixed
RHEL 8 の MATE Terminal など、0.53 未満の VTE ベースのターミナルで、>0q のような文字がフォルダ信頼プロンプトを覆い隠したり、終了時にシェルプロンプトの前に >4m が表示される問題を修正した。
英語原文を表示
Fixed stray characters such as >0q covering the folder trust prompt, and >4m before the shell prompt at exit, in terminals built on VTE older than 0.53 such as MATE Terminal on RHEL 8

関連ドキュメント

Fixed
一部のバージョンの iTerm2 で、起動時にプロンプトに GOK という文字が表示される問題を修正した。
英語原文を表示
Fixed stray GOK text appearing in the prompt at startup in some versions of iTerm2
Fixed
プロバイダーが Bedrock でないにもかかわらず、application-inference-profile を名前に含むモデルへ切り替えると awsAuthRefresh コマンドが実行され、モデル切り替えフックが遅延する問題を修正した。
英語原文を表示
Fixed switching to a model whose name contains application-inference-profile running your awsAuthRefresh command and delaying model-switch hooks when the provider is not Bedrock

関連ドキュメント

Fixed
claude auth status や claude plugin list のような短いコマンドがトークン更新の途中で終了した後に、サインインの更新タイムアウトや予期しないサインアウトが発生する問題を修正した。
英語原文を表示
Fixed sign-in refresh timeouts and unexpected sign-outs after a short command such as claude auth status or claude plugin list exited in the middle of a token refresh
Fixed
パーミッション確認中にターン途中で送信されたメッセージによって中断されたツール呼び出しが、ユーザーに拒否されたものとしてモデルに報告される問題を修正した。
英語原文を表示
Fixed a tool call cut off by a message sent mid-turn during its permission check being reported to the model as rejected by the user
Fixed
より小さいコンテキストウィンドウを持つモデルへ切り替える際に、確認なしで以前のモデルによる要約に使用クレジットを消費することがある問題を修正した。
英語原文を表示
Fixed a case where switching to a model with a smaller context window could spend usage credits on a summary by the previous model without asking first

関連ドキュメント

Fixed
リクエストされたモデルと異なるモデル名を応答に含む LLM ゲートウェイの背後で、ユーザーが選択していないモデル上で会話が繰り返し圧縮される問題を修正した。
英語原文を表示
Fixed conversations being compacted over and over, on a model you didn't pick, behind an LLM gateway whose responses name a different model than the one requested
Fixed
低速または高負荷なマシンで Escape を押した後に、vim モードが INSERT のままになることがある問題を修正した。
英語原文を表示
Fixed vim mode sometimes staying in INSERT after Escape on a slow or busy machine
Fixed
vim モードで Esc を押すと入力済みの AskUserQuestion の回答が破棄される問題を修正した。自由記述フィールドが vim の NORMAL モードをサポートするようになり、Esc は NORMAL モードでのみキャンセルする。
英語原文を表示
Fixed Esc discarding a typed AskUserQuestion answer in vim mode: the free-text field now supports vim NORMAL mode, and Esc cancels only from NORMAL
Fixed
Read ツールが .xlsm、.parquet、.epub、.heic などのバイナリファイルをテキストとして読み込む問題を修正した。
英語原文を表示
Fixed the Read tool reading binary files such as .xlsm, .parquet, .epub and .heic as text
Fixed
ヘッダー行のみの Markdown テーブルがターミナル幅を超えると何も描画されない問題を修正した。プラン承認カード上のプラン表示でも発生していた。
英語原文を表示
Fixed a Markdown table with only a header row drawing nothing when too wide for the terminal, including in plans on the plan approval card
Fixed
/claude-api スキルが、CMEK 外部キーエンドポイントは Claude Platform on AWS では利用できないと記述していた問題を修正した。
英語原文を表示
Fixed the /claude-api skill saying CMEK external-key endpoints aren't available on Claude Platform on AWS
Fixed
/rewind 使用後にモデルへスキル一覧が表示されなくなる問題を修正した。
英語原文を表示
Fixed skills no longer being listed to the model after using /rewind
Fixed
再開セッションで、読み込まれていない履歴に対して ctrl+o を案内する圧縮行が表示される問題を修正した。以前のメッセージの保存先を示すようになり、全画面表示でも表示される。
英語原文を表示
Fixed the compaction row in a resumed session offering ctrl+o for history that is not loaded; it now says where the earlier messages are saved, and also shows in fullscreen
Fixed
応答を中断した直後に「new task? /clear to save tokens」のヒントが再表示される問題を修正した。
英語原文を表示
Fixed the "new task? /clear to save tokens" hint coming back right after you interrupt a response

関連ドキュメント

Fixed
プラグインまたはスキルのフックによる ask 判断のパーミッションプロンプトで、そのフックがどのプラグインまたはスキル由来かが表示されない問題を修正した。
英語原文を表示
Fixed the permission prompt for a plugin or skill hook's ask decision not showing which plugin or skill the hook comes from

関連ドキュメント

Fixed
reftable リポジトリで git チェックのいずれかがタイムアウトまたは失敗した際に、/diff が cherry-pick や revert のコンフリクトを検知できない問題を修正した
英語原文を表示
Fixed /diff not noticing a conflicted cherry-pick or revert in reftable repositories when one of its git checks timed out or failed
Fixed
同一セッション内で Bash の cd を実行した後にワークフロースクリプトを読み取り・編集・再実行したとき、権限確認を求められたり拒否されたりする問題を修正した
英語原文を表示
Fixed workflow scripts asking for permission or being refused when read, edited or re-run after a Bash cd in the same session

関連ドキュメント

Fixed
ダーク ANSI テーマおよび 16 色ターミナルでの薄い文字表示を修正した。塗りつぶしボックス内では薄く表示し、選択範囲や検索ハイライトの下では薄くせず、リストの説明文も他の補助テキストと同様に薄く表示するようにした
英語原文を表示
Fixed dim text on the dark ANSI theme and 16-color terminals: faint inside filled boxes, not faint under selection and search highlights, and list descriptions dimmed like other secondary text
Fixed
claude -p の実行やクラウドセッションのように、新しい Claude Code プロセスの最初の応答が完了する前に mod の $.model.fork を呼び出すと nothing-to-fork が返される問題を修正した
英語原文を表示
Fixed a mod's $.model.fork returning nothing-to-fork when called before the first response of a new Claude Code process had finished, as in claude -p runs and cloud sessions
Fixed
[VSCode] パネルのクラッシュやフリーズを引き起こす会話が、リロードのたびに再オープンされる問題を修正した
英語原文を表示
[VSCode] Fixed a conversation that crashes or freezes the panel being reopened on every reload

関連ドキュメント

Fixed
[VSCode] 長時間の思考処理中にチャットパネルが遅くなる問題を修正した。更新のたびに思考テキスト全体を再パースしなくなった
英語原文を表示
[VSCode] Fixed the chat panel slowing down during long thinking: it no longer re-parses the whole thinking text on every update

関連ドキュメント

Fixed
[VSCode] 一部の言語サーバーで、ルールコード (例: MD013) の代わりに「[object Object]」と表示される問題を修正した
英語原文を表示
[VSCode] Fixed diagnostics showing "[object Object]" instead of the rule code (e.g. MD013) for some language servers

関連ドキュメント

Fixed
[VSCode] 文字起こし(ディクテーション)が提供されない環境(claude.ai 以外のサインイン、リモートウィンドウ)でも、マイク権限の確認のためにネイティブのディクテーション音声モジュールが読み込まれる問題を修正した
英語原文を表示
[VSCode] Fixed the native dictation audio module being loaded, to check microphone permission, where dictation is not offered (non-claude.ai sign-ins, remote windows)
シェア: X はてブ