AIAI 更新了什么
返回首页

Product updates

Claude Code

Claude Code CLI 的版本变化与修复。

RSS ↗
官方最新版
2.1.207
最近成功采集
2026年7月12日 17:22

Timeline

最近 30 天更新

重大变化

Claude Code 2.1.207

2026年7月11日2.1.207建议尽快更新

Claude Code 2.1.207 默认启用 Auto 模式(无需环境变量),修复了终端冻结、远程管理设置未显示安全确认对话框、自动更新覆盖自定义启动脚本等多个问题,并改进了代理视图和插件安全性。

  • Auto 模式在 Bedrock、Vertex AI 和 Foundry 上无需 `CLAUDE_CODE_ENABLE_AUTO_MODE` 即可使用,可通过设置中的 `disableAutoMode` 关闭
  • 修复了流式响应包含超长列表、表格、段落或代码块时终端冻结和按键延迟的问题
  • 修复了非交互式运行(`claude -p`、SDK)中远程管理设置被永久记录为已同意而未显示安全确认对话框的问题
  • 修复了自动更新器每次发布时覆盖 `~/.local/bin/claude` 的自定义启动脚本或符号链接的问题
  • 插件钩子/监视器/MCP headersHelper 中 shell 格式命令的 `${user_config.*}` 现被拒绝(修复 shell 注入)
  • 插件选项值不再从项目级 `.claude/settings.json` 读取,仅用户、`--settings` 和托管设置生效
查看官方原文
- Auto mode is now available without `CLAUDE_CODE_ENABLE_AUTO_MODE` opt-in on Bedrock, Vertex AI, and Foundry; disable via `disableAutoMode` in settings - Fixed the terminal freezing and keystrokes lagging while streaming responses containing very long lists, tables, paragraphs, or code blocks - Fixed remote managed settings from a non-interactive run (`claude -p`, the SDK) being permanently recorded as consented without ever showing the security consent dialog - Fixed spurious prompt-injection warnings triggered by benign system-generated conversation updates - Fixed the auto-updater overwriting a custom launcher script or symlink at `~/.local/bin/claude` on every release; `/doctor` now reports an externally managed launcher - Fixed compound commands with `cd` prompting for permission when the only output redirect was to `/dev/null` - Fixed the transcript jumping above the start of the answer when a response finishes streaming - Fixed `extensions.worktreeConfig` being left in the repo's `.git/config` (breaking go-git tools like `tea`) after the last `worktree.sparsePaths` worktree was removed - Fixed malformed bracket patterns in rules globs, skill paths, `.ignore`, and `.worktreeinclude` breaking file reads, file suggestions, and worktree creation - Fixed a crash loop in agent teams where a malformed teammate mailbox message caused repeated errors every second until the mailbox file was manually deleted - Fixed background sessions auto-named by accepting a plan not showing that name on their agent-view row - Fixed background sessions that entered a git worktree resuming blank after a cold reopen from the agent list - Fixed Remote Control task status updates being lost when the connection recovered from a network interruption or credential refresh - Fixed Remote Control sessions hosted by the desktop app not showing background agent and workflow progress on mobile and web - Fixed Deep research runs labeling every Fetch-phase agent "unknown" — chips now show the source hostname - Fixed Bedrock repeatedly requesting fresh AWS SSO credentials from IAM Identity Center on every API request - Improved agent view: pasting the same text again now expands the collapsed `[Pasted text #N]` placeholder instead of adding a second one - Improved agent view: blocked session peeks now lead with the question and show a worded staleness clock (`waiting 3m`) instead of the same timestamp twice - Changed Bedrock, Vertex, and Claude Platform on AWS to default to Claude Opus 4.8 - Changed auto mode to no longer read `autoMode` from `.claude/settings.local.json` (repo-resident); use `~/.claude/settings.json` instead - Fixed an indefinite hang on Windows when AWS credential resolution stalls (e.g. a stuck `credential_process`): the 60-second stall guard now fires instead of waiting forever. - Plugin hooks/monitors/MCP headersHelper: `${user_config.*}` in shell-form commands is now rejected (shell-injection fix). Hooks: use exec form (`args` array) or `$CLAUDE_PLUGIN_OPTION_<KEY>`; monitors and headersHelper: read the value inside the script (config file or the server's `env` block). - Plugin option values (`pluginConfigs`) are no longer read from project-level `.claude/settings.json`; only user, `--settings`, and managed settings are honored - Fixed `/usage-credits` amount inputs silently stripping malformed values (e.g. a pasted timestamp) to digits; malformed amounts are now rejected with an error, and amounts over $1,000 require a typed confirmation
官方来源
重大变化

Claude Code 2.1.206

2026年7月10日2.1.206建议尽快更新

Claude Code 2.1.206 新增目录路径建议、/doctor 检查、/commit-push-pr 自动允许 git push 到配置的远程仓库,并修复了多个登录、MCP、模型选择器、后台代理和键盘输入相关的问题。

  • /cd 命令现在会像 /add-dir 一样提供目录路径建议
  • 新增 /doctor 检查,可建议修剪已检入的 CLAUDE.md 文件中 Claude 能从代码库推断的内容
  • /commit-push-pr 现在除了 origin 外,还会自动允许 git push 到仓库配置的推送远程仓库
  • 修复了过期登录导致所有模型失败并显示误导性错误的问题,现在会提示运行 /login
  • 修复了通过 --mcp-config 或 .mcp.json 配置的 MCP 服务器忽略 per-server request_timeout_ms 的问题
  • 修复了 claude --resume 和 --continue 在启动时不响应键盘输入的问题
查看官方原文
- Added directory path suggestions to `/cd`, matching `/add-dir` behavior - Added a `/doctor` check that proposes trimming checked-in `CLAUDE.md` files by cutting content Claude could derive from the codebase - `/commit-push-pr` now auto-allows `git push` to the repo's configured push remote (`remote.pushDefault`, or the sole remote when only one is configured) in addition to `origin` - Gateway: `/login` now supports Anthropic-operated public gateway endpoints - `EnterWorktree` now asks for confirmation before entering a git worktree outside the project's `.claude/worktrees/` directory - Background agents now upgrade to a new version in the background right after a Claude Code update, instead of paying a slow stale-session upgrade when you attach - Fixed an expired login failing every model with a misleading "There's an issue with the selected model" error instead of prompting to run `/login` - Fixed `claude --resume` and `--continue` not responding to keyboard input on startup - Fixed MCP servers configured via `--mcp-config` or `.mcp.json` ignoring a per-server `request_timeout_ms`, which caused long-running MCP tool calls to time out at the 60s default in fresh sessions - Fixed `CLAUDE_CODE_EXTRA_BODY` being silently ignored by `claude agents` / `--bg` background workers; the shell-exported override now follows the dispatching session - Fixed OAuth MCP servers requiring manual re-authentication after a single failed token refresh - Fixed `--permission-prompt-tool` pointing at an MCP server crashing with "MCP tool not found" on cold start before the server finishes connecting - Fixed `/model` picker rows printing a price for a different model than the row named, and stopped quoting first-party list prices on providers that don't bill them - Fixed server-provided model rows being misplaced in the `/model` picker when an entitlement or allowlist restriction drops the row they were positioned against - Fixed desktop sessions getting stuck showing "running" after a slash command was sent mid-turn - Fixed keyboard input being ignored in the agents view when a setup prompt appeared before a bare `claude --resume` on Windows - Fixed `claude rm` leaving the removed job in the daemon roster, causing the row to reappear in `claude agents` - Fixed `/remote-control` showing "Unknown command" when logged out — it now explains how to sign in - Fixed left arrow not stepping back out of a phase or agent in the workflow detail view - Fixed `/status` listing the same broken-install warning twice - Fixed false "disused plugin" tips and skewed disuse telemetry for LSP plugins - Fixed `/doctor`'s update check to compare Homebrew installs against their cask's channel instead of the settings channel - Fixed the fullscreen jump-to-bottom pill suggesting Ctrl+End on macOS, not showing rebound chords, and wrapping over the transcript - Bedrock: fixed a multi-minute startup hang when using an `awsCredentialExport` helper on networks with restricted egress - Improved `/code-review` findings quality on claude-opus-4-8 across all effort levels - Improved agents view: status column now uses full terminal width instead of truncating at 64 characters - Changed agents view: Ctrl+X now permanently removes a completed session, and sessions no longer render twice; deleted background jobs stay deleted
官方来源
重大变化

