Claude Code Changelog

v2.1.97

2026年4月8日 GitHub で見る

📝 概要

NO_FLICKERモードにフォーカスビュー切替機能を追加し、パーミッション処理の堅牢化とバグ修正を実施したアップデート

🔄 主な変更点

  • 新機能: NO_FLICKERモードにフォーカスビュー切替(Ctrl+O)を追加
  • 新機能: ステータスライン自動更新設定(refreshInterval)を追加
  • 新機能: Cedar言語のシンタックスハイライト対応
  • 修正: --dangerously-skip-permissionsが保護パス承認後に自動降格される問題を解決
  • 修正: Bashツールのパーミッションチェックを強化(環境変数プレフィックス、ネットワークリダイレクト)
  • 修正: MCPのHTTP/SSE接続でメモリリーク(約50 MB/時)が発生する問題を解決
  • 修正: --resume機能の複数の問題(10KB超ファイルの差分消失、検索クリアなど)を修正
  • 修正: NO_FLICKERモード使用時のメモリリークと表示不具合を複数解決
  • 改善: Accept Editsモードで安全な環境変数付きコマンドを自動承認
  • 改善: 画像処理の一貫性向上(貼り付け・添付画像を同一トークン予算に圧縮)

💡 解説・活用案

このリリースでは特にNO_FLICKERモードの安定性と使い勝手が大幅に向上しました。フォーカスビュー(Ctrl+O)により、プロンプトと応答の重要部分だけを素早く確認でき、長時間セッションでの生産性が向上します。また、パーミッション処理の堅牢化により、LANG=Ctimeoutなどの安全なプレフィックス付きコマンドが自動承認されるため、開発フローの中断が減少します。MCP接続のメモリリーク修正は、長時間稼働する自動化タスクで特に効果を発揮するでしょう。

🌐 日本語訳

変更内容

  • NO_FLICKERモードにフォーカスビュー切替機能(Ctrl+O)を追加。プロンプト、編集差分統計付き1行ツール概要、最終応答を表示
  • ステータスライン設定にrefreshIntervalを追加。N秒ごとにステータスラインコマンドを再実行
  • ステータスラインのJSON入力にworkspace.git_worktreeを追加。現在のディレクトリがリンクされたgit worktree内にある場合に設定される
  • /agentsでライブのサブエージェントインスタンスを持つエージェントタイプの横に● N runningインジケータを追加
  • Cedarポリシーファイル(.cedar.cedarpolicy)のシンタックスハイライトを追加
  • 保護パスへの書き込み承認後に--dangerously-skip-permissionsが暗黙的にaccept-editsモードに降格される問題を修正
  • Bashツールのパーミッションを修正・強化。環境変数プレフィックスとネットワークリダイレクトに関するチェックを厳格化し、一般的なコマンドでの誤ったプロンプトを削減
  • JavaScriptのprototypeプロパティと一致する名前(例:toString)を持つパーミッションルールがsettings.jsonを暗黙的に無視させる問題を修正
  • 管理者が削除した管理設定の許可ルールが、プロセス再起動まで有効なままになる問題を修正
  • セッション中にpermissions.additionalDirectoriesの変更が適用されない問題を修正
  • settings.permissions.additionalDirectoriesからディレクトリを削除すると、--add-dirで渡された同じディレクトリへのアクセスが取り消される問題を修正
  • サーバー再接続時にMCPのHTTP/SSE接続で未解放バッファが約50 MB/時間蓄積される問題を修正
  • 再起動後のトークン更新時にoauth.authServerMetadataUrlが尊重されず、ADFSや類似IdPが正常に動作しない問題を修正
  • サーバーが小さいRetry-Afterを返す場合に429リトライが約13秒で全試行を消費する問題を修正。指数バックオフを最小値として適用
  • コンテキスト圧縮後にレート制限アップグレードオプションが消える問題を修正
  • /resumeピッカーの複数の問題を修正:--resume <name>が編集不可で開く、Ctrl+Aリロードが検索を消去、空リストがナビゲーションを飲み込む、タスクステータステキストが会話概要を置き換える、プロジェクト間の古さ
  • 編集されたファイルが10KBを超える場合に--resumeでファイル編集差分が消える問題を修正
  • 添付メッセージからの--resumeキャッシュミスと失われたターン中入力がトランスクリプトに保存されない問題を修正
  • Claudeの作業中に入力されたメッセージがトランスクリプトに保存されない問題を修正
  • 長時間セッションでプロンプトタイプStop/SubagentStopフックが失敗する問題と、フック評価API エラーが実際のメッセージではなく「JSON validation failed」を表示する問題を修正
  • worktree分離またはcwd:オーバーライドを持つサブエージェントが、その作業ディレクトリを親セッションのBashツールにリークする問題を修正
  • prompt-too-longリトライ時に圧縮が重複した数MBのサブエージェントトランスクリプトファイルを書き込む問題を修正
  • リモートに新しいコミットがある場合にclaude plugin updateがgitベースのマーケットプレイスプラグインに対して「already at the latest version」と報告する問題を修正
  • プラグインのフロントマターnameがYAMLブールキーワードの場合にスラッシュコマンドピッカーが壊れる問題を修正
  • NO_FLICKERモードで折り返されたURLをコピーする際、改行位置にスペースが挿入される問題を修正
  • zellij内で実行時のNO_FLICKERモードでのスクロールレンダリングアーティファクトを修正
  • NO_FLICKERモードでMCPツール結果にホバーするとクラッシュする問題を修正
  • APIリトライが古いストリーミング状態を残すNO_FLICKERモードのメモリリークを修正
  • Windows TerminalでのNO_FLICKERモードにおける遅いマウスホイールスクロールを修正
  • 24行未満の端末でNO_FLICKERモードのカスタムステータスラインが表示されない問題を修正
  • NO_FLICKERモードを使用するWarpでShift+EnterとAlt/Cmd+矢印ショートカットが機能しない問題を修正
  • Windowsのno-flickerモードで韓国語/日本語/Unicode テキストがコピー時に文字化けする問題を修正
  • AWS_BEARER_TOKEN_BEDROCKまたはANTHROPIC_BEDROCK_BASE_URLが空文字列に設定されている場合(GitHub Actionsが未設定入力に対して行うように)、Bedrock SigV4認証が失敗する問題を修正
  • Accept Editsモードを改善し、安全な環境変数またはプロセスラッパー(例:LANG=C rm footimeout 5 mkdir out)をプレフィックスとするファイルシステムコマンドを自動承認
  • autoモードとbypass-permissionsモードを改善し、サンドボックスネットワークアクセスプロンプトを自動承認
  • サンドボックス改善:macOSでsandbox.network.allowMachLookupが有効になるように
  • 画像処理の改善:貼り付けおよび添付された画像が、Readツールで読み取られた画像と同じトークン予算に圧縮されるように
  • スラッシュコマンドと@メンション補完を改善し、CJK句読点の後にトリガーされるように。これにより日本語/中国語入力で/@の前にスペースが不要に
  • Bridgeセッションを改善し、claude.aiセッションカードにローカルgitリポジトリ、ブランチ、作業ディレクトリを表示
  • フッターレイアウトを改善:インジケータ(Focus、通知)がモードインジケータ行に留まり、下に折り返されないように
  • コンテキスト低下警告を改善し、永続的な行ではなく一時的なフッター通知として表示
  • マークダウンブロッククォートを改善し、折り返された行全体に連続した左バーを表示
  • 空のフックエントリをスキップし、保存される編集前ファイルコピーの上限を設定することで、セッショントランスクリプトサイズを改善
  • トランスクリプトの精度を改善:ブロックごとのエントリがストリーミングプレースホルダーではなく最終トークン使用量を保持
  • Bashツールのオープンテレメトリトレース改善:トレースが有効な場合、サブプロセスがW3C TRACEPARENT環境変数を継承
  • /claude-apiスキルを更新し、Claude APIと共にManaged Agentsをカバー
