Claude Code Changelog·2026年6月2日 11:10·約6分
Claude Code v2.1.160 の変更点
TL;DR
Claude Code は、起動ファイルやビルドツール設定ファイルへの書き込み前に確認プロンプトを追加し、意図しないコマンド実行を防ぐセキュリティ強化を行いました。
変更点
- シェル起動ファイル(.zshenv, .zlogin, .bash_login)および ~/.config/git/ への書き込み前にプロンプトを表示する機能を追加しました。これにより、意図しないコマンドの実行を防ぎます。
- acceptEdits モードでは、コード実行権限を与えるビルドツール設定ファイル(.npmrc, .yarnrc*, bunfig.toml, .bazelrc, .pre-commit-config.yaml, .devcontainer/ など)への書き込み前にプロンプトを表示するようになりました。
- 編集機能の要件が変更されました。以前はファイルを grep で表示した後、別途 Read コマンドを実行する必要がありましたが、現在は単一ファイル用の grep/egrep/fgrep コマンドを実行すれば、編集前の読み取りチェックを満たすものとして扱われます。
- WSL(Windows Subsystem for Linux)環境で、選択した範囲をコピーする機能が Windows クリップボードに書き込まれない不具合を修正しました。現在は OSC 52(代わりに MobaXterm などのターミナルがサポートしていないプロトコル)を使用していたのをやめ、PowerShell の相互運用機能を利用するように変更しました。
- Claude エージェントから完了したセッションを復元する際に、チャット履歴が失われ、元のプロンプトが再実行される不具合を修正しました。
- 一晩放置された後にバックグラウンドセッションが再接続された際、会話内容が失われ、元のプロンプトが再実行される不具合を修正しました。
- クロードのバックグラウンドデーモンが負荷のかかったマシン上でコールドスタートする際に、「ソケットが見つからない」というエラーが時々発生していた不具合を修正しました。
- Windows 環境で、claude rm コマンドを実行した後に、バックグラウンドセッションを開始したディレクトリが削除できないという不具合を修正しました。この問題は、バックグラウンドデーモンが終了するまで解消されませんでしたが、現在は解決されています。
- 作業を再開したバックグラウンドエージェントが、エージェントリストで「完了済み」として表示される不具合を修正しました。
- クロードのエージェントがセッション一覧に戻る際に数秒間フリーズする不具合を修正しました。これは、終了するたびに自動更新プログラムが再チェックを行っていたことが原因でした。
- Windows でホストが CPU 負荷の高い状態にある際、バックグラウンドセッションにアタッチされている場合やエージェントビューにいる場合に、Esc キー、矢印キー、および入力が応答しなくなる問題を修正しました
- バックグラウンドエージェントが、ターミナル同期出力マーカーをサポートしていないターミナル(Apple Terminal, tmux)へマーカーを発信してしまい、実行中のエージェントへの切り込み時にレンダリングアーティファクトが発生する問題を修正しました
- エージェントリストからセッションを開いた直後に、マウスホイールでプロンプト履歴がスクロールされてしまうのではなく、正しくトランスクリプトがスクロールされるように修正しました
- Claude エージェントビューにおいて、CJK IME(中国語・日本語・韓国語入力システム)のコンポジション表示が、入力カーソル位置ではなく画面の左下に表示されていた問題を修正しました
- Windows のターミナルでハイパーリンクサポートがある場合、有効な file:///C:/... リンクが破損したパスに書き換えられてしまう問題を修正しました
- プロジェクトディレクトリ名またはブランチ名に非 ASCII 文字や特殊文字が含まれている場合に、音声モードの接続に失敗する問題を修正しました
- サードパーティプロバイダー(Bedrock/Vertex/Foundry)における自動モード利用不可メッセージを、モデルのせいにする誤った表現から、CLAUDE_CODE_ENABLE_AUTO_MODE オプトインの設定を指すように修正しました
- /effort ultracode コマンドが、モデルが xhigh を実行できない場合に動的ワークフロー設定のせいにすると誤って表示される問題を修正しました。ultracode は、サポートしていないモデルではもはや提供されません
- SDK や CLI フラグが適用されない他のホスト経由で実行する際に、--model オプションを指定するよう促す「モデルが見つからない」エラーメッセージが表示される問題を修正しました
- ブリーフモードセッションを再開する際、ブリーフモードが無効になっていると Claude の過去の返信がスクロールバックから消えてしまう問題を修正しました
- レジスタに v$ でコピーされた場合、カーソル位置ではなく行下に貼り付けられていた vi モードの p コマンドを修正しました
- クロードエージェントにおいて、最近非活性だったバックグラウンドエージェントセッションを開く際の性能を向上させました
- 日常的なアクションに関する推論を削減することで自動モード分類器のレイテンシを改善し、「このアクションを評価できません」というブロックが発生する確率を低下させました
- バックグラウンドセッションの終了処理(claude rm/stop、アイドル時のリサイクル)を改善し、SIGKILL 前に実行中のシェルサブプロセスに SIGTERM を送信してクリーンアップハンドラが実行されるようにしました
- CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE を削除しました。環境変数は現在は無効化されています(no-op)
- スタートアップ時の JetBrains プラグインインストールの提案を削除しました
- ダイナミックワークフローのトリガーキーワードを「workflow」から「ultracode」に改名しました。「workflow」という単語はもはや実行をトリガーしませんが、自分の言葉でリクエストすることは依然として可能です。このトリガーキーワードはプロンプト入力欄で紫色でハイライト表示されます
原文を表示
What's changed
- Added a prompt before writing to shell startup files (.zshenv, .zlogin, .bash_login) and ~/.config/git/, which could otherwise lead to unintended command execution
- acceptEdits mode now prompts before writing build-tool config files that grant code execution (.npmrc, .yarnrc*, bunfig.toml, .bazelrc, .pre-commit-config.yaml, .devcontainer/, etc.)
- Edit no longer requires a separate Read after viewing a file with grep: single-file grep/egrep/fgrep commands now satisfy the read-before-edit check
- Fixed copy-on-select not writing to the Windows clipboard on WSL — now uses PowerShell interop instead of OSC 52, which terminals like MobaXterm don't support
- Fixed restoring a completed session from claude agents dropping chat history and re-running the original prompt
- Fixed background sessions re-attached after overnight retire losing their conversation and re-running the original prompt
- Fixed claude --bg occasionally failing with "socket missing" when the background daemon was cold-starting on a loaded machine
- Fixed an issue on Windows where the directory a background session was started in could not be deleted after claude rm until the background daemon exited
- Fixed background agents that resumed work being shown under Completed in the agents list
- Fixed claude agents freezing for several seconds when returning to the session list due to the auto-updater re-checking on every exit
- Fixed Esc, arrow keys, and typing becoming unresponsive on Windows when attached to a background session or in the agent view while the host is under heavy CPU load
- Fixed background agents emitting terminal sync-output markers to terminals that don't support them (Apple Terminal, tmux), causing render artifacts when entering a running agent
- Fixed mouse wheel scrolling prompt history instead of the transcript right after opening a session from the agents list
- Fixed CJK IME composition appearing at the bottom-left of the screen instead of at the input caret in the claude agents view
- Fixed valid file:///C:/... links being rewritten to a broken path on Windows terminals with hyperlink support
- Fixed voice mode failing to connect when the project directory or branch name contains non-ASCII or special characters
- Fixed the auto mode unavailability message on third-party providers (Bedrock/Vertex/Foundry) to point to the CLAUDE_CODE_ENABLE_AUTO_MODE opt-in instead of incorrectly blaming the model
- Fixed /effort ultracode incorrectly blaming the dynamic workflows setting when the model cannot run xhigh; ultracode is no longer offered on models that do not support it
- Fixed model-not-found errors suggesting --model when running via the SDK or other hosts where the CLI flag doesn't apply
- Fixed Claude's past replies disappearing from scrollback when resuming a brief mode session with brief mode turned off
- Fixed vim mode p pasting on the line below instead of at the cursor when the register was yanked with v$
- Improved performance of opening recently-inactive background agent sessions in claude agents
- Improved auto mode classifier latency by reducing reasoning on routine actions, lowering the chance of "could not evaluate this action" blocks
- Improved background-session teardown (claude rm/stop, idle reap) to send SIGTERM to running shell subprocesses before SIGKILL, so cleanup handlers run
- Removed CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE; the environment variable is now a no-op
- Removed the JetBrains plugin install suggestion from startup
- Renamed the dynamic-workflow trigger keyword from workflow to ultracode. The word "workflow" no longer triggers a run; asking for one in your own words still works. The trigger keyword is highlighted in violet in the prompt input
この記事をシェア
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み