Claude Code 2.1.205

2026年7月9日2.1.205建议尽快更新

Claude Code 2.1.205 修复了多项关键错误,包括会话文件篡改防护、JSON Schema 验证、Windows 工作树删除、后台代理状态同步等问题,并改进了自动模式、代理视图和更新下载性能。

  • 新增自动模式规则,阻止篡改会话记录文件
  • 修复 --json-schema 在 schema 无效时静默输出非结构化内容的问题
  • 修复 Windows 上 NTFS 交接点或目录符号链接导致工作树外文件被删除的问题
  • 修复后台代理在恢复后仍显示为“失败”或“已完成”的状态同步问题
  • 改进自动模式:对无法解析上下文的变量执行 rm -rf 前会询问确认
  • 自动更新二进制下载改为流式写入磁盘,峰值内存减少约 400 MB
查看官方原文
- Added an auto mode rule that blocks tampering with session transcript files - Fixed `--json-schema` silently producing unstructured output when the schema was invalid, and schemas using the `format` keyword being rejected - Fixed a message sent while Claude was working being silently lost when the turn ended at the `--max-turns` limit - Fixed Windows worktree removal deleting files outside the worktree when an NTFS junction or directory symlink existed inside it - Fixed background agents staying shown as "failed" or "completed" in the agent list after being resumed with `SendMessage` - Fixed background jobs flipping from "needs input" back to "working" in the agent list when the agent's turn contained no readable text - Fixed `claude attach` erroring when a background agent was mid-upgrade restart instead of waiting for it to come back - Fixed session-to-PR linking missing a PR created in a Bash call whose output exceeded the 30K inline limit - Fixed `claude mcp add-from-claude-desktop` getting stuck when a server name contains unsupported characters; invalid names are now reported and remaining servers still import - Fixed a plugin LSP server that fails to initialize preventing a valid LSP server from another plugin handling the same file extension - Fixed a Windows crash when the directory Claude was launched from is deleted, locked, or unmounted while a command is running - Fixed a crash when a file watcher was closed while a directory scan was still in flight - Fixed project verify skills being rewritten on every session instead of only when a documented command changed - Fixed the agent view rendering one line too high and clipping its header when the job list slightly overflowed the screen - Fixed background tasks in the web and mobile Remote Control panels showing stale "Running" status by forwarding full task state on every membership change - Improved auto mode to ask before running `rm -rf` on a variable it can't resolve from context - Auto-update binary downloads now stream to disk instead of buffering in memory, cutting the updater's peak memory usage by roughly 400 MB - Background task notifications now explicitly state that no human input has occurred, preventing fabricated in-transcript approvals from being acted on - Improved agent view: sessions that edit, merge, comment on, or push to an existing PR now link it in `claude agents` - Improved agent view: rows now show a colored state word and a classifier-written headline instead of raw tool call text, and the peek opens with full status including the exact ask for blocked sessions - `/doctor` is now a full setup checkup that can diagnose and fix issues; `/checkup` is its alias - Reserved the "Claude Browser" MCP server name (alongside "Claude Preview") ahead of the Claude Desktop pane rename; user-configured MCP servers can no longer register under either name - Fixed Cowork VM-mode local-agent sessions failing to start with "Not logged in · Please run /login" on CLI 2.1.203+
官方来源
小幅更新

Claude Code 2.1.204

2026年7月8日2.1.204可按需更新

修复了在无头会话中,SessionStart钩子期间钩子事件不流式传输的问题,该问题可能导致远程工作者在钩子执行中途因空闲而被回收。

  • 修复了SessionStart钩子在无头会话中不流式传输事件的问题,避免远程工作者在钩子执行期间被错误回收。
查看官方原文
- Fixed hook events not streaming during SessionStart hooks in headless sessions, which could cause remote workers to be idle-reaped mid-hook
官方来源
重大变化

Claude Code 2.1.203

2026年7月8日2.1.203建议尽快更新

Claude Code 2.1.203 修复了多个后台会话、子代理和终端体验问题,并添加了登录过期警告、手动权限模式徽章等新功能。

  • 登录即将过期时显示警告,避免后台会话中断
  • 手动权限模式下在底部显示灰色⏸徽章
  • 后台会话因令牌过期无响应时自动恢复
  • 修复macOS上打开后台会话时因错误低内存检测而卡顿15-20秒
  • 修复返回`claude agents`时子代理被静默停止并重新运行的问题
  • 修复交互会话中上下文使用指示器每轮重新分析整个对话的内存和CPU回归
查看官方原文
- Added a warning when your login is about to expire, so you can re-authenticate before background sessions are interrupted - Added a grey ⏸ badge to the footer when in manual permission mode, making the active mode always visible - Added the session's additional working directories to MCP `roots/list`, with `notifications/roots/list_changed` sent when the set changes - Fixed opening or switching background agent sessions on macOS stalling for 15–20 seconds due to a false low-memory detection (regression in 2.1.196) - Fixed background sessions becoming permanently unresponsive to attach, replies, and stop when the daemon's session token went stale — the session now recovers automatically - Fixed returning to `claude agents` silently stopping running subagents and re-running the prompt from scratch — their work now carries over - Fixed a memory and per-turn CPU regression in interactive sessions: the context-usage indicator no longer re-analyzes the entire transcript after every turn - Fixed background agents inheriting a stale `PATH` from the daemon instead of the dispatching shell, causing missing tools on Windows - Fixed background and agent-view sessions dropping a shell-exported `ANTHROPIC_BASE_URL`, which sent API keys to the default endpoint and failed with 401 - Fixed Bash failing with "argument list too long" in repos with many git worktrees - Fixed worktree-isolated subagents sometimes running shell commands in the parent checkout instead of their own worktree - Fixed worktree creation rejecting nested repositories in multi-repo workspaces, leaving background sessions unable to isolate and edit - Fixed background agents crash-looping when their working directory was deleted, replaced by a file, or became an invalid path — they now fail once with a clear error - Fixed a background daemon auto-upgrade failure silently killing all running background sessions - Fixed `TaskStop` and `TaskOutput` failing to find background agents spawned by another agent — errors now list running agents by id and description - Fixed the `claude agents` composer discarding your typed message when a slash command isn't available there - Fixed the agent list crashing when opening a stopped session whose conversation was already open in another session - Fixed background sessions showing "Needs input" in the agent list after the question was already answered - Fixed background agent startup failures showing only "exit_with_message" instead of the actual error - Fixed background sessions ignoring `effortLevel` changes in settings.json when forked through the daemon - Fixed attached background sessions ignoring `CLAUDE_CODE_DISABLE_MOUSE` and `CLAUDE_CODE_DISABLE_MOUSE_CLICKS` opt-outs - Fixed `/exit` incorrectly warning about running background agents after all named agents had completed - Fixed background sessions started from a non-git directory unable to edit files when a `WorktreeCreate` hook was configured - Fixed the `@` directory picker in `claude agents` not showing registered git worktrees - Fixed background task output on Windows being permanently replaced by an empty file after `/clear` - Fixed content jumping when scrolling up through long transcript history - Fixed the terminal flickering and jumping while typing in bash mode when a shell-history suggestion was shown - Fixed literal `^[[I` / `^[[O` escape codes being printed when reattaching to a background session - Fixed LSP-only plugins being incorrectly flagged for disuse when their language servers deliver diagnostics or answer navigation requests - Improved responsiveness while long responses stream: live-preview updates no longer re-render the whole screen - Improved subagent behavior: agents are now less likely to re-delegate their entire task to another subagent - Reduced binary size by ~7 MB and startup memory by ~7 MB by loading a large bundled dependency lazily instead of inlining it - Changed left arrow to no longer close the background tasks, diff, and workflow detail views — press Esc instead - Changed the empty `claude agents` view to always show the organized sections (Needs input / Working / Completed) with descriptions - Removed the startup "claude command missing or broken" warnings — they now appear in `/doctor` and `/status` instead - Removed a redundant navigation hint from the `claude agents` footer - [VSCode] Added a Settings toggle for "Enable Remote Control for all sessions"
官方来源
小幅更新

