2.1.97
Claude Code 2.1.97 - リリースノート
2026年4月8日
Claude Code
日本語サマリー
以下は Claude Code 2.1.97 のリリースノートの要約です。
⚠️ セキュリティ修正および破壊的変更
- 権限チェックの強化:
--dangeriously-skip-permissionsが保護されたパスへの書き込み承認後に自動的にaccept-editsモードにダウングレードされる問題を修正しました。 - Bash ツールのセキュリティ強化: 環境変数プレフィックスやネットワークリダイレクト周りのチェックを強化し、一般的なコマンドでの誤った権限プロンプトを減らしました。
- 管理設定の即時反映: 管理者が許可ルールを削除した場合、プロセス再起動まで有効なままになっていた問題を修正しました。
- 設定ファイルの読み込みバグ修正: JavaScript のプロトタイププロパティ(
toStringなど)と一致する名前の権限ルールがあるとsettings.jsonが読み込まれない問題を修正しました。
🚀 新機能と改善
NO_FLICKERモードで、プロンプト、ツールの概要、最終応答を表示するフォーカスビュー(Ctrl+O)を追加しました。- ステータスバーのコマンドをN秒ごとに再実行する
refreshInterval設定、およびステータスバーの JSON 入力にworkspace.git_worktreeを追加しました。 /agentsに、実行中のサブエージェント数を示す● N runningインジケーターを追加しました。- Accept Edits モードおよび auto/bypass-permissions モードでのプロンプトの自動承認ロジックを改善しました(安全な環境変数のプレフィックスやネットワークアクセスの許可など)。
- 日本語/中国語などの入力後にスペースを空けずに直接
/や@で補完をトリガーできるように改善しました。 - macOS での
sandbox.network.allowMachLookupの動作や、画像処理(トークンバジェットに合わせた圧縮)を改善しました。
🐛 重要なバグ修正
- MCP 接続のメモリリーク解消: 再接続時に約 50 MB/時の未解放バッファが蓄積される問題を修正しました。
- API リトライの改善: 429 エラー発生時に
Retry-Afterが短いと約13秒で全リトライを消費していた問題を修正し、最低でも指数バックオフが適用されるようにしました。 - セッション/トランスクリプトの安定性向上: 入力中のメッセージや添付ファイルがトランスクリプトに保存されない問題や、コンパクションによるアップグレードオプションの消失を修正しました。
- 多数の
NO_FLICKERモードに関連する表示崩れやクラッシュ、メモリリーク、Windows 環境でのマルチバイト文字の文字化け(コピー時)を修正しました。 - AWS Bedrock の SigV4 認証が、空文字列の環境変数設定(
AWS_BEARER_TOKEN_BEDROCKなど)で失敗する問題を修正しました。
原文(Release Notes)
What's changed
- Added focus view toggle (
Ctrl+O) inNO_FLICKERmode showing prompt, one-line tool summary with edit diffstats, and final response- Added
refreshIntervalstatus line setting to re-run the status line command every N seconds- Added
workspace.git_worktreeto the status line JSON input, set when the current directory is inside a linked git worktree- Added
● N runningindicator in/agentsnext to agent types with live subagent instances- Added syntax highlighting for Cedar policy files (
.cedar,.cedarpolicy)- Fixed
--dangerously-skip-permissionsbeing silently downgraded to accept-edits mode after approving a write to a protected path- Fixed and hardened Bash tool permissions, tightening checks around env-var prefixes and network redirects, and reducing false prompts on common commands
- Fixed permission rules with names matching JavaScript prototype properties (e.g.
toString) causingsettings.jsonto be silently ignored- Fixed managed-settings allow rules remaining active after an admin removed them until process restart
- Fixed
permissions.additionalDirectorieschanges in settings not applying mid-session- Fixed removing a directory from
settings.permissions.additionalDirectoriesrevoking access to the same directory passed via--add-dir- Fixed MCP HTTP/SSE connections accumulating ~50 MB/hr of unreleased buffers when servers reconnect
- Fixed MCP OAuth
oauth.authServerMetadataUrlnot being honored on token refresh after restart, fixing ADFS and similar IdPs- Fixed 429 retries burning all attempts in ~13 seconds when the server returns a small
Retry-After— exponential backoff now applies as a minimum- Fixed rate-limit upgrade options disappearing after context compaction
- Fixed several
/resumepicker issues:--resume <name>opening uneditable, Ctrl+A reload wiping search, empty list swallowing navigation, task-status text replacing conversation summary, and cross-project staleness- Fixed file-edit diffs disappearing on
--resumewhen the edited file was larger than 10KB- Fixed
--resumecache misses and lost mid-turn input from attachment messages not being saved to the transcript- Fixed messages typed while Claude is working not being persisted to the transcript
- Fixed prompt-type
Stop/SubagentStophooks failing on long sessions, and hook evaluator API errors displaying "JSON validation failed" instead of the actual message- Fixed subagents with worktree isolation or
cwd:override leaking their working directory back to the parent session's Bash tool- Fixed compaction writing duplicate multi-MB subagent transcript files on prompt-too-long retries
- Fixed
claude plugin updatereporting "already at the latest version" for git-based marketplace plugins when the remote had newer commits- Fixed slash command picker breaking when a plugin's frontmatter
nameis a YAML boolean keyword- Fixed copying wrapped URLs in
NO_FLICKERmode inserting spaces at line breaks- Fixed scroll rendering artifacts in
NO_FLICKERmode when running inside zellij- Fixed a crash in
NO_FLICKERmode when hovering over MCP tool results- Fixed a
NO_FLICKERmode memory leak where API retries left stale streaming state- Fixed slow mouse-wheel scrolling in
NO_FLICKERmode on Windows Terminal- Fixed custom status line not displaying in
NO_FLICKERmode on terminals shorter than 24 rows- Fixed Shift+Enter and Alt/Cmd+arrow shortcuts not working in Warp with
NO_FLICKERmode- Fixed Korean/Japanese/Unicode text becoming garbled when copied in no-flicker mode on Windows
- Fixed Bedrock SigV4 authentication failing when
AWS_BEARER_TOKEN_BEDROCKorANTHROPIC_BEDROCK_BASE_URLare set to empty strings (as GitHub Actions does for unset inputs)- Improved Accept Edits mode to auto-approve filesystem commands prefixed with safe env vars or process wrappers (e.g.
LANG=C rm foo,timeout 5 mkdir out)- Improved auto mode and bypass-permissions mode to auto-approve sandbox network access prompts
- Improved sandbox:
sandbox.network.allowMachLookupnow takes effect on macOS- Improved image handling: pasted and attached images are now compressed to the same token budget as images read via the Read tool
- Improved slash command and
@-mention completion to trigger after CJK sentence punctuation, so Japanese/Chinese input no longer requires a space before/or@- Improved Bridge sessions to show the local git repo, branch, and working directory on the claude.ai session card
- Improved footer layout: indicators (Focus, notifications) now stay on the mode-indicator row instead of wrapping below
- Improved context-low warning to show as a transient footer notification instead of a persistent row
- Improved markdown blockquotes to show a continuous left bar across wrapped lines
- Improved session transcript size by skipping empty hook entries and capping stored pre-edit file copies
- Improved transcript accuracy: per-block entries now carry the final token usage instead of the streaming placeholder
- Improved Bash tool OTEL tracing: subprocesses now inherit a W3C
TRACEPARENTenv var when tracing is enabled- Updated
/claude-apiskill to cover Managed Agents alongside the Claude API