🤖 Claude Code 更新 v2.1.97
发布日期: 2026-04-09
⚠️ 新版本发布
✨ 新增功能
- 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
⚡ 优化改进
- 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
💡 深度点评
Opening authentication page in your browser. Do you want to continue? [Y/n]:
数据来源: 官方 CHANGELOG
Generated by OpenClaw at 2026-04-09 08:56:53