Claude Code Changelog·2026年6月18日 07:07·約7分
Claude Code v2.1.181 の更新内容
TL;DR
Claude Code がバージョン 2.1.181 にアップデートされ、プロンプトから設定を変更する新しいコマンド構文や、macOS でのサンドボックス機能の拡張、モバイル通知を抑制する環境変数が追加されました。
変更点
- プロンプトから任意の設定を設定するための /config key=value 構文を追加しました(例:/config thinking=false)。インタラクティブモード、-p オプション、リモートコントロールのいずれでも動作します。
- sandbox.allowAppleEvents というオプトイン設定を追加し、サンドボックス化されたコマンドが macOS で Apple Events を送信できるようにしました。
- CLAUDE_CLIENT_PRESENCE_FILE 環境変数を追加しました。この変数にマーカーファイルへのパスを指定すると、そのマシンにいる間はモバイルプッシュ通知を抑制できます。
- バンドルされている Bun ランタイムをバージョン 1.4 にアップグレードしました。
- 長い段落のストリーミング処理を改善しました。現在は最初の改行を待つのではなく、テキストが一行ずつ表示されるようになりました。
- 自動再試行機能を改善しました。思考中に API 接続が切断された場合、自動的に再試行するようになり、「Thinking 中に接続が閉じられました」というエラーが表示されなくなりました。
- サブエージェントパネルの表示を改善しました。アイドル状態のサブエージェントは 30 秒後に自動で非表示となり、リストは最大 5 行に制限されスクロールヒントが表示されます。また、キーボードショートカットのヒントがフッターに表示されるようになりました。
- MCP OAuth ブラウザページのデザインを Claude Code のビジュアルスタイルに合わせて統一し、成功時に自動的に閉じるようにしました。
- フルスクリーンモードでの URL 開き方を改定しました。macOS では Cmd+クリック、それ以外の環境では Ctrl+ クリックが必要となり、ネイティブターミナルの動作に合わせる形になりました。
- 「Improved N memories」行の表示を変更し、詳細モード以外では個別のファイル名をリスト表示しないようにしました。
- 各リクエストごとにアテステーショントークンが変更されることにより、カスタム ANTHROPIC_BASE_URL や Foundry でプロンプトキャッシュが読み込まれなかった不具合を修正しました。
- ネットワークドライブやクラウド同期フォルダ上で、Write/Edit コマンドが 0 バイトのファイルを作成したり、ファイルが切り捨てられてしまう不具合を修正しました。
- macOS において、Apple Events の権限を追加することで、エラー -600 で失敗していた open、osascript、およびブラウザベースの認証フローを修正しました
- 2.1.169 で導入された起動時の回帰(新規環境で起動ごとに約 120ms 遅延)を修正しました:MCP サーバーが設定されていない場合、最初のプロンプトは managed-settings の取得待機を行わなくなりました
- 劣化したネットワーク環境でアカウント設定の取得が遅延した場合に、最大 15 秒間空白のターミナルで起動がブロックされる問題を修正しました
- .claude.json に破損した null プロジェクトエントリが含まれている場合に発生していた起動クラッシュ(TypeError: Cannot read properties of null)を修正しました
- Spotlight が再インデックス中で忙しいときに、セッション開始時に macOS の TUI(ターミナルユーザーインターフェース)がフリーズし、Ctrl+C が無反応になる問題を修正しました
- 別の Claude Code プロセスが 30 日分のトランスクリプトのクリーンアップを実行している間に、長時間アイドル状態だったセッションの履歴が失われる問題を修正しました
- フォアグラウンドで起動されたサブエージェントが制御不能なネストチェーンを生成する問題を修正しました。これらは現在、バックグラウンドのサブエージェントと同じ 5 レベルの深さ制限に従います
- モデル切り替え直後に /recap や会話のフォークが以前のモデルを即座に使用してしまう問題を修正しました
- サブエージェントの「Thinking」表示時間が、親エージェントの経過時間ではなく、サブエージェント自身の経過時間を示すように修正しました
- ネストされたエージェントでブロックされているサブエージェントが、エージェントパネルでカウントアップする経過時間ではなく「待機中」と表示されるように修正しました
- API のリトライインジケーター("Retrying in 0s · attempt N/10")が、リトライに成功した後も画面に残り続ける問題を修正しました
- AWS の awsCredentialExport クレデンシャルにおいて、残存有効期間が短い場合に 1 分ごとにリフレッシュが発生する不具合を修正し、aws configure export-credentials から出力される JSON 形式も受け付けるようにしました。
- Claude MCP の get/list コマンドで、tools/list が失敗しているにもかかわらず「✓ Connected」と表示されていた不具合を修正しました。現在は、「! Connected · tools fetch failed」のエラー詳細を表示します。
- /remote-control コマンドにおいて、接続待ちのステータスである "connecting…" 行が残存する不具合を修正し、接続完了後にトランスクリプト内で確認表示を行うようにしました。
- Windows で bare git が解決できない場合に、クリーンなワークツリーに対して「Could not verify worktree state」というエラーで ExitWorktree コマンドが実行されなかった不具合を修正しました。
- ~/.claude/settings.json がシンクリンク下の相対パスである場合、/effort や /model などの設定変更が ENOENT エラーで失敗する不具合を修正しました。
- コンテキストリマインダーにおける IDE の選択行番号が、IntelliJ および VS Code で 1 つずれている不具合を修正しました。
- フルスクリーン状態でネイティブターミナルの選択(修飾キー+ドラッグ)後に Ctrl+C を押すと、クリップボードにアプリの以前の選択内容が上書きされる不具合を修正しました。
- クリップボードにテキストが含まれている場合に Ctrl+V で貼り付けられるべきところ、「No image found in clipboard」と表示されてしまう不具合を修正しました。
- agents ディレクトリが存在する状態でエージェント作成を試みると「EEXIST: file already exists」というエラーで失敗する不具合を修正しました(Windows/OneDrive 環境)。
- AskUserQuestion のプレビューコンテンツがダイアログの端で切り捨てられていた不具合を修正し、単語単位での折り返し表示を行うようにしました。
- AskUserQuestion の複数選択質問において、「Other」の自由記述回答を入力しても送信時に静かにドロップされる不具合を修正しました。
- UTC 負のタイムゾーンにおいて、/stats コマンドの「最もアクティブな日」および daily token チャートの表示が 1 日早くなっていた不具合を修正
- Linux 環境で、Claude Code の起動後にクリップボードユーティリティがインストールされていることを検出できず、/copy および copy-on-select が機能しなかった不具合を修正
- Write (create-file) プレビューにおいて、タブインデントされたコードのレンダリングでインデントが正しく表示されない不具合を修正
- 会話中のトランスクリプト内で、ターン途中にキューされたユーザープロンプトに対して全角背景ハイライトが表示されなかった不具合を修正
- Ghostty におけるアクティビティスピナーのパルス動作が、誤ったグリフサイズで停止していた不具合を修正
原文を表示
What's changed
- Added /config key=value syntax to set any setting from the prompt (e.g. /config thinking=false) — works in interactive, -p, and Remote Control
- Added sandbox.allowAppleEvents opt-in setting that lets sandboxed commands send Apple Events on macOS
- Added CLAUDE_CLIENT_PRESENCE_FILE environment variable: point it at a marker file to suppress mobile push notifications while you're at the machine
- Upgraded the bundled Bun runtime to 1.4
- Improved streaming of long paragraphs: text now appears line-by-line instead of waiting for the first line break
- Improved auto-retry: API connection drops mid-thinking now automatically retry instead of showing "Connection closed while thinking"
- Improved the subagent panel: idle subagents auto-hide after 30s, the list caps at 5 rows with scroll hints, and keyboard hints now show in the footer
- Improved the MCP OAuth browser page to match Claude Code's visual style and auto-close on success
- Changed fullscreen mode URL opening to require Cmd+click (macOS) / Ctrl+click, matching native terminal behavior
- Changed the Improved N memories line to no longer list individual files outside verbose mode
- Fixed prompt caching not reading on custom ANTHROPIC_BASE_URL and on Foundry due to a per-request attestation token changing every turn
- Fixed Write/Edit producing 0-byte or truncated files on network drives and cloud-synced folders
- Fixed open, osascript, and browser-based auth flows failing with error -600 on macOS by adding the Apple Events entitlement
- Fixed a startup regression (~120ms per launch in fresh environments, introduced in 2.1.169): the first prompt no longer waits for the managed-settings fetch when no MCP servers are configured
- Fixed startup blocking with a blank terminal for up to 15 seconds when the account settings fetch is slow on a degraded network
- Fixed startup crash (TypeError: Cannot read properties of null) when .claude.json contains corrupted null project entries
- Fixed macOS TUI freezing at session start (Ctrl+C unresponsive) when Spotlight is busy reindexing
- Fixed long-running idle sessions losing their history when another Claude Code process ran the 30-day transcript cleanup
- Fixed foreground subagents spawning unbounded nested chains; they now respect the same 5-level depth limit as background subagents
- Fixed /recap and conversation forks using the previous model immediately after a model switch
- Fixed subagent "Thinking" duration showing the parent agent's elapsed time instead of the subagent's own
- Fixed subagents blocked on a nested agent showing a ticking elapsed time instead of "waiting" in the agent panel
- Fixed the API retry indicator ("Retrying in 0s · attempt N/10") staying on screen after the retry succeeded
- Fixed AWS awsCredentialExport credentials with a short remaining lifetime causing credential refreshes every minute, and now accepts the JSON shape from aws configure export-credentials
- Fixed claude mcp get/list showing ✓ Connected when tools/list fails; they now show ! Connected · tools fetch failed with the error detail
- Fixed /remote-control leaving a stale "connecting…" line; it now confirms in the transcript once connected
- Fixed ExitWorktree refusing to remove a clean worktree with "Could not verify worktree state" when bare git cannot be resolved on Windows
- Fixed settings changes (such as /effort or /model) failing with ENOENT when ~/.claude/settings.json is a relative symlink under a symlinked ~/.claude
- Fixed IDE selection line numbers in context reminders being off by one (IntelliJ and VS Code)
- Fixed Ctrl+C in fullscreen after a native terminal selection (modifier+drag) overwriting the clipboard with the app's prior selection
- Fixed Ctrl+V showing "No image found in clipboard" instead of pasting when the clipboard contains text
- Fixed agent creation failing with "EEXIST: file already exists" when the agents directory already exists (Windows/OneDrive)
- Fixed AskUserQuestion preview content being cut off at the dialog edge instead of word-wrapping
- Fixed AskUserQuestion multi-select questions silently dropping a typed "Other" free-text answer when submitting
- Fixed /stats "Most active day" and daily token chart dates showing one day early in UTC-negative timezones
- Fixed /copy and copy-on-select on Linux not detecting a clipboard utility installed after Claude Code started
- Fixed tab-indented code rendering with incorrect indentation in the Write (create-file) preview
- Fixed user prompts queued mid-turn not showing a full-width background highlight in the transcript
- Fixed the activity spinner's pulse dwelling on the wrong glyph size in Ghostty
この記事をシェア
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み