2.1.178
Claude Code 2.1.178 - リリースノート
2026年6月15日
Claude Code
日本語サマリー
以下は Claude Code 2.1.178 のリリースノートの要約です。
本リリースに伴う破壊的変更や重大なセキュリティ修正(権限回避の修正など)はありませんが、セキュリティや権限管理に関連する重要な挙動の改善・修正が含まれています。
主な変更点・新機能
- permission rules の強化: ツールの入力パラメータにマッチする
Tool(param:value)構文(*ワイルドカード使用可)を追加。例:Agent(model:opus) - ネストされた
.claude/ディレクトリの優先順位変更: エージェント、ワークフロー、output-styleにおいて、作業ディレクトリに最も近いものが優先されるよう変更。 - ネストされた
.claude/skillsの読み込み改善: 該当ディレクトリで作業中にスキルが読み込まれるようになり、名前衝突時は<dir>:<name>として表示されるように。 - auto mode の改善: サブエージェント起動前に classifier による評価が行われるようになり、ブロック対象のアクションを実行される隙を修正。
/doctorコマンドの改善: 全セクションで一貫したフラットなツリーレイアウトを採用し、ステータスアイコンやコマンド名を見やすく改善。- Remote Control のエラー表示改善: 接続失敗時にフッターへ赤色の
/rc failedインジケーターを表示。エラー原因(ポリシー、認証失敗など)の詳細も明確化。 /bugコマンドの仕様変更: 送信前に説明文の記述が必須になり、モデルの拒否テキストが GitHub Issue のタイトルに使われないよう修正。
重要なバグ修正
- OOM クラッシュ修正: 親プロセスから古い websocket/OAuth の環境変数を引き継いだ際のメモリ枯渇クラッシュを修正。
- subagent の挙動修正: サブエージェントのトランスクリプト表示や進捗のライブ表示、メッセージドロップ、バックグラウンド実行時の再起動問題などを修正。
- 認証・トークンエラーの修正:
ANTHROPIC_BASE_URL/ANTHROPIC_AUTH_TOKEN使用時の401 Invalid bearer tokenエラーや、認証情報更新後も古いキャッシュでリクエストが失敗する問題を修正。 - compaction の修正: 過負荷時などに
--fallback-modelの設定が正しく機能するよう修正。 - MCP server 関連の修正: subagent の
disallowedToolsにおける MCP server レベルの指定が無視されていた問題を修正。 - vim mode の修正: ノーマル/ビジュアルモードでの
uコマンドによるアンドゥが、コマンドごとに正しく機能するよう修正。 - [VSCode] CJK IME の修正: VSCode 上で CJK(日本語など)の IME 候補ウィンドウを Esc キーで閉じる際、実行中の Claude タスクがキャンセルされてしまう問題を修正。
原文(Release Notes)
What's changed
- Added
Tool(param:value)syntax for permission rules to match a tool's input parameters (with*wildcard), e.g.Agent(model:opus)to block Opus subagents- Skills in nested
.claude/skillsdirectories now load when working on files there; on a name clash, the nested skill appears as<dir>:<name>so both stay available- Nested
.claude/directories: the agent, workflow, and output-style closest to the working directory now wins when names collide; project-scope workflow saves now target the closest existing.claude/workflows/- Improved auto mode: subagent spawns are now evaluated by the classifier before launch, closing a gap where a subagent could request a blocked action without review
- Improved
/doctorwith consistent flat tree layout across all sections, clearer section status icons, and highlighted command names- Improved the skill listing truncation warning to show how many skill descriptions are affected
- Changed the workflow prompt keyword to use a purple shimmer highlight and trigger only on explicit phrases like "run a workflow" or "workflow:", not on any mention of the word
- Improved Remote Control error messages: connection failures now show a persistent red "/rc failed" indicator in the footer, and the "not yet enabled" error now explains whether it's a gate, a check failure, stale entitlement, or org policy
/bugnow requires a description before submitting, and no longer uses model-refusal text as the GitHub issue title- Fixed a crash (out-of-memory) when the CLI inherits a stale websocket/OAuth file-descriptor environment variable from a parent process
- Fixed Claude in Chrome silently failing to connect when the OAuth token belongs to a different account than the Claude Code login
- Fixed nested
.claude/skillsskills with directory-qualified names being blocked by permission prompts in non-interactive runs- Fixed several subagent issues: viewing a subagent's transcript now shows tool results and live progress, messages sent while it finishes its turn are no longer dropped, and backgrounding a running subagent (ctrl+b) no longer restarts it from scratch
- Fixed
claude agentsworkers failing with401 Invalid bearer tokenwhen the daemon was started from a shell with a custom API gateway viaANTHROPIC_BASE_URLandANTHROPIC_AUTH_TOKEN- Fixed compaction not honoring
--fallback-model: compaction now falls back to the configured fallback model chain on overload or model-availability errors- Fixed model requests continuing to fail with auth errors after credentials were refreshed outside the session, due to a stale cached request configuration
- Fixed background sessions created with
/bgor←←after a turn finished showing "Working" forever in the agents list- Fixed
CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE=1preventing fresh marketplace installs from cloning- Fixed MCP server-level specs (
mcp__server,mcp__server__*,mcp__*) in subagentdisallowedToolsbeing silently ignored- Fixed vim mode undo:
unow steps through NORMAL/VISUAL-mode commands one at a time instead of merging commands in quick succession into a single undo step- Fixed statusline links with custom URI schemes (e.g.
vscode://) not opening when clicked inclaude agents- [VSCode] Fixed pressing Esc to dismiss a CJK IME candidate window canceling the running Claude task