原文(英語)を表示

What's changed

  • Added focus view toggle (Ctrl+O) in NO_FLICKER mode showing prompt, one-line tool summary with edit diffstats, and final response
  • Added refreshInterval status line setting to re-run the status line command every N seconds
  • Added workspace.git_worktree to the status line JSON input, set when the current directory is inside a linked git worktree
  • Added ● N running indicator in /agents next to agent types with live subagent instances
  • Added syntax highlighting for Cedar policy files (.cedar, .cedarpolicy)
  • Fixed --dangerously-skip-permissions being 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) causing settings.json to be silently ignored
  • Fixed managed-settings allow rules remaining active after an admin removed them until process restart
  • Fixed permissions.additionalDirectories changes in settings not applying mid-session
  • Fixed removing a directory from settings.permissions.additionalDirectories revoking 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.authServerMetadataUrl not 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 /resume picker 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 --resume when the edited file was larger than 10KB
  • Fixed --resume cache 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/SubagentStop hooks 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 update reporting "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 name is a YAML boolean keyword
  • Fixed copying wrapped URLs in NO_FLICKER mode inserting spaces at line breaks
  • Fixed scroll rendering artifacts in NO_FLICKER mode when running inside zellij
  • Fixed a crash in NO_FLICKER mode when hovering over MCP tool results
  • Fixed a NO_FLICKER mode memory leak where API retries left stale streaming state
  • Fixed slow mouse-wheel scrolling in NO_FLICKER mode on Windows Terminal
  • Fixed custom status line not displaying in NO_FLICKER mode on terminals shorter than 24 rows
  • Fixed Shift+Enter and Alt/Cmd+arrow shortcuts not working in Warp with NO_FLICKER mode
  • Fixed Korean/Japanese/Unicode text becoming garbled when copied in no-flicker mode on Windows
  • Fixed Bedrock SigV4 authentication failing when AWS_BEARER_TOKEN_BEDROCK or ANTHROPIC_BEDROCK_BASE_URL are 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.allowMachLookup now 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 TRACEPARENT env var when tracing is enabled
  • Updated /claude-api skill to cover Managed Agents alongside the Claude API