Claude Code 2.1.202

2026年7月7日2.1.202建议更新

Claude Code 2.1.202 新增动态工作流大小设置、工作流遥测属性,并修复了多项崩溃、连接失败和功能异常问题。

  • /config 中新增动态工作流大小设置(小/中/大),作为指导性建议而非强制限制
  • 工作流生成的代理现在会发出 workflow.run_id 和 workflow.name 的 OpenTelemetry 属性,便于从 OTel 数据重建工作流运行活动
  • 修复了内联 Ctrl+R 历史搜索在扫描时接受或取消导致的崩溃
  • 修复了后台会话的 /rename 在作业重启后被还原的问题
  • 修复了远程控制(移动端/网页端)发送命令到交互式会话时失败的问题
  • 修复了从远程控制发送无标题的图片或文件被静默丢弃的问题
查看官方原文
- Added a "Dynamic workflow size" setting in `/config` for controlling how large Claude generally makes dynamic workflows (small/medium/large agent counts) — an advisory guideline, not an enforced cap - Added `workflow.run_id` and `workflow.name` OpenTelemetry attributes to telemetry emitted by workflow-spawned agents, so a workflow run's activity can be reconstructed from OTel data - Fixed a crash in the inline Ctrl+R history search when accepting or cancelling while the search was still scanning the history file - Fixed `/rename` on background sessions being reverted when the job restarts, which broke addressing the session by its new name - Fixed transient mTLS handshake failures when settings were re-applied during an in-place client certificate rotation - Fixed commands sent from Remote Control (mobile/web) into an interactive session failing with "Unknown command" - Fixed images and files sent from the Remote Control mobile or web app without a caption being silently dropped - Fixed the sign-in URL printed by `claude auth login` and `claude mcp login --no-browser` not being reliably clickable when it wraps over SSH — it is now emitted as a single hyperlink - Fixed opening a chat from `claude agents` sometimes failing with "currently running as a background agent" followed by a worker crash/respawn loop - Fixed workflow scripts with unicode quote escapes in strings being corrupted before parsing; workflow parse errors now show the offending line instead of always blaming TypeScript - Fixed voice dictation retrying in an unbounded loop when the microphone or audio recorder fails — repeated capture failures now pause voice input - Fixed `/remote-control` sessions showing the wrong permission mode in the mobile and web apps - Fixed resuming a session by name, or opening the resume picker, taking minutes and using a large amount of memory in repositories with many git worktrees - Fixed installer and updater downloads failing immediately with "aborted" when a proxy or network drops the connection mid-download — transient connection drops now retry - Fixed re-invoking an already-loaded skill appending a duplicate copy of its instructions to context - Improved `/workflows` agent list layout: wider titles, a dedicated time column, shorter model names, and no per-row tool-call counts - Improved MCP error messages: clearer error when a server config has `url` but no `type`, suggesting `"type": "http"` instead of the misleading "command: expected string" - Changed `/review <pr>` back to a fast single-pass review; use `/code-review <level> <pr#>` for the multi-agent review at a chosen effort level
官方来源
小幅更新

Claude Code 2.1.201

2026年7月4日2.1.201可按需更新

Claude Code 2.1.201 更新:Claude Sonnet 5 会话不再在对话中途使用系统角色来发送 harness 提醒。

  • Claude Sonnet 5 会话不再在对话中途使用系统角色发送 harness 提醒
查看官方原文
- Claude Sonnet 5 sessions no longer use the mid-conversation system role for harness reminders
官方来源
小幅更新

Claude Code 2.1.200

2026年7月3日2.1.200建议更新

Claude Code 2.1.200 更改了 AskUserQuestion 对话框的默认行为,不再自动继续;将默认权限模式改为“手动”;修复了多个崩溃和后台会话问题,并改进了屏幕阅读器输出。

  • AskUserQuestion 对话框默认不再自动继续,可通过 /config 启用空闲超时
  • 默认权限模式改为“手动”,支持 --permission-mode manual 和 "defaultMode": "manual"
  • 修复了因 disabledMcpServers 或 enabledMcpServers 为非数组值导致的启动崩溃
  • 修复了后台会话在睡眠/唤醒后或重新打开停滞会话时中途停止的问题
  • 修复了后台代理因陈旧 daemon.lock 导致无法重启的问题
  • 改进了屏幕阅读器输出:装饰性字形隐藏,转录符号显示为短标签,嵌套表格读作“Header: value.”
查看官方原文
- Changed `AskUserQuestion` dialogs to no longer auto-continue by default; opt into an idle timeout via `/config` - Changed the "default" permission mode to "Manual" across the CLI, `--help`, VS Code, and JetBrains; `--permission-mode manual` and `"defaultMode": "manual"` are accepted alongside `default` - Fixed a crash at startup when `disabledMcpServers` or `enabledMcpServers` in `.claude.json` is set to a non-array value - Fixed background sessions silently stopping mid-turn after sleep/wake or when reopening a stalled session - Fixed background sessions re-running a turn cancelled with Esc after a stall respawn - Fixed background agents never starting again after a crash left a stale `daemon.lock` whose PID the OS reused - Fixed background-agent daemon handover so a reinstalled older build can no longer take over the daemon; build recency is now judged by the version's embedded build timestamp - Fixed background-agent roster issues: transient corruption permanently disabling orphan cleanup, older binaries not preserving fields written by newer versions, and socket auth tokens being stripped during daemon restarts - Fixed subagents cut off by a rate limit before producing any text output returning an empty result instead of failing cleanly - Fixed control bytes from background-agent output reaching the terminal in the agent view - Fixed `claude agents --plugin-dir <dir>` not showing the plugin's agents and skills in the agent view when the flag is placed after `agents` - Fixed project-scoped plugins not loading correctly from git worktrees of the same repository - Fixed `/mcp` server list not tracking focus for screen readers and magnifiers - Fixed voice dictation showing a misleading "Voice connection failed" message when a recording captures no audio - Fixed rendering flicker under tmux 3.4+ by enabling synchronized terminal output - Improved screen-reader output: decorative glyphs are now hidden, transcript symbols read as short labels, and nested tables read as `Header: value.` lines - Improved the install script to explain when installation is killed by the system running out of memory
官方来源
重大变化

Claude Code 2.1.199

2026年7月3日2.1.199建议尽快更新

Claude Code 2.1.199 修复了大量错误,包括 SSL 证书错误、流式响应中断、子代理错误处理、后台代理崩溃等问题,并改进了重试机制和用户界面。

  • 修复 SSL 证书错误(TLS 代理、缺少 NODE_EXTRA_CA_CERTS、过期证书)导致重试后无提示的问题,现在立即失败并显示修复提示
  • 修复 API 在流式响应中途返回过载/服务器错误时丢弃部分输出的问题,现在保留部分输出并显示不完整响应提示
  • 修复子代理因速率限制或服务器错误被中断时静默失败的问题,现在将部分工作返回给父代理
  • 修复 Linux 上后台代理守护进程在非正常关闭后每约 50 秒自杀并杀死所有运行中代理的问题
  • 修复后台代理在 macOS 上通过 SSH 冷启动时出现“Could not switch to audit session”错误的问题
  • 修复 /model 或 /fast 命令在查看子代理时静默打开主代理模型选择器的问题,现在显示提示说明命令适用于主代理
