Claude Code v2.1.143 の変更点
Anthropic は Claude Code のバージョン 2.1.143 をリリースし、プラグインの依存関係強制機能やコンテキストコストの表示機能を追加しました。
変更点
- プラグイン依存関係の強制機能を追加:他の有効化されたプラグインが対象プラグインに依存している場合、
claude plugin disableコマンドは実行を拒否し(コピー&ペースト可能な停止チェーンのヒント付き)、claude plugin enableは転送依存関係を強制的に有効化します。
- /plugin マーケットプレイス閲覧パネルに、予測されたコンテキストコスト(ターンごとおよび各呼び出しごとのトークン推計)を追加しました。
worktree.bgIsolation: "none"設定を追加し、ワークツリーが実用的でないリポジトリにおいて、EnterWorktreeコマンドを使用せずにバックグラウンドセッションが作業コピーを直接編集できるようにしました。
- PowerShell ツールは現在
-ExecutionPolicy Bypassパラメータを渡します。除外する場合はCLAUDE_CODE_POWERSHELL_RESPECT_EXECUTION_POLICY=1を設定してください。
- バックグラウンドセッションは、アイドル状態から復帰した後に設定されたモデルと作業レベルを保持するようになりました。
- 接続されたエージェントセッションで Shift+Tab を押すと、サイクルに自動モードが含まれるようになりました。
- スコープ値が配列でない破損した
.credentials.jsonファイルにより、CLI の起動時にフリーズするか OAuth トークンの更新が静かに中止される問題を修正しました。
- Windows Terminal および WSL における Claude エージェントでの右クリック貼り付け機能を修正しました。
- 繰り返しループして永遠にブロックしていた停止フック(stop hooks)を修正しました。現在は、8 回連続でブロックされた後に警告を出してターンを終了します(
CLAUDE_CODE_STOP_HOOK_BLOCK_CAPで上書き可能)。
- Claude が反復処理の間にアイドル状態にある際に、保留中の
/loopウェイクアップがキャンセルされない問題を修正しました(Esc または Ctrl+C でキャンセル可能になりました)。
- バックグラウンドシェルまたは委任されたサブエージェントがまだ実行中である場合に /goal 評価子が発火する問題を修正しました。
- settings.json の環境変数ストリップ処理により Claude Code 独自の UI カラーが失われていた NO_COLOR/FORCE_COLOR を修正 — これらは現在、サブプロセスに対してのみ適用されるようになりました
- Windows でセッション一覧を表示する際に、エージェントビューで PowerShell プロセスが重複して起動していた問題を修正
- プロンプトなしで /bg コマンドを実行した際にフォークされたセッションに「continue」を送信していた不具合を修正 — 現在はフォーク側が入力を待つようになります
- プラグイン接頭辞(plugin:)を指定しない場合、プラグインが追加したエージェントが見つからなかった --agent オプションの動作を修正
- エージェントビューからセッションを削除しても、そのトランスクリプトファイルが残っていた問題を修正
- Windows Terminal 上で接続されたバックグラウンドセッションをスクロールする際に、破片状のレンダリング(stale-fragment)が表示される不具合を修正
- ホストのスリープまたは macOS の App Nap 後に、バックグラウンドエージェントでワーカー停止検出が誤って連続して発生する(false-positive storm)問題を修正
- 5xx エラーメッセージが status.claude.com を指していたのを修正 — 現在は設定されたゲートウェイまたはクラウドプロバイダ名を明示するようにしました
- PowerShell ツールは、Bedrock、Vertex、Foundry ユーザー向けに Windows でデフォルトで有効化されました。CLAUDE_CODE_USE_POWERSHELL_TOOL=0 を使用して無効化できます。
- claude agents は now --add-dir、--settings、--mcp-config、--plugin-dir オプションを受け付け、これらをダッシュボードおよびそこから起動されるバックグラウンドセッションに適用します
- claude agents は --permission-mode、--model、--effort、--dangerously-skip-permissions を受け付け、ビューから起動されるセッションのデフォルト値を設定できます
- claude --bg --dangerously-skip-permissions は、retire→wake の遷移後も継続して保持されます
- IDE ファイル参照を背景セッションが静かにウォームスペアの入力に取り込んでいた不具合を修正し、これにより claude エージェントから送信される次のプロンプトの先頭に参照が付加されていた問題を解決しました
git worktree remove に失敗した場合に rm -rf へフォールバックしていたワークツリークリーンアップ処理を変更し、gitignore 対象ファイルや進行中のファイルが失われるのを防止しました
macOS において、~/Documents、~/Desktop、または ~/Downloads 配下のファイルを読み取る際に「Operation not permitted」エラーが発生する背景ジョブセッションの不具合を修正しました。これはフルディスクアクセス権限が付与されている場合でも発生していました。
/bg コマンドは now --mcp-config、--settings、--add-dir、--plugin-dir、および --strict-mcp-config を保持するように変更され、背景化されたセッションが再起動後も MCP サーバーと設定を維持できるようになりました。
claude エージェントから起動される背景セッションは、settings.json の permissions.defaultMode を尊重するようになりました(以前は自動モードに上書きされていました)
修正:Windows において、レスポンスストリーミング中に claude エージェントで←キーを押すと、エージェントリストがすべての入力に対して応答しなくなる不具合を解決しました
/bg および ←-detach コマンドは now --fallback-model を保持するように変更され、背景化されたワーカーが過負荷時にハードフォールするのではなく、フォールバックモデルへ段階的に低下できるようになりました。
/bg および ←-detach コマンドは now --allow-dangerously-skip-permissions を保持するように変更され、フォークされたワーカーが Shift+Tab サイクル内で権限バイパスを維持できるようにしました。
修正:背景デーモン起動時に ~/.local/bin/claude ランチャーが存在しない場合や実行可能でない場合に、実行中のバイナリへフォールバックするようになりました
- Fixed claude agents --allow-dangerously-skip-permissions defaulting dispatched sessions to bypass mode instead of making it available in the permission cycle
- クロードエージェントの
--allow-dangerously-skip-permissionsフラグが、権限サイクル内で利用可能にするのではなく、デフォルトでディスパッチされたセッションをバイパスモードに設定する不具合を修正しました
原文を表示
What's changed
- Added plugin dependency enforcement: claude plugin disable now refuses when another enabled plugin depends on the target (with a copy-pasteable disable-chain hint), and claude plugin enable force-enables transitive dependencies
- Added projected context cost (per-turn and per-invocation token estimates) to the /plugin marketplace browse pane
- Added worktree.bgIsolation: "none" setting to let background sessions edit the working copy directly without EnterWorktree, for repos where worktrees are impractical
- PowerShell tool now passes -ExecutionPolicy Bypass. Opt out with CLAUDE_CODE_POWERSHELL_RESPECT_EXECUTION_POLICY=1
- Background sessions now preserve the model and effort level you set after waking from idle
- Shift+Tab in attached agent sessions now includes auto mode in the cycle
- Fixed a corrupt .credentials.json with a non-array scopes value hanging the CLI on startup or silently aborting OAuth token refresh
- Fixed right-click paste in claude agents on Windows Terminal and WSL
- Fixed stop hooks that block repeatedly looping forever — the turn now ends with a warning after 8 consecutive blocks (override via CLAUDE_CODE_STOP_HOOK_BLOCK_CAP)
- Fixed Esc/Ctrl+C not cancelling a pending /loop wakeup while Claude is idle between iterations
- Fixed /goal evaluator firing while background shells or delegated subagents are still running
- Fixed NO_COLOR/FORCE_COLOR in settings.json env stripping Claude Code's own UI colors — they now apply to subprocesses only
- Fixed agent view spawning repeated PowerShell processes on Windows when listing sessions
- Fixed /bg without a prompt sending "continue" to the forked session — the fork now waits for input
- Fixed --agent not finding plugin-contributed agents without the plugin: prefix
- Fixed deleting a session from agent view not removing its transcript file
- Fixed stale-fragment rendering when scrolling in attached background sessions on Windows Terminal
- Fixed background agents false-positive worker-stall detection storm after host sleep or macOS App Nap
- Fixed 5xx error messages pointing at status.claude.com instead of naming the configured gateway or cloud provider
- The PowerShell tool is now enabled by default on Windows for Bedrock, Vertex, and Foundry users. Opt out with CLAUDE_CODE_USE_POWERSHELL_TOOL=0.
- claude agents now accepts --add-dir, --settings, --mcp-config, and --plugin-dir and applies them to the dashboard and to background sessions dispatched from it
- claude agents accepts --permission-mode, --model, --effort, and --dangerously-skip-permissions to set defaults for sessions dispatched from the view
- claude --bg --dangerously-skip-permissions now persists across retire→wake
- Fixed background sessions silently capturing IDE file references into the warm spare's input, which caused the reference to be prepended to the next prompt dispatched from claude agents
- Worktree cleanup no longer falls back to rm -rf when git worktree remove fails, preventing loss of gitignored or in-progress files
- Fixed background-job sessions on macOS getting "Operation not permitted" errors when reading files under ~/Documents, ~/Desktop, or ~/Downloads, even with Full Disk Access granted.
- /bg now preserves --mcp-config, --settings, --add-dir, --plugin-dir, and --strict-mcp-config, so backgrounded sessions keep their MCP servers and settings across respawn.
- Background sessions launched from claude agents now honor permissions.defaultMode from settings.json (was previously overridden to auto mode)
- Fixed: on Windows, pressing ← in claude agents while a response was streaming could leave the agents list unresponsive to all input
- /bg and ←-detach now preserve --fallback-model, so backgrounded workers degrade to the fallback model on overload instead of hard-failing.
- /bg and ←-detach now preserve --allow-dangerously-skip-permissions, so the forked worker keeps bypass-permissions available in its Shift+Tab cycle.
- Fixed: background daemon spawn now falls back to the running binary when the ~/.local/bin/claude launcher is missing or non-executable
- Fixed claude agents --allow-dangerously-skip-permissions defaulting dispatched sessions to bypass mode instead of making it available in the permission cycle
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み