v2.1.77
📝 概要
Claude Opus/Sonnet 4.6の出力トークン上限拡大、サンドボックスファイルシステムの柔軟性向上、多数のバグ修正とパフォーマンス改善を含むメンテナンスリリース
🔄 主な変更点
- トークン制限の拡大: Opus 4.6のデフォルト最大出力トークンが64k、Opus/Sonnet 4.6の上限が128kに増加
- 新機能:
allowReadサンドボックス設定でdenyRead領域内の読み取り許可が可能に - 新機能:
/copy Nで過去N番目のアシスタント応答をコピー可能に - 改善: macOSでの起動が約60ms高速化(キーチェーン認証の並列読み込み)
- 改善:
--resumeがフォーク頻度の高いセッションで最大45%高速化、メモリ使用量100-150MB削減 - バグ修正: 複合bashコマンド(
cd src && npm testなど)の"Always Allow"が正しくサブコマンド単位で保存されるように - バグ修正: 自動アップデータが重複ダウンロードで数十GBメモリを消費する問題を解決
- バグ修正: PreToolUseフックが
deny権限ルールをバイパスする問題を修正(エンタープライズ設定含む) - UI改善:
/forkコマンドを/branchに改名(/forkはエイリアスとして継続) - VSCode: プレビュータブのタイトルが"Claude's Plan"ではなくプラン見出しを使用
💡 解説・活用案
今回のリリースでは、長文生成能力の向上(128kトークン対応)と、大規模セッションでの--resume高速化により、より複雑なプロジェクトでの作業効率が向上します。サンドボックスのallowRead設定により、セキュリティを保ちつつ柔軟なファイルアクセス制御が可能になりました。また、多数のバグ修正(特に権限管理やメモリリーク関連)により、長時間セッションの安定性が大幅に改善されています。
🌐 日本語訳
変更内容
- Claude Opus 4.6のデフォルト最大出力トークン制限を64kトークンに、Opus 4.6およびSonnet 4.6モデルの上限を128kトークンに増加
denyRead領域内で読み取りアクセスを再許可するallowReadサンドボックスファイルシステム設定を追加/copyがオプションのインデックスを受け付けるようになりました:/copy NでN番目に最新のアシスタント応答をコピー- 複合bashコマンド(例:
cd src && npm test)での"Always Allow"が、サブコマンド単位ではなく完全な文字列に対して単一ルールを保存していた問題を修正。これにより無効なルールや繰り返しの権限プロンプトが発生していました - スラッシュコマンドオーバーレイが繰り返し開閉されたときに、自動アップデータが重複するバイナリダウンロードを開始し、数十ギガバイトのメモリを蓄積する問題を修正
- メモリ抽出書き込みとメイントランスクリプト間の競合により、
--resumeが最近の会話履歴を黙って切り捨てる問題を修正 - PreToolUseフックが
"allow"を返すと、エンタープライズ管理設定を含むdeny権限ルールをバイパスする問題を修正 - CRLFファイルを上書きする、またはCRLFディレクトリにファイルを作成する際に、Writeツールが黙って改行コードを変換する問題を修正
- 圧縮を生き延びた進捗メッセージによる長時間実行セッションでのメモリ増加を修正
- APIが非ストリーミングモードにフォールバックした際に、コストとトークン使用量が追跡されない問題を修正
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETASがベータツールスキーマフィールドを除去せず、プロキシゲートウェイがリクエストを拒否する問題を修正- システムの一時ディレクトリパスにスペースが含まれる場合、Bashツールが成功したコマンドに対してエラーを報告する問題を修正
- ペースト直後に入力するとペースト内容が失われる問題を修正
/feedbackテキスト入力でのCtrl+Dが、2回目の押下でセッションを終了する代わりに前方削除する問題を修正- 0バイトの画像ファイルをプロンプトにドラッグした際のAPIエラーを修正
- Claude Desktopセッションが、OAuthの代わりに誤ってターミナルCLIで設定されたAPIキーを使用する問題を修正
- 同じモノレポの異なるサブディレクトリにある
git-subdirプラグインがプラグインキャッシュで衝突する問題を修正 - ターミナルUIで順序付きリストの番号がレンダリングされない問題を修正
- 古いワークツリーのクリーンアップが、以前のクラッシュから再開されたエージェントワークツリーを削除する可能性がある競合状態を修正
- エージェント実行中に
/mcpや類似のダイアログを開いた際の入力デッドロックを修正 - vimのNORMALモードでBackspaceキーとDeleteキーが機能しない問題を修正
- vimモードのオン/オフ切り替え時にステータスラインが更新されない問題を修正
- VS Code、Cursor、その他のxterm.jsベースのターミナルでCmd+クリック時にハイパーリンクが2回開く問題を修正
- デフォルト設定のtmux内で背景色がターミナルデフォルトとしてレンダリングされる問題を修正
- SSH経由のtmux内でテキスト選択時にiTerm2セッションがクラッシュする問題を修正
- tmuxセッションでクリップボードコピーが黙って失敗する問題を修正。コピートーストが
⌘Vまたはtmuxprefix+]のどちらでペーストするかを示すようになりました - 設定、権限、サンドボックスダイアログでリストをナビゲート中に
←/→が誤ってタブを切り替える問題を修正 - Claude Codeがtmuxまたはscreen内で起動された際にIDE統合が自動接続しない問題を修正
- CJK文字が右端でクリップされた際に隣接するUI要素に視覚的に侵入する問題を修正
- リーダーが終了した際にチームメイトペインが閉じない問題を修正
- iTerm2自動モードがネイティブ分割ペインチームメイトのためにiTerm2を検出しない問題を修正
- macOSでの起動を高速化(約60ms)。キーチェーン認証情報をモジュール読み込みと並列で読み取るようになりました
- フォーク頻度が高い、または非常に大規模なセッションでの
--resumeを高速化 — 読み込みが最大45%高速化、ピークメモリが約100-150MB削減 - 実行中の非ストリーミングAPIリクエストをEscで中断する機能を改善
claude plugin validateを改善し、skill、agent、commandのfrontmatterとhooks/hooks.jsonをチェックし、YAMLパースエラーとスキーマ違反を検出- 出力が5GBを超えた場合、バックグラウンドbashタスクが強制終了されるようになり、暴走プロセスがディスクを満杯にするのを防止
- プランを承認した際に、プラン内容からセッションが自動的に命名されるようになりました
- ヘッドレスモードのプラグインインストールが
CLAUDE_CODE_PLUGIN_SEED_DIRと正しく組み合わされるよう改善 apiKeyHelperが10秒以上かかる場合に通知を表示し、メインループをブロックするのを防止- Agentツールが
resumeパラメータを受け付けなくなりました — 以前にスポーンされたエージェントを継続するにはSendMessage({to: agentId})を使用 SendMessageがエラーを返す代わりに、停止したエージェントをバックグラウンドで自動再開するようになりました/forkを/branchに改名(/forkはエイリアスとして引き続き動作)- [VSCode] プレビュータブのタイトルが"Claude's Plan"の代わりにプランの見出しを使用するよう改善
- [VSCode] macOSでoption+クリックがネイティブ選択をトリガーしない場合、フッターが
macOptionClickForcesSelection設定を指すようになりました
原文(英語)を表示
What's changed
- Increased default maximum output token limits for Claude Opus 4.6 to 64k tokens, and the upper bound for Opus 4.6 and Sonnet 4.6 models to 128k tokens
- Added
allowReadsandbox filesystem setting to re-allow read access withindenyReadregions /copynow accepts an optional index:/copy Ncopies the Nth-latest assistant response- Fixed "Always Allow" on compound bash commands (e.g.
cd src && npm test) saving a single rule for the full string instead of per-subcommand, leading to dead rules and repeated permission prompts - Fixed auto-updater starting overlapping binary downloads when the slash-command overlay repeatedly opened and closed, accumulating tens of gigabytes of memory
- Fixed
--resumesilently truncating recent conversation history due to a race between memory-extraction writes and the main transcript - Fixed PreToolUse hooks returning
"allow"bypassingdenypermission rules, including enterprise managed settings - Fixed Write tool silently converting line endings when overwriting CRLF files or creating files in CRLF directories
- Fixed memory growth in long-running sessions from progress messages surviving compaction
- Fixed cost and token usage not being tracked when the API falls back to non-streaming mode
- Fixed
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETASnot stripping beta tool-schema fields, causing proxy gateways to reject requests - Fixed Bash tool reporting errors for successful commands when the system temp directory path contains spaces
- Fixed paste being lost when typing immediately after pasting
- Fixed Ctrl+D in
/feedbacktext input deleting forward instead of the second press exiting the session - Fixed API error when dragging a 0-byte image file into the prompt
- Fixed Claude Desktop sessions incorrectly using the terminal CLI's configured API key instead of OAuth
- Fixed
git-subdirplugins at different subdirectories of the same monorepo commit colliding in the plugin cache - Fixed ordered list numbers not rendering in terminal UI
- Fixed a race condition where stale-worktree cleanup could delete an agent worktree just resumed from a previous crash
- Fixed input deadlock when opening
/mcpor similar dialogs while the agent is running - Fixed Backspace and Delete keys not working in vim NORMAL mode
- Fixed status line not updating when vim mode is toggled on or off
- Fixed hyperlinks opening twice on Cmd+click in VS Code, Cursor, and other xterm.js-based terminals
- Fixed background colors rendering as terminal-default inside tmux with default configuration
- Fixed iTerm2 session crash when selecting text inside tmux over SSH
- Fixed clipboard copy silently failing in tmux sessions; copy toast now indicates whether to paste with
⌘Vor tmuxprefix+] - Fixed
←/→accidentally switching tabs in settings, permissions, and sandbox dialogs while navigating lists - Fixed IDE integration not auto-connecting when Claude Code is launched inside tmux or screen
- Fixed CJK characters visually bleeding into adjacent UI elements when clipped at the right edge
- Fixed teammate panes not closing when the leader exits
- Fixed iTerm2 auto mode not detecting iTerm2 for native split-pane teammates
- Faster startup on macOS (~60ms) by reading keychain credentials in parallel with module loading
- Faster
--resumeon fork-heavy and very large sessions — up to 45% faster loading and ~100-150MB less peak memory - Improved Esc to abort in-flight non-streaming API requests
- Improved
claude plugin validateto check skill, agent, and command frontmatter plushooks/hooks.json, catching YAML parse errors and schema violations - Background bash tasks are now killed if output exceeds 5GB, preventing runaway processes from filling disk
- Sessions are now auto-named from plan content when you accept a plan
- Improved headless mode plugin installation to compose correctly with
CLAUDE_CODE_PLUGIN_SEED_DIR - Show a notice when
apiKeyHelpertakes longer than 10s, preventing it from blocking the main loop - The Agent tool no longer accepts a
resumeparameter — useSendMessage({to: agentId})to continue a previously spawned agent SendMessagenow auto-resumes stopped agents in the background instead of returning an error- Renamed
/forkto/branch(/forkstill works as an alias) - [VSCode] Improved plan preview tab titles to use the plan's heading instead of "Claude's Plan"
- [VSCode] When option+click doesn't trigger native selection on macOS, the footer now points to the
macOptionClickForcesSelectionsetting