Claude Code Changelog·2026年5月1日 11:05·約5分
v2.1.126 の変更点:ゲートウェイ連携とプロジェクト状態削除機能の追加
TL;DR
Claude Code の新バージョン v2.1.126 がリリースされ、Anthropic 互換ゲートウェイからのモデル一覧表示機能が強化されました。また、プロジェクトの状態データを一括削除するコマンドが追加され、安全な管理が可能になりました。
変更点
- /model ピッカーは、ANTHROPIC_BASE_URL が Anthropic 互換ゲートウェイを指している場合、ゲートウェイの /v1/models エンドポイントからモデルを一覧表示するようになりました。
- claude プロジェクトの全削除コマンド [path] を追加しました。これにより、プロジェクトの Claude Code の状態(トランスクリプト、タスク、ファイル履歴、設定エントリ)をすべて削除できます。--dry-run、-y/--yes、-i/--interactive、および --all オプションをサポートしています。
- --dangerously-skip-permissions を使用すると、.claude/、.git/、.vscode/、シェルの設定ファイル、およびそれ以前に保護されていた他のパスへの書き込みに対するプロンプトがバイパスされます(ただし、壊滅的な削除コマンドについては、安全網として引き続きプロンプトが表示されます)。
- claude auth login は、ブラウザのコールバックが localhost に到達できない場合(WSL2、SSH、コンテナなど)、ターミナルに貼り付けられた OAuth コードを受け付けるようになりました。
- claude_code.skill_activated OpenTelemetry イベントは、ユーザーが入力したスラッシュコマンドで発火し、新しい invocation_trigger 属性("user-slash"、"claude-proactive"、または "nested-skill")を保持します。
- オートモードでは、権限チェックが停止している場合、スピナーが赤色に変わります。これにより、ツールが実行中のように見えるのを防ぎます。
- ホスト管理デプロイメント(CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST)では、Bedrock/Vertex/Foundry における分析機能の自動無効化が行われなくなりました。
- Windows: Microsoft Store を介してインストールされた PowerShell 7、PATH に含まれない MSI、または .NET グローバルツールが検出されるようになりました。
- Windows: PowerShell ツールが有効になっている場合、Claude はデフォルトで Bash に切り替えるのではなく、PowerShell をプライマリシェルとして扱うようになります。
- リードツール:誤った拒絶や「これはマルウェアではない」というコメントを引き起こす可能性のある、レガシーモデル向けのファイルごとのマルウェア評価リマインダーを削除しました
- セキュリティ:優先度の高い管理設定ソースにサンドボックスブロックが存在しない場合に、allowManagedDomainsOnly および allowManagedReadPathsOnly が無視される不具合を修正しました
- 2000px を超える画像を貼り付けた際にセッションが破損する問題を修正しました。現在は貼り付け時に画像のサイズ縮小が行われ、履歴内の過大な画像は自動的に削除された上でリクエストが再試行されます
- 「組織で OAuth が許可されていない」エラー時にログイン画面が表示される不具合を修正し、現在は管理者への連絡ガイダンスを表示するように変更しました
- 低速またはプロキシ経由の接続時、IPv6 のみの開発コンテナ内、およびブラウザコールバックが localhost に到達できない場合に OAuth ログインがタイムアウトする問題を修正しました
- 並行して実行された認証情報の書き込みにより、有効な OAuth リフレッシュトークンが消去される稀な競合状態を修正しました
- API の再試行カウントダウンが試行間ではなく「0 秒」のまま固定される不具合を修正しました
- 処理中に Mac をスリープから復帰させた後に「ストリームアイドルタイムアウト」エラーが発生する問題を修正しました
- モデルの思考時間が長い一時停止中に、バックグラウンドおよびリモートセッションが誤って「ストリームアイドルタイムアウト」として中止される不具合を修正しました
- アシスタントが思考を終了しても、空のターンが続いた後に出力が表示されないhang(応答停止)状態を修正しました
- Cursor および VS Code 1.92–1.104 の統合ターミナル内でトラックパッドによるスクロールが過度に高速になる問題を修正しました
- 認証が必要な状態で止まっている手動サーバーによって、claude.ai MCP コネクタが抑制される不具合を修正しました
- Windows のノーフリックモードにおいて、日本語・韓国語・中国語のテキストが文字化けする問題を修正
- Ctrl+L キーでプロンプト入力がクリアされる不具合を修正 — 現在は画面再描画のみを実行し、readline の動作に合わせるように変更
- コンテキスト:fork やその他のサブエージェントを持つスキルにおいて、初回ターンで遅延実行ツール(WebSearch、WebFetch など)が利用できない問題を修正
- --channels オプション付きで起動された対話型セッションでプランモードのツールが利用できない問題を修正
- 特定のメッセージングツールが利用できない場合に、リモートセッションのトランスクリプトが空白になる問題を修正
- /plugin Uninstall コマンドが「有効化」ではなく「アンインストール済み」と正しく報告されるように修正
- リンターが一度に多数のファイルに触れる場合、ファイル変更リマインダーの総サイズを制限
- /remote-control の再試行が「接続中…」で止まっているように見える問題を修正 — 各再試行の結果を表示し、登録解除された信頼デバイスに関する失敗は事前に検出するように改善
- リモートコントロールの失敗通知において、初期接続失敗時のエラー理由が表示されない問題を修正
- Windows: クリップボードへの書き込み時に、コピーしたコンテンツが EDR/SIEM テレメトリから見えるプロセスコマンドライン引数に露出しないように修正 — また、22KB を超える選択範囲がクリップボードに反映されない問題も解決
- PowerShell ツール:裸の --(例:git diff -- file)が誤って --% 停止解析トークンとしてフラグされる問題を修正
- モデルが並列ツール呼び出しバッチ内で不正なツール名を出力した場合に Agent SDK がハングする問題を修正
原文を表示
What's changed
- The /model picker now lists models from your gateway's /v1/models endpoint when ANTHROPIC_BASE_URL points at an Anthropic-compatible gateway
- Added claude project purge [path] to delete all Claude Code state for a project (transcripts, tasks, file history, config entry) — supports --dry-run, -y/--yes, -i/--interactive, and --all
- --dangerously-skip-permissions now bypasses prompts for writes to .claude/, .git/, .vscode/, shell config files, and other previously-protected paths (catastrophic removal commands still prompt as a safety net)
- claude auth login now accepts the OAuth code pasted into the terminal when the browser callback can't reach localhost (WSL2, SSH, containers)
- claude_code.skill_activated OpenTelemetry event now fires for user-typed slash commands and carries a new invocation_trigger attribute ("user-slash", "claude-proactive", or "nested-skill")
- Auto mode: the spinner now turns red when a permission check stalls, instead of looking like the tool is running
- Host-managed deployments (CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST) no longer auto-disable analytics on Bedrock/Vertex/Foundry
- Windows: PowerShell 7 installed via the Microsoft Store, MSI without PATH, or .NET global tool is now detected
- Windows: when the PowerShell tool is enabled, Claude now treats PowerShell as the primary shell instead of defaulting to Bash
- Read tool: removed the per-file malware-assessment reminder that could cause spurious refusals and "this is not malware" commentary on legacy models
- Security: Fixed allowManagedDomainsOnly / allowManagedReadPathsOnly being ignored when a higher-priority managed-settings source lacked a sandbox block
- Fixed pasting an image larger than 2000px breaking the session — images are now downscaled on paste, and oversized images in history are automatically removed and the request retried
- Fixed showing the login screen for "OAuth not allowed for organization" errors — now shows guidance to contact your admin
- Fixed OAuth login failing with timeout on slow or proxied connections, in IPv6-only devcontainers, and when the browser callback can't reach localhost
- Fixed a rare race where a concurrent credential write could clear a valid OAuth refresh token
- Fixed API retry countdown sticking at "0s" instead of counting down between attempts
- Fixed "Stream idle timeout" error after waking Mac from sleep mid-request
- Fixed background and remote sessions falsely aborting with "Stream idle timeout" during long model thinking pauses
- Fixed a hang where the assistant could finish thinking but show no output after a run of empty turns
- Fixed overly fast trackpad scrolling in Cursor and VS Code 1.92–1.104 integrated terminals
- Fixed claude.ai MCP connectors being suppressed by manual servers stuck in needs-auth state
- Fixed Japanese/Korean/Chinese text rendering as garbled characters on Windows in no-flicker mode
- Fixed Ctrl+L clearing the prompt input — it now only forces a screen redraw, matching readline behavior
- Fixed deferred tools (WebSearch, WebFetch, etc.) not being available to skills with context: fork and other subagents on their first turn
- Fixed plan-mode tools being unavailable in interactive sessions launched with --channels
- Fixed blank remote-session transcript when certain messaging tools are unavailable
- Fixed /plugin Uninstall reporting "Enabled" instead of "Uninstalled"
- Bounded total size of file-modified reminders when a linter touches many files at once
- Fixed /remote-control retries appearing stuck on "connecting…" — each retry now shows its result, and unenrolled trusted-device failures are caught up-front
- Fixed Remote Control failure notification not showing the error reason for initial connection failures
- Windows: clipboard writes no longer expose copied content in process command-line arguments visible to EDR/SIEM telemetry; also fixes >22KB selections not reaching the clipboard
- PowerShell tool: bare -- (e.g. git diff -- file) is no longer mis-flagged as the --% stop-parsing token
- Fixed Agent SDK hang when the model emits a malformed tool name in a parallel tool call batch
この記事をシェア
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み