查看官方原文
- Stacked slash-skill invocations like `/skill-a /skill-b do XYZ` now load all leading skills (up to 5), not just the first - Fixed SSL certificate errors (TLS-inspecting proxies, missing `NODE_EXTRA_CA_CERTS`, expired certs) burning retries before showing actionable guidance — they now fail immediately with the fix hint - Fixed streaming responses being discarded when the API emits a mid-stream overloaded/server error after partial output — the partial is now kept with an incomplete-response notice - Fixed subagents cut off by a rate limit or server error silently failing instead of returning their partial work to the parent - Fixed subagents reporting API errors (e.g. usage limit reached) as successful results — the error is now reported to the parent agent - Fixed the background-agent daemon on Linux killing itself and every running agent every ~50 seconds after an unclean shutdown left a corrupted worker record - Fixed background agents failing to cold-start over SSH on macOS with "Could not switch to audit session" (regression in 2.1.196) - Fixed `claude stop` being silently undone when it raced a background-agent respawn — the respawn now honors the stop - Fixed background job progress indicators stalling for minutes while the job ran long commands - Fixed background sessions on memory-starved machines showing a generic error — they now indicate low memory and suggest freeing resources - Fixed remote sessions briefly flapping between Working and Idle in the agent view when a background agent completes - Fixed idle subagents vanishing from the agent panel while other subagents were still working; surplus idle agents now collapse into an expandable summary row - Fixed typing `/model` or `/fast` while viewing a subagent silently opening the lead's model picker — a notice now explains the command applies to the lead - Fixed `SessionStart`, `Setup`, and `SubagentStart` hooks silently hiding stderr when exiting with code 2 — the error is now shown in the transcript - Fixed `claude --dangerously-skip-permissions daemon <subcommand>` being treated as a chat prompt instead of running the subcommand - Fixed `SendMessage` silently misrouting when a re-spawned agent reuses a previous agent's name — the tool now detects the mismatch and asks the caller to retarget - Fixed opening or resuming a session with no new messages needlessly growing the transcript file - Fixed backgrounding a session with `←` or `/background` dropping its `/color` from the agent view row - Fixed resetting a corrupted config file from the startup recovery dialog destroying it unrecoverably — it now backs up the file first - Fixed Claude in Chrome repeatedly opening the reconnect page when sessions run from different builds or config directories - Fixed plan mode not prompting for state-changing browser tool calls; read-only `browser_batch` calls are now correctly auto-allowed - Transient server rate-limit errors (429s unrelated to your usage limit) are now retried automatically with backoff for subscribers instead of failing the turn - `CLAUDE_CODE_RETRY_WATCHDOG` now raises the default retry count for non-capacity transient errors to 300 and lifts the cap of 15 on `CLAUDE_CODE_MAX_RETRIES` - `claude agents` session rows now show pull-request links as bare `#N` without the redundant "PR" label
官方来源
重大变化

Claude Code 2.1.198

2026年7月2日2.1.198建议更新

Claude Code 2.1.198 将子代理默认改为后台运行,正式推出 Chrome 集成,新增 /dataviz 技能和 AWS 上游提供商,并修复了大量网络、界面和代理相关的问题。

  • 子代理默认在后台运行,完成后通知主会话
  • Claude in Chrome 正式可用
  • 新增 /dataviz 技能,含可运行的颜色调色板验证器
  • Gateway 新增 AWS 上的 Claude Platform 作为上游提供商
  • 修复网络中断导致对话中止的问题,现在会重试
  • 修复背景任务在 Web/桌面/VS Code 中卡在“运行中”的问题
查看官方原文
- Subagents now run in the background by default, so Claude keeps working while they run and is notified when they finish (previously a gradual rollout) - Claude in Chrome is now generally available - Added background agent notifications in `claude agents` — sessions that need input or finish now fire the `Notification` hook (`agent_needs_input` / `agent_completed`) - Added `/dataviz` skill for chart and dashboard design guidance with a runnable color-palette validator - Gateway: added Claude Platform on AWS (anthropicAws) as an upstream provider; model-not-found responses now advance the failover chain - Background agents launched from `claude agents` now commit, push, and open a draft PR when they finish code work in a worktree, instead of stopping to ask - The built-in Explore agent now inherits the main session's model (capped at opus) instead of running on haiku - Subagents and context compaction now inherit the session's extended thinking configuration, improving output quality on delegated tasks - Fixed brief network drops mid-response aborting the turn — transient errors like ECONNRESET now retry with backoff instead of failing - Fixed excessive background classifier requests when sandboxed processes repeatedly accessed the same network host - Fixed background tasks in web, desktop, and VS Code task panels getting stuck on "Running" after they finish or after resuming a session - Fixed agent teams: a teammate that dies on an API error now reports "failed" to the lead, and messaging a stuck teammate wakes it to retry immediately - Fixed the `/diff` panel not refreshing when you switch branches or commit outside the session - Fixed markdown tables overflowing and wrapping their right border when rendered in fullscreen mode - Fixed Claude Platform on AWS and Mantle sessions dead-ending with "Please run /login" when the STS token expires — `awsAuthRefresh` now runs automatically - Fixed "no route to host" for local-network hosts in macOS background agent sessions by declaring Local Network entitlements - Fixed `/desktop` failing with "Cannot determine working directory" after entering and exiting a worktree - Fixed background agents repeatedly showing "Reconnecting…" every ~52 seconds on macOS while the agents view was open - Fixed pressing `←` inside `claude attach <id>` exiting to the shell instead of opening the agent view - Fixed `claude --bg` silently creating an unattachable session when combined with `--print`/`-p`; the conflicting flags are now rejected up front - Fixed the workflow progress view dropping the earliest agents from the list while the phase counter stayed correct in SDK and desktop-app sessions - Fixed `.claude/rules/` conditional rules not loading when the target file is reached via a symlinked path - Fixed Cmd+click not opening URLs in fullscreen mode in Warp on macOS - Fixed double-click word selection in fullscreen mode to select the entire URL including the scheme - Fixed plan mode not auto-allowing read-only tool calls when a session starts in plan mode - Fixed `/branch` deriving its default fork name from the compaction summary instead of the first real prompt - Improved focus mode: subagents launched in a turn now appear in its activity summary, and completed background notifications fold into a single count - Improved syntax highlighting accuracy in code blocks, diffs, and file previews by upgrading to highlight.js 11 - Keyboard shortcut hints now show opt/cmd instead of alt/super when connected from a Mac over SSH - Improved API retry UX: the error reason is now shown after the second attempt, and a status page link replaces the spinner tip when the API is overloaded - `/login` now opens the sign-in dialog from the `claude agents` view instead of saying it isn't available - Subagents now treat messages from the agent that launched them as normal task direction; an agent's message is still never treated as the user's approval - Removed the `/agents` wizard; ask Claude to create or manage subagents, or edit `.claude/agents/` directly
官方来源
功能更新

Claude Code 2.1.197

2026年6月30日2.1.197建议更新

Claude Code 2.1.197 版本引入了 Claude Sonnet 5 作为默认模型,拥有原生 100 万 token 上下文窗口,并在 8 月 31 日前提供促销定价。

  • Claude Sonnet 5 现为默认模型
  • 原生 100 万 token 上下文窗口
  • 促销定价:输入 $2/Mtok,输出 $10/Mtok(截至 8 月 31 日)
查看官方原文
- Introducing Claude Sonnet 5: now the default model in Claude Code, with a native 1M-token context window and promotional pricing of $2/$10 per Mtok through August 31. Update to version 2.1.197 for access. https://www.anthropic.com/news/claude-sonnet-5
官方来源
重大变化

Claude Code 2.1.196

2026年6月30日2.1.196建议尽快更新

Claude Code 2.1.196 新增组织默认模型支持、可读会话名称和可点击文件附件,修复多项安全、可靠性和用户体验问题,并改进了后台会话的稳定性。

  • 新增组织默认模型支持,管理员可在控制台设置,未选择时显示为“Org default”
  • 会话启动时自动生成可读默认名称,便于识别和消息引用
  • 聊天中的文件附件支持 Cmd/Ctrl+点击在文件管理器中定位
  • 安全修复:`claude mcp list`/`get` 不再自动启动通过提交的 `.claude/settings.json` 自批准的 MCP 服务器,不受信任的工作区显示“⏸ 待批准”
  • 后台会话可靠性改进:长时间运行的命令和工作流在进程停止、重启或更新后仍能存活,Windows 上后台 shell 被移交而非终止
  • 流式空闲看门狗默认启用:5 分钟无事件时自动中止并重试,可通过 `CLAUDE_ENABLE_STREAM_WATCHDOG=0` 禁用
查看官方原文
- Added support for organization default models — admins set it in the org console; it shows as "Org default" (or "Role default") in `/model` when you haven't picked one yourself - Added readable default names for sessions at start, making them easier to identify and message - Added clickable file attachments in chat — Cmd/Ctrl-click reveals the file in Finder/Explorer - Security: `claude mcp list`/`get` no longer spawn `.mcp.json` servers that a repo self-approved via a committed `.claude/settings.json`; untrusted workspaces show `⏸ Pending approval` - Fixed waking a background job permanently deleting its conversation and re-running the original prompt when the transcript probe misread a real transcript; the file is now set aside, never deleted - Fixed the rate-limit warning flickering off and rate-limit telemetry being over-counted when multiple parallel requests were in flight at the moment a usage limit was hit - Fixed duplicate recap lines after a background session's turn: a schema-rejected StructuredOutput attempt no longer renders alongside its retry - Fixed PowerShell `git diff`/`git grep`, `egrep`/`fgrep`, and quoted search patterns containing `|` being reported as failures when they exit 1, matching Bash behavior - Fixed multiple `claude agents` side panel issues: keyboard focus getting stuck when opening an agent, background jobs losing their subagent types on every open, and sessions showing incorrect status while actively running - Fixed `claude agents --dangerously-skip-permissions` silently falling back to auto mode instead of showing the bypass disclaimer and applying bypass mode to spawned agents - Fixed mid-turn crash recovery for Remote sessions — sessions interrupted by a server restart now auto-resume on the next worker - Fixed sessions moved with `/cd` reappearing in the old directory's resume list after a non-graceful exit when the old path contained special characters - Fixed `claude plugin validate` skipping local plugins whose source is "." and stopping after the first error class - Fixed Esc Esc at an idle prompt not opening the rewind menu (regression); use Ctrl+C or Ctrl+X Ctrl+K to stop background agents - Fixed MCP OAuth requesting the authorization server's full `scopes_supported` catalog when no scope is specified, causing `invalid_scope` failures on GitLab self-hosted and other enterprise IdPs - Fixed `/context` showing 0 tokens for all tool groups on Bedrock - Fixed `/deep-research` misreporting verifier failures as "all claims refuted" instead of `unverified` - Fixed plugin dependency version pins not being honored when the marketplace was added as a local folder path backed by a git repo - Fixed `claude agents` session status: completed rows no longer flip between "Done" and "Needs your input", stalled agents are now labeled "Needs attention", and results that mention a PR show a clickable link - Fixed voice dictation swallowing spaces and spuriously starting a recording during very fast typing when voice mode is enabled - Improved background session reliability: long-running commands and workflows now survive the session's process being stopped, restarted, or updated — including on Windows, where background shells are handed off instead of being killed - Improved background agents: workers killed by a daemon restart are now automatically resumed from where they left off the next time the agents view opens - Improved `/code-review` workflow: merged five cleanup finders into one, cutting token usage by roughly 25% - Reduced per-frame rendering work in the terminal UI by skipping no-op subtree walks during streaming - The streaming idle watchdog is now on by default for all providers — it aborts and retries when a response stream produces no events for 5 minutes. Set `CLAUDE_ENABLE_STREAM_WATCHDOG=0` to disable. - Remote Control is now disabled when `ANTHROPIC_BASE_URL` points at a non-Anthropic host, matching the existing behavior under `CLAUDE_CODE_USE_BEDROCK`/`_VERTEX`/`_FOUNDRY` - Changed opening the agents view from a foreground session to require a single `←` press instead of two, matching the behavior in background sessions
官方来源
小幅更新

Claude Code 2.1.195

2026年6月27日2.1.195建议更新

Claude Code 2.1.195 新增环境变量禁用全屏鼠标点击,修复了钩子匹配器、语音听写、插件启用/禁用、后台任务崩溃恢复等多个问题,并改进了 Linux 语音模式和远程会话启动体验。

  • 新增 `CLAUDE_CODE_DISABLE_MOUSE_CLICKS` 环境变量,可在全屏模式下禁用鼠标点击/拖拽/悬停,保留滚轮滚动
  • 修复钩子匹配器对带连字符标识符(如 `code-reviewer`、`mcp__brave-search`)的精确匹配问题,现需使用 `mcp__brave-search__.*` 匹配所有工具
  • 修复 macOS 上默认输入设备变更后语音听写捕获静音的问题
  • 修复日语、中文、泰语等无空格语言中语音听写自动提交从未触发的问题
  • 修复仅通过项目 `.claude/settings.json` 启用的外部插件每次加载路径都要求显式安装同意的问题
  • 修复 `/plugin` 启用/禁用功能在插件 `plugin.json` 的 `name` 与市场条目名称不一致时失效的问题
查看官方原文
- Added `CLAUDE_CODE_DISABLE_MOUSE_CLICKS` to disable mouse click/drag/hover in fullscreen mode while keeping wheel scroll - Fixed hook matchers with hyphenated identifiers (e.g. `code-reviewer`, `mcp__brave-search`) accidentally substring-matching — they now exact-match. Use `mcp__brave-search__.*` to match all tools from a hyphenated MCP server. - Fixed voice dictation on macOS capturing silence in long-running sessions after the default input device changes - Fixed voice dictation auto-submit never firing for languages written without spaces (Japanese, Chinese, Thai) - Fixed external plugins enabled only by project `.claude/settings.json` not requiring explicit install consent on every loader path - Fixed `/plugin` Enable/Disable not working when a plugin's `plugin.json` `name` differs from its marketplace entry name - Fixed background jobs disappearing from `claude agents` or losing data when written by a newer Claude Code version - Fixed reopening a crashed background task showing a blank screen for up to 5 seconds instead of its restart - Fixed background agent daemons running unreachable when the control socket fails to start, blocking restarts - Improved voice mode on Linux: now distinguishes "no microphone" from "SoX not installed" when SoX is present but no audio capture device exists - Improved `claude agents` completed list to fill available vertical space; on short terminals the header compacts so live sessions stay visible - Improved Remote session startup with a provisioning checklist while the container starts
官方来源
功能更新

Claude Code 2.1.193

2026年6月26日2.1.193建议更新

Claude Code 2.1.193 新增了自动模式分类、遥测日志、文件路径补全等功能,并修复了多个后台任务和界面问题。

  • 新增 autoMode.classifyAllShell 设置,将所有 Bash/PowerShell 命令通过自动模式分类器路由
  • 新增 claude_code.assistant_response OpenTelemetry 日志事件,默认跟随 OTEL_LOG_USER_PROMPTS 设置
  • 新增 Bash 模式下实时文件路径自动补全(!)
  • 新增内存压力下自动回收空闲后台 shell 命令(可禁用)
  • 修复后台任务(←←)在任务全部延续到新会话时错误取消的问题
  • 修复主会话后台化时产生幽灵子代理的问题
查看官方原文
- Added `autoMode.classifyAllShell` setting to route all Bash/PowerShell commands through the auto-mode classifier instead of only arbitrary-code-execution patterns - Added auto-mode denial reasons to the transcript, the denial toast, and `/permissions` recent denials - Added `claude_code.assistant_response` OpenTelemetry log event containing the model's response text. Redacted unless `OTEL_LOG_ASSISTANT_RESPONSES=1`; when that var is unset it follows `OTEL_LOG_USER_PROMPTS`, so deployments that already log prompt content will start receiving response content on upgrade — set `OTEL_LOG_ASSISTANT_RESPONSES=0` to keep prompts-only. - Added live file path autocomplete to bash mode (`!`) - Added a startup notice when MCP servers need authentication, pointing at `/mcp` - Added automatic memory-pressure reaping for idle background shell commands (disable with `CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP=1`) - Fixed `/model` and other client-data-gated UI showing stale/empty state immediately after `/login` - Fixed backgrounding (←←) spuriously cancelling with "N background tasks would be abandoned" when all running tasks carry over to the new session - Fixed pinned background agents being re-prompted to "Continue from where you left off" after every auto-update - Fixed backgrounding the main turn spawning a phantom "general-purpose (resumed)" subagent that re-ran the main conversation - Fixed agent panel hiding sibling agents when viewing a subagent - Improved background agents: the launch result no longer instructs Claude to "end your response" — it keeps working on other tasks while the agent runs - Improved MCP `headersHelper` auth: the helper now re-runs and reconnects automatically when a tool call returns 401/403 - Improved plugin auto-rename: marketplace `renames` maps are now followed automatically, updating your settings to the new name - Improved `/add-dir` message when the directory is already a working directory
官方来源
小幅更新

Claude Code 2.1.191

2026年6月25日2.1.191建议更新

Claude Code 2.1.191 修复了多个关键问题,包括滚动位置跳跃、后台代理复活、权限对话框持久化等,并改进了 MCP 可靠性、沙箱网络权限记忆、流式响应 CPU 使用率降低约 37%。

  • 修复 /clear 后无法使用 /rewind 恢复对话的问题
  • 修复后台代理被停止后仍会复活的问题,现在停止是永久性的
  • 修复 /voice 在组织策略禁用时显示通用消息,现会说明具体限制
  • 改进沙箱网络权限对话框:允许的主机在会话期间被记住,不再重复询问
  • 改进 MCP 服务器可靠性:能力发现和 OAuth 请求在临时网络错误时自动重试
  • 流式响应 CPU 使用率降低约 37%(通过将文本更新合并为 100ms 间隔)
查看官方原文
- Added `/rewind` support for resuming a conversation from before `/clear` was run - Fixed scroll position jumping to the bottom while reading earlier output during a streaming response - Fixed background agents resurrecting after being stopped — stopping an agent from the tasks panel is now permanent - Fixed `/voice` showing a generic "not available" message when disabled by an organization's policy — it now explains the restriction - Fixed `/login` URL opening truncated in Windows Terminal when it wraps across lines - Fixed Cmd+click on links in fullscreen mode for Ghostty over ssh/tmux - Fixed `claude agents` sending builtin slash commands like `/usage` to background sessions as prompt text instead of showing a hint - Fixed `claude agents` job rows showing full filesystem paths for pasted images instead of the `[Image #N]` placeholder - Fixed hooks with comma-separated matchers (e.g. `"Bash,PowerShell"`) silently never firing - Fixed `/permissions` Recently-denied tab: approving a denial now persists on close instead of being silently discarded - Fixed the agent panel jumping by one row when scrolling the roster past the overflow cap - Fixed the welcome splash art overflowing the default 80×24 macOS Terminal window - Fixed managed settings: `forceRemoteSettingsRefresh` now takes effect when set via MDM or file policy, and the fetch sends `Cache-Control: no-cache` to prevent proxies from serving stale responses - Improved sandbox network permission dialog: hosts you allow with "Yes" are now remembered for the rest of the session instead of re-prompting on every connection - Improved MCP server reliability: capability discovery (`tools/list`, `prompts/list`, `resources/list`) now retries transient network errors with short backoff - Improved MCP OAuth: discovery and token requests now retry once after transient network errors, and headless environments skip the browser popup and go straight to the paste-the-URL prompt - Improved MCP error messages: HTTP 404 errors now show the URL and point to your MCP config - Improved vim mode prompt-history search (NORMAL `/`) to hint how to reach slash commands - Reduced CPU usage during streaming responses by ~37% by coalescing text updates to 100ms - Reduced long-session memory growth from terminal output cache
官方来源
信息不足

Claude Code 2.1.190

2026年6月24日2.1.190信息不足

Claude Code 2.1.190 版本包含错误修复和可靠性改进。

查看官方原文
- Bug fixes and reliability improvements
官方来源
功能更新

Claude Code 2.1.187

2026年6月24日2.1.187建议更新

Claude Code 2.1.187 新增了沙箱凭据保护、组织模型限制和全屏鼠标点击支持,并修复了多项关键问题,包括远程 MCP 工具调用超时、结构化输出循环、终端乱码等。

  • 新增 `sandbox.credentials` 设置,阻止沙箱命令读取凭据文件和秘密环境变量
  • 模型选择器、`--model`、`/model` 和 `ANTHROPIC_MODEL` 现在会显示组织配置的模型限制,选中受限模型时提示“受组织设置限制”
  • 全屏模式下选择菜单(权限提示、`/model`、`/config` 等)支持鼠标点击
  • 修复远程 MCP 工具调用无响应 5 分钟时不再无限阻塞,而是报错中止(可通过 `CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT` 覆盖)
  • 修复结构化输出中模型在成功调用后无限重调 `StructuredOutput` 的问题,后续轮次现在可靠返回结构化输出
  • 修复粘贴韩文/CJK 文本在终端中变成乱码的问题
查看官方原文
- Added `sandbox.credentials` setting to block sandboxed commands from reading credential files and secret environment variables - Added org-configured model restrictions to the model picker, `--model`, `/model`, and `ANTHROPIC_MODEL`, with a "restricted by your organization's settings" message when a restricted model is selected - Added mouse click support to select menus (permission prompts, `/model`, `/config`, etc.) in fullscreen mode - Fixed `--resume` failing with "No conversation found" when the original `-p` run produced no model turns - Fixed `--json-schema` and workflow `agent({schema})` structured output: the model can no longer re-call `StructuredOutput` indefinitely after a successful call, and follow-up turns now reliably return structured output - Fixed remote MCP tool calls that hang with no response for 5 minutes — they now abort with an error instead of blocking indefinitely (override with `CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT`) - Fixed Claude Code Remote sessions taking ~2.7s longer to start after the agent proxy CA system-trust install was added - Fixed pasted Korean/CJK text turning into mojibake in terminals that deliver paste as per-byte extended-key events - Fixed `/update` over Remote Control hanging when a startup trust dialog would have shown - Fixed background jobs in the agents view getting stuck in "working" indefinitely when the agent ended a turn without producing structured output - Fixed channel connections dropping after navigating to the agents view and back, and after `/bg`, `/tui`, or `/update` - Fixed agent stop notifications not correctly attributing who stopped the agent, and improved wording ("finished"/"stopped" instead of "came to rest") - Fixed subagent depth tracking: resumed subagents now restore their original spawn depth, and forked subagents now count toward the depth cap - Fixed leaked agent worktree registrations: locked `.git/worktrees/` entries from killed agents are now cleaned up automatically - Fixed Cmd+click not opening URLs in fullscreen mode in Ghostty on macOS - Fixed `claude --help` not listing the `--bg`/`--background` flag - Fixed Esc, Ctrl-C, and Ctrl-D not working while `/share` is uploading - Improved `/install-github-app`: GitHub Actions workflow setup is now optional — you can install just the GitHub App and skip the workflow/secret steps - Improved `/btw` with ←/→ arrow navigation to step through earlier answers - Improved `/plugin` to surface plugins you haven't used recently so you can clean them up - [VSCode] Fixed extension becoming unresponsive when resuming a large session
官方来源
功能更新

Claude Code 2.1.186

2026年6月23日2.1.186建议更新

Claude Code 2.1.186 新增了 MCP 服务器 CLI 登录/登出、工作流状态过滤、插件技能区、iTerm2 队友模式等功能,并修复了多项问题。

  • 新增 `claude mcp login/logout` 命令,支持在 CLI 中认证 MCP 服务器,无需打开交互菜单。
  • `!` bash 命令现在会自动触发 Claude 响应输出;可通过设置 `respondToBashCommands: false` 恢复原有行为。
  • 修复了机器从睡眠唤醒后流式请求失败的问题。
  • 后台子代理现在会在主会话中显示权限提示,而非自动拒绝。
  • `/review <pr>` 现在使用与 `/code-review medium` 相同的审查引擎。
  • `CLAUDE_CODE_MAX_RETRIES` 上限改为 15;无人值守会话请使用 `CLAUDE_CODE_RETRY_WATCHDOG`。
查看官方原文
- Added `claude mcp login <name>` and `claude mcp logout <name>` to authenticate MCP servers from the CLI without opening the interactive `/mcp` menu, with `--no-browser` stdin redirect support for completing over SSH - Added status filtering (press `f`) to the `/workflows` agent detail view - Added a "Skills" section to the `/plugin` Installed tab - Added `teammateMode: "iterm2"` setting with a warning when auto mode cannot find the `it2` CLI - Added "Claude Platform on AWS - refresh credentials" option to `/login` when `awsAuthRefresh` is configured - `!` bash commands now trigger Claude to respond to the output automatically; set `"respondToBashCommands": false` in settings.json to keep the previous context-only behavior - Fixed streaming requests failing with "Content block not found" or JSON parse errors after the machine wakes from sleep - Fixed subagent transcript scroll position bleeding into the main transcript on exit - Fixed background task previews flashing raw tool names before the agent's plan loaded - Fixed Chrome tab-group isolation not applying when the in-product permissions gate is off for concurrent CLI sessions - Fixed background session recaps being duplicated; the agent's own end-of-turn summary now shows as the recap line - Fixed opening a background session from `claude agents` leaving the previous screen painted behind it - Fixed `Agent(type)` deny rules and `Agent(x,y)` allowed-types restrictions not being enforced for named subagent spawns - Fixed Esc and Ctrl+C not responding while background agents are still running after the main turn ends - Fixed misaligned option numbers in permission prompts when the option text overflows - Fixed pressing `x` on a finished subagent in the agent panel not dismissing it - Fixed a misleading "MCP server disconnected" notice for intentionally retired tools when resuming older sessions - Fixed `/plugin` Installed showing a "more above" indicator when already scrolled to the top - Fixed `~~strikethrough~~` showing literal tildes in assistant messages instead of rendering as strikethrough - Fixed `--tools` allowing feature-gated tools to slip through before flags loaded on a cold first launch - Fixed background job status in `claude agents` showing a stale "needs input" message after replying - Fixed a dark-theme flash when opening a background session from `claude agents` on a light terminal - Fixed mouse-selected text staying highlighted after deleting it in `claude agents` - Fixed session cost not showing for usage-based Enterprise and Team subscribers - Fixed agent teams: teammates spawned via tmux/pane backends now inherit the leader's `--effort` level - Fixed Workflow `agent({schema})` subagents looping forever on repeated schema validation failures instead of aborting after 5 attempts - Improved `claude mcp get` and `claude mcp remove` to suggest the closest configured server name on a typo and truncate long server lists - Improved memory: the agent is now reminded to compact its `MEMORY.md` index when nearing the size limit - Improved skill frontmatter: `display-name`, `default-enabled`, `fallback`, and `metadata.*` keys now accept kebab-case, snake_case, and camelCase - Improved malformed `SKILL.md` YAML frontmatter handling: loads the skill body with empty metadata instead of failing silently - Changed `CLAUDE_CODE_MAX_RETRIES` to cap at 15; for unattended sessions, use `CLAUDE_CODE_RETRY_WATCHDOG` instead - Changed background subagents to surface permission prompts in the main session instead of auto-denying; the dialog shows which agent is asking, and Esc denies just that tool - Changed `/review <pr>` to use the same review engine as `/code-review medium`
官方来源
小幅更新

Claude Code 2.1.185

2026年6月21日2.1.185可按需更新

调整了流式响应超时提示文案和触发时机,将静默等待时间从10秒延长至20秒。

  • 流式响应超时提示文案从“No response from API · Retrying in …”改为“Waiting for API response · will retry in …”
  • 超时触发条件从静默10秒改为20秒
查看官方原文
- The stream-stall hint now reads "Waiting for API response · will retry in …" instead of "No response from API · Retrying in …", and triggers after 20s of silence instead of 10s
官方来源
重大变化

Claude Code 2.1.183

2026年6月19日2.1.183建议尽快更新

Claude Code 2.1.183 增强了自动模式的安全性,阻止了未请求的破坏性 git 和基础设施销毁命令;新增了模型弃用警告和配置帮助;修复了多个子代理、终端显示、MCP 认证和任务触发相关的问题。

  • 自动模式下,未请求时阻止 `git reset --hard`、`git checkout -- .`、`git clean -fd`、`git stash drop` 等破坏性 git 命令,以及 `terraform destroy`、`pulumi destroy`、`cdk destroy` 等基础设施销毁命令
  • 请求的模型已弃用或自动更新时,在 stderr 和 agent frontmatter 中显示警告
  • 新增 `attribution.sessionUrl` 设置,可省略 web 和 Remote Control 会话中提交和 PR 的 claude.ai 会话链接
  • `/config` 切换行为变更:Enter 和 Space 均更改设置,Esc 保存并关闭而非还原
  • 修复了子代理生成和会话标题生成时因 `thinking.disabled.display` 配置导致的 400 错误
  • 修复了 Windows Terminal 中嵌套子代理负载下全屏 TUI 损坏(状态行错位、重复 spinner 行、文本合并)的问题
查看官方原文
- Improved auto mode safety: destructive git commands (`git reset --hard`, `git checkout -- .`, `git clean -fd`, `git stash drop`) are now blocked when you didn't ask to discard local work, `git commit --amend` is blocked when the commit wasn't made by the agent this session, and `terraform destroy`/`pulumi destroy`/`cdk destroy` are blocked unless you asked for the specific stack - Added a warning when the requested model is deprecated or automatically updated to a newer model, shown on stderr in print mode (`-p`) and now also covering models set in agent frontmatter - Added `attribution.sessionUrl` setting to omit the claude.ai session link from commits and PRs in web and Remote Control sessions - Added `/config --help` to list all available shorthand keys for `/config key=value` - Changed `/config` toggle behavior: Enter and Space both change the selected setting, and Esc now saves and closes instead of reverting - Removed the startup "setup issues" line under the logo — run `/doctor` to see configuration issues or use `--debug` - Fixed `thinking.disabled.display: Extra inputs are not permitted` 400 errors on subagent spawns and session-title generation for affected configurations - Fixed WebSearch returning empty results in subagents - Fixed the terminal cursor being stranded above the prompt after navigating history in vim mode with the native cursor enabled - Fixed fullscreen TUI corruption (statusline mid-screen, duplicated spinner rows, merged text) in Windows Terminal under heavy nested-subagent load - Fixed turns silently completing with no visible output when the model returned only a thinking block; Claude now re-prompts once - Fixed user-level skills appearing multiple times in slash-command autocomplete when multiple plugins are enabled - Fixed MCP servers requiring authentication exposing auth-stub tools to the model in headless/SDK mode - Fixed tmux teammate panes failing to launch when the shell has slow rc-file initialization, and keystrokes typed during agent spawn leaking into the new tmux pane instead of the leader prompt - Fixed background tasks started by a teammate being killed when the teammate finishes a turn - Fixed scheduled task and webhook trigger deliveries being treated as keyboard input; they now classify as task notifications and can no longer approve a pending action or set the session title in auto mode - Fixed focus mode showing "Ran N PostToolUse hooks" timing lines under each response
官方来源
功能更新

Claude Code 2.1.181

2026年6月18日2.1.181建议更新

Claude Code 2.1.181 新增了 /config 语法、Apple Events 沙箱设置和环境变量,改进了流式输出和自动重试,并修复了大量启动、文件写入、子代理和兼容性问题。

  • 新增 `/config key=value` 语法,可在交互、`-p` 和远程控制中直接设置任意配置项
  • 新增 `sandbox.allowAppleEvents` 设置,允许沙箱命令在 macOS 上发送 Apple Events
  • 新增 `CLAUDE_CLIENT_PRESENCE_FILE` 环境变量,指向标记文件可抑制移动推送通知
  • 改进长段落流式输出:文本逐行显示,无需等待第一个换行符
  • 修复自定义 `ANTHROPIC_BASE_URL` 和 Foundry 上提示缓存不读取的问题
  • 修复网络驱动器和云同步文件夹上 Write/Edit 产生 0 字节或截断文件的问题
查看官方原文
- Added `/config key=value` syntax to set any setting from the prompt (e.g. `/config thinking=false`) — works in interactive, `-p`, and Remote Control - Added `sandbox.allowAppleEvents` opt-in setting that lets sandboxed commands send Apple Events on macOS - Added `CLAUDE_CLIENT_PRESENCE_FILE` environment 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 memories` line to no longer list individual files outside verbose mode - Fixed prompt caching not reading on custom `ANTHROPIC_BASE_URL` and 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.json` contains 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 `/recap` and 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 `awsCredentialExport` credentials with a short remaining lifetime causing credential refreshes every minute, and now accepts the JSON shape from `aws configure export-credentials` - Fixed `claude mcp get`/`list` showing `✓ Connected` when tools/list fails; they now show `! Connected · tools fetch failed` with the error detail - Fixed `/remote-control` leaving 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 `git` cannot be resolved on Windows - Fixed settings changes (such as `/effort` or `/model`) failing with ENOENT when `~/.claude/settings.json` is 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 `/copy` and 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
官方来源
小幅更新

Claude Code 2.1.179

2026年6月17日2.1.179建议更新

修复了多个连接、滚动、沙盒和界面问题,改进了远程会话的插件加载性能。

  • 修复流中断时部分响应丢失和旋转图标卡住的问题
  • 修复 WSL2 下鼠标滚轮滚动失效的回归问题
  • 修复沙盒中大量目录树导致 Bash 工具描述过大和会话不可用的问题
  • 修复反馈调查在回合结束后立即将个位数回复视为评分的问题
  • 修复欢迎屏幕堆叠多个促销横幅的问题,现每会话最多显示一个
  • 修复远程会话中后台任务在回合间显示为“仍在运行”的问题
查看官方原文
- Fixed mid-stream connection drops: partial responses are now preserved instead of showing a raw error, and the spinner no longer gets stuck at "running tool" - Fixed mouse-wheel scrolling in WSL2 under Windows Terminal and VS Code (regression in 2.1.172) - Fixed a sandbox `denyRead`/`allowRead` glob over a large directory tree making the Bash tool description enormous and the session unusable on Linux - Fixed the feedback survey capturing a single-digit reply as a session rating immediately after a turn completes - Fixed the welcome screen stacking multiple promotional banners — at most one promo now shows per session - Fixed Ctrl+O not showing the subagent's transcript when viewing a subagent - Fixed clicking the prompt input not returning focus from the subagent/footer panel - Fixed remote session background tasks appearing stuck as "still running" between turns - Improved plugin loading performance in remote sessions
官方来源
功能更新

Claude Code 2.1.178

2026年6月16日2.1.178建议更新

Claude Code 2.1.178 简化了实验性 Agent Teams 的创建流程,新增基于工具参数的权限规则语法,改进了嵌套技能目录加载和自动模式,并修复了多项崩溃、连接和子代理问题。

  • Agent Teams 实验功能:移除 TeamCreate/TeamDelete 工具,每个会话隐式拥有一个团队,直接通过 Agent 工具的 name 参数生成队友
  • 新增 Tool(param:value) 权限规则语法,支持按工具输入参数匹配(含 * 通配符),例如 Agent(model:opus) 可阻止 Opus 子代理
  • 嵌套 .claude/skills 目录中的技能现在可自动加载,名称冲突时显示为 <dir>:<name>
  • 自动模式改进:子代理生成前会先经分类器评估,避免子代理请求被阻止的操作而未经审查
  • 修复 CLI 继承父进程过期 websocket/OAuth 文件描述符环境变量导致的内存溢出崩溃
  • 修复 vim 模式撤销:u 命令现在逐条撤销 NORMAL/VISUAL 模式命令,而非合并快速连续操作为一步
查看官方原文
- Agent teams: removed the `TeamCreate` and `TeamDelete` tools. With `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` set, every session now has one implicit team — spawn teammates directly with the Agent tool's `name` parameter, no setup step needed. The `team_name` parameter on the Agent tool is still accepted but ignored. - 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/skills` directories 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 `/doctor` with 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 - `/bug` now 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/skills` skills 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 agents` workers failing with `401 Invalid bearer token` when the daemon was started from a shell with a custom API gateway via `ANTHROPIC_BASE_URL` and `ANTHROPIC_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 `/bg` or `←←` after a turn finished showing "Working" forever in the agents list - Fixed Linux sandbox failing to start when `.claude/skills` or `.claude/hooks` is a symlink - Fixed `CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE=1` preventing fresh marketplace installs from cloning - Fixed MCP server-level specs (`mcp__server`, `mcp__server__*`, `mcp__*`) in subagent `disallowedTools` being silently ignored - Fixed vim mode undo: `u` now 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 in `claude agents` - [VSCode] Fixed pressing Esc to dismiss a CJK IME candidate window canceling the running Claude task
官方来源
重大变化

Claude Code 2.1.176

2026年6月13日2.1.176建议尽快更新

Claude Code 2.1.176 修复了多项关键问题,包括模型选择强制、Linux 沙箱符号链接、远程控制连接、后台会话等,并新增了会话标题语言跟随和可配置的页脚链接徽章。

  • 会话标题现在根据对话语言自动生成,可通过 language 设置固定语言
  • 新增 footerLinksRegexes 设置,允许通过正则匹配在页脚行显示链接徽章
  • 修复了 availableModels 强制问题:别名模型选择不再被环境变量重定向到被阻止的模型,/fast 在切换到允许列表外的模型时会拒绝切换
  • 修复了 Linux 沙箱在 .claude/settings.json 为绝对路径符号链接时无法启动的问题
  • 修复了远程控制从网页/移动端连接时静默切换会话模型的问题
  • 修复了后台会话在自动更新后窗口无法提交回复时的引导提示,以及 daemon status 显示版本差异行为
查看官方原文
- Session titles are now generated in the language of your conversation (set the `language` setting to pin a specific language) - Added `footerLinksRegexes` setting for regex-matched link badges in the footer row, configurable via user or managed settings - Improved Bedrock credential caching: credentials from `awsCredentialExport` are now cached until their `Expiration` instead of a fixed 1 hour - Fixed `availableModels` enforcement: alias model picks can no longer be redirected to a blocked model via `ANTHROPIC_DEFAULT_*_MODEL` environment variables, and `/fast` now refuses to toggle when it would switch to a model outside the allowlist - Fixed auto mode failing on Fable 5 for organizations without Opus 4.8 enabled — the classifier now falls back to the best available Opus model - Fixed hook `if` conditions for Read/Edit/Write tool paths: documented patterns like `Edit(src/**)`, `Read(~/.ssh/**)`, and `Read(.env)` now match correctly - Fixed Linux sandbox failing to start when `.claude/settings.json` is a symlink with an absolute target - Fixed `/copy` and mouse-selection copy not reaching the system clipboard inside tmux over SSH, and tmux paste buffer not loading on versions older than 3.2 - Fixed Remote Control connecting from web/mobile silently switching the session's model - Fixed Remote Control disconnect notifications showing a bare numeric code instead of a human-readable reason, and connection failures adding a duplicate line to the conversation transcript - Fixed Remote Control sessions not disconnecting when you sign in to a different account - Fixed `/cd` and worktree moves leaving the session reporting the previous directory's git branch - Fixed `claude agents`: pressing back in one window no longer detaches other windows attached to the same session - Fixed backgrounded sessions showing "Working" forever when `/bg` mid-turn had nothing left to continue - Fixed background agent search by PR URL: PRs opened during scheduled wakeups or while a job was blocked now appear in `claude agents` search - Fixed the agents view input showing no text cursor on Windows - Fixed `claude --bg -cn <name>` not seeding the session name - Fixed background sessions to neutralize Windows network paths in persisted state before respawn - Fixed background-session respawn rejecting malformed resume IDs from corrupted state files - Fixed the Windows background-service daemon not starting when `~/.claude/daemon` has the ReadOnly attribute set - Fixed cloud sessions failing with "Could not resolve authentication method" when idle for too long before being claimed - Background sessions now show clearer guidance when a window left open across an auto-update can't submit a reply, and `claude daemon status` explains version-skew behavior
官方来源