2.1.181
Claude Code 2.1.181 - リリースノート
2026年6月17日
Claude Code
日本語サマリー
以下は Claude Code 2.1.181 のリリースノートの要約です。
破壊的変更・セキュリティ修正
- macOSのApple Eventsに関する重要な修正:
open、osascript、ブラウザベースの認証フローで発生していたエラー(-600)を修正しました(Apple Eventsのentitlement追加)。また、サンドボックス環境下でApple Eventsの送信を許可するオプション設定sandbox.allowAppleEventsを追加しました。
新機能・改善
- 設定用コマンドの追加: プロンプトから
/config key=value(例:/config thinking=false)で各種設定を直接変更できるようになりました。 - 在席中表示機能: 環境変数
CLAUDE_CLIENT_PRESENCE_FILEにマーカーファイルを指定することで、PCを使用中のモバイルプッシュ通知を抑止できるようになりました。 - Bunランタイムのアップデート: 同梱のBunランタイムが 1.4 にアップデートされました。
- API・UIの改善: 長い段落のストリーミング表示が改善され、思考中のAPI接続切断時でも自動リトライされるようになりました。
- サブエージェントUIの改善: subagentsパネルの表示が改善され、フォアグラウンドで動作するサブエージェントもバックグラウンドと同様に最大5階層のネスト制限(depth limit)が適用されるようになりました。
重要なバグ修正
- ファイル破損・起動障害の修正: ネットワークドライブやクラウド同期フォルダでのWrite/Edit時にファイルが0バイト化・切り捨てられる問題を修正しました。
- 起動時のクラッシュ・遅延の修正:
.claude.jsonの破損による起動クラッシュを修正しました。また、設定取得時の遅延や通信不良による起動ブロック(最大15秒)が解消されました。 - 認証・設定関連の修正: カスタム
ANTHROPIC_BASE_URLや Foundry でプロンプトキャッシュが機能しない問題、相対シンボリックリンク使用時に/effortや/modelなどの設定変更が失敗する(ENOENT)問題を修正しました。 - AWS認証情報の修正: AWSの短い有効期限のクレデンシャルによる毎分の更新を防ぎ、
aws configure export-credentialsのJSON形式に対応しました。 - MCPステータス・操作の修正:
claude mcp get/listでのツール取得失敗時のステータス表示を修正し、WindowsにおけるExitWorktreeのエラーや、OneDrive環境でのエージェント作成エラー(EEXIST)を解消しました。 - その他UI/UXの修正: IDEコンテキストの行番号ズレ、
Ctrl+Vによるテキストペースト失敗、/copyのクリップボード検出失敗、/statsの日付ズレ(UTC環境)など、多数のUI関連バグを修正しました。
原文(Release Notes)
What's changed
- Added
/config key=valuesyntax to set any setting from the prompt (e.g./config thinking=false) — works in interactive,-p, and Remote Control- Added
sandbox.allowAppleEventsopt-in setting that lets sandboxed commands send Apple Events on macOS- Added
CLAUDE_CLIENT_PRESENCE_FILEenvironment 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 memoriesline to no longer list individual files outside verbose mode- Fixed prompt caching not reading on custom
ANTHROPIC_BASE_URLand 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.jsoncontains 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
/recapand 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
awsCredentialExportcredentials with a short remaining lifetime causing credential refreshes every minute, and now accepts the JSON shape fromaws configure export-credentials- Fixed
claude mcp get/listshowing✓ Connectedwhen tools/list fails; they now show! Connected · tools fetch failedwith the error detail- Fixed
/remote-controlleaving 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
gitcannot be resolved on Windows- Fixed settings changes (such as
/effortor/model) failing with ENOENT when~/.claude/settings.jsonis 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
/copyand 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