## 更新内容
- 在 `/status` 和 `claude doctor` 中新增了“组织策略”一行,用于说明无法加载组织策略的原因,例如代理未转发相应端点
- 新增 `bashOutputMaxChars` 和 `taskOutputMaxChars` 设置,可提高 Claude 在将命令和后台任务输出保存到文件之前以内联方式接收的内容量,上限为 128K 个字符
- 新增 `--append-subagent-system-prompt-file`,用于从文件读取子代理系统提示词,适用于内容过大、无法通过命令行传递的提示词
- 新增 `/skill-doctor`,用于显示哪些已加载的技能未被使用,以及它们占用了多少上下文,便于进行精简
- 修复了快速输入或按键重复时,键入或粘贴的字符偶尔顺序错乱或丢失的问题
- 修复了当工作目录位于 `/net` 自动挂载点时,`/add-dir <subdirectory>` 错误地显示“无法解析”错误的问题
- 修复了 AWS 或 AWS 凭证辅助程序无响应时 Bedrock 设置向导卡住的问题(现在会超时并显示明确错误),以及在执行 TLS 检查的代理后方模型检查失败的问题
- 修复了云会话丢弃从 claude.ai 同步的插件的问题:当托管设置通过 `enabledPlugins` 强制启用该插件时,会话会丢弃它,然后回退到可能安装失败的市场克隆版本
- 修复了无法删除提示词输入框中内联 `[Image #N]` 标记前一个字符的问题
- 修复了恢复会话时丢失并行工具调用周围的 Hook 输出和其他上下文,进而导致恢复后的请求发生变化的问题
- 修复了手机、浏览器或 claude.ai 应用连接到终端会话时,以及在终端中更改权限模式后,Remote Control 显示过期权限模式的问题
- 修复了从已连接的手机或浏览器停止一轮交互后,或执行 `/clear` 等本地斜杠命令后,Remote Control 会话仍显示为正在工作(进度指示器卡住且仍显示“停止”按钮)的问题
- 修复了 SDK 和云会话忽略在首次提示后、该轮交互开始前立即发送的停止或中断指令的问题;现在该轮交互会停止,而不是继续运行直至完成
- 修复了 Remote Control 将通过 `/teleport` 拉取的会话上传到已连接会话的问题,该问题会导致这些内容在手机端和网页端看起来像是追加到了原始会话中
- 修复了原生 Windows 上 Remote Control 的入站事件流在执行 TLS 检查的企业代理后方失败的问题
- 修复了当工作量级别来自设置时,Remote Control 会话在 claude.ai 上显示默认工作量级别的问题
- 修复了 Google 凭证检查速度较慢时,即使凭证仍然有效,`gcpAuthRefresh` 也会在启动时打开浏览器的问题
- 修复了启动时连接器获取超时后,claude.ai 连接器在整个会话中一直缺失的问题——CLI 现在会在后台重试
- 修复了后台代理无法恢复,且其唤醒操作在紧密循环中持续重试时,CPU 使用率持续过高的问题
- 修复了仅面向较新版本的功能标志偶尔应用到同一台机器上运行的旧版 Claude Code 的问题
- 修复了使用情况端点受到速率限制或启动后立即打开时,`/usage` 和 VS Code 使用情况面板遗漏特定模型的每周限额行的问题
- 修复了 `claude -p --resume <file>` 采用记录稿中格式错误的会话 ID 的问题;现在会改用新的会话 ID 恢复
- 修复了后台工作流或代理仍在运行时,终端进度指示器(iTerm2、Ghostty、ConEmu)却显示会话已完成的问题
- 修复了一个罕见的布局故障:当容器在行方向和列方向之间切换后,框可能会以错误的高度呈现
- 修复了可信代理在 `X-Forwarded-For` 中附加端口时,Claude 应用网关客户端 IP 解析错误的问题;设置访问列表后,无法读取的条目现在会返回 403
- 修复了即使终端 CLI 使用 protobuf,Claude 应用网关仍要求 Claude Desktop 以 JSON 格式导出 OpenTelemetry,导致仅支持 protobuf 的收集器拒绝 Desktop 数据的问题
- 修复了 Desktop 和网页端在会话仅监视制品更新时仍将其显示为忙碌的问题
- 修复了从 Claude Desktop 应用运行的本地 Cowork 会话中,Claude in Chrome 的 `file_upload` 因“paths: expected array, received undefined”而失败的问题
- 修复了向另一台机器上的离线 Remote Control 会话执行 `SendMessage` 时被显示为已送达的问题;现在结果会说明消息已排队,等待该机器重新连接后送达
- 修复了在后台 Bash 命令中运行的 CLI 所产生的插件安装提示无法被识别的问题;现在可以检测到这些提示,并且原始 `<claude-code-hint>` 标签不再泄漏到对话中
- 修复了进程内代理团队成员在第二轮中重复发送首轮的工具和技能声明,导致请求前缀发生变化并错过提示词缓存的问题
- 改进了 `/model` 选择器和 VS Code 模型标签:当 Claude Code 能够识别模型时,会显示模型名称,而不是原始 Bedrock、Vertex AI 或 LLM 网关 ID
- 改进了设置 `GOOGLE_APPLICATION_CREDENTIALS` 时 Google Vertex AI 的启动过程:创建 API 客户端时不再重复执行 Google Cloud 项目发现,也不会生成额外的 `gcloud` 进程
- 改进了流式传输性能:每次更新时,布局系统不再重新检查已经渲染的块
- 改进了危险 `rm` 命令的安全提示,使其也能识别针对位置参数执行的 `rm -rf`,以及双引号 `sh -c` 脚本中的 `rm -rf`
- 改进了 API 未发送响应标头时的处理方式:重试现在最多等待 `API_TIMEOUT_MS`(默认为 10 分钟),而不是再等待 3 分钟,并且消息会说明应更改哪些内容
- 更改了加载托管设置时(启动时或执行 `/login` 后)Claude 应用网关返回 403 的提示,现在会说明组织可能尚未启用 Claude Code,而不是建议重新登录
- 更改了托管设置中固定 `forceLoginMethod: "gateway"` 的机器行为:现在会忽略遗留的 API 密钥或 claude.ai 登录状态,并要求执行 `/login`;Bedrock、Vertex AI 和 Foundry 会话不受影响
- 更改了自动模式对链接的处理方式:如果链接将内容封装在公共图表渲染器的 URL 中,则会将其视为向该网站上传内容;除非你明确提出要求,否则不再自动批准
- 更改了提示词中的单词编辑快捷键,使其与 Bash 一致:Ctrl+W 向前删除到空白字符,Alt+F 和 Alt+D 在单词末尾停止,标点符号用于分隔单词;`keybindingFlavor` 不再产生任何效果
- 更改了 `/context` 的令牌计数方式:当令牌计数 API 不可用时,改用本地估算,而不是额外请求小型模型
- [VSCode] 在“输出样式”菜单中新增了“构建自定义样式”演练流程,该流程会写入自定义输出样式文件并立即将其列出
- [VSCode] 在 MCP 服务器对话框中新增了“添加服务器”表单和“移除”操作,无需离开 IDE 即可添加和移除 MCP 服务器
- [VSCode] 在会话列表中为已在终端、另一个 VS Code 窗口或 Claude Desktop 中打开的会话新增了空心圆环标识,使其不再看起来像已关闭
- [VSCode] 在权限和问题提示中新增了折叠按钮,无需关闭提示即可阅读其后的对话;提示旁边的空白区域现在可以滚动对话
- [VSCode] 在会话列表的右键菜单中新增了“归档会话”,并为“取消归档”提供了独立图标
- [VSCode] 修复了从网页版 Claude Code 传送过来的会话将云会话关闭时被截断的问题视为已拒绝的问题
- [VSCode] 修复了随窗口恢复的标签页中,会话标签的“重命名”框打开时为空的问题;现在会以当前名称作为初始值
- [VSCode] 修复了会话列表面板每次加载时,已折叠的分区短暂显示为展开状态的问题
- [VSCode] 修复了 Claude 已继续执行其他操作后,“专注视图”仍将某个工具调用显示为正在运行的问题,例如问题正在等待你的回答时
- [VSCode] 修复了未聚焦 Claude 标签页的会话 ID 被更正后,会话列表中的活动行高亮状态未及时更新的问题
- [VSCode] 修复了当 Claude 标签页处于焦点时,通过 Cmd/Ctrl+Shift+T 重新打开或通过深层链接打开的 Claude 标签页被放置在 Claude 编辑器组之外的问题
- [VSCode] 修复了会话标签页中的“添加到组”操作会将从 Claude Code 网页版打开的会话放入两个组的问题;现在会移动会话列表中显示的条目
- [VSCode] 修复了组织已禁用的模型仍会显示在模型选择器中,直到窗口重新加载两次才消失的问题
- [VSCode] 修复了 VS Code 重新加载标签页视图后,从会话列表打开的标签页会跳回该会话,以及从 Web 会话打开的标签页会重新开始传送或保持空白的问题
- [VSCode] 修复了在窗口重新加载后立即提问,或设置文件存在错误时,早期会话中的 `/btw` 旁支问题历史记录被覆盖的问题
- [VSCode] 修复了使用 Claude.ai 或 Console 账户登录时,Claude 面板重新加载后待处理问题卡片不再出现的问题
- [VSCode] 修复了某个面板从设置文件中读取到第三方提供商后,Claude.ai 专属功能仍显示在同一窗口的其他 Claude 面板中的问题
- [VSCode] 修复了启用“禁用登录提示”设置后,当 Claude Code 报告未登录或请求因未登录而失败时仍显示登录页面的问题
- [VSCode] 修复了下一个排队的权限提示保留上一个提示中输入的文本,并接受紧接着的第二次点击的问题
- [VSCode] 修复了在仅显示过会话列表的窗口中,安装插件链接会打开 Claude 侧边栏但不显示安装对话框的问题
- [VSCode] 修复了新窗口中的侧边栏使用情况计量器在打开“账户与使用情况”对话框前一直为空,以及 0% 使用限额未显示在计量器中的问题
- [VSCode] 修复了执行“在此组中开始新会话”后,“新对话”操作导致分组丢失的问题,以及某个会话在侧边栏的未读列表加载前完成时缺少未读圆点的问题
- [VSCode] 修复了编辑器标签页徽标在一轮交互运行期间显示未读,或从会话列表打开的标签页缺少徽标的问题,以及“将会话标签页添加到组”对已归档会话无效的问题
- [VSCode] 修复了“为所有会话启用 Remote Control”,使切换该设置后也会立即应用到其他 VS Code 窗口中已打开的会话
- [VSCode] 修复了会话列表中的“已打开”筛选器无法正确处理从 claude.ai 延续、但其标签页仍记录在 Web 会话下的会话,并为筛选器菜单中的各分区添加了屏幕阅读器标签
- [VSCode] 将模型选择器更改为包含所有模型的单一扁平列表,并将旧版模型名称拼写对应的行保留在列表末尾
## What's changed
- Added an "Organization policy" line to `/status` and `claude doctor` that says why your organization's policy could not be loaded, such as a proxy not passing the endpoint through
- Added `bashOutputMaxChars` and `taskOutputMaxChars` settings to raise how much command and background-task output Claude receives inline before it is saved to a file, up to 128K characters
- Added `--append-subagent-system-prompt-file` to read the subagent system prompt from a file, for prompts too large to pass on the command line
- Added `/skill-doctor` to show which loaded skills go unused and what they cost in context, so you can prune them
- Fixed typed or pasted characters occasionally landing out of order or being dropped during fast input or key repeat
- Fixed `/add-dir <subdirectory>` printing a false "couldn't be resolved" error when the working directory is on a `/net` automount
- Fixed the Bedrock setup wizard hanging when AWS or an AWS credential helper never responds (it now times out with a clear error), and its model checks failing behind a TLS-inspecting proxy
- Fixed cloud sessions discarding a plugin synced from claude.ai when managed settings force-enable it in `enabledPlugins`, then falling back to a marketplace clone that could fail
- Fixed being unable to delete the character immediately before an inline `[Image #N]` chip in the prompt input
- Fixed resuming a session losing hook output and other context around parallel tool calls, which changed the resumed request
- Fixed Remote Control showing a stale permission mode when a phone, browser, or claude.ai app attaches to a terminal session or after the mode changes in the terminal
- Fixed Remote Control sessions showing as still working (stuck spinner and Stop button) after stopping a turn from a connected phone or browser, or after a local slash command like `/clear`
- Fixed SDK and cloud sessions ignoring a Stop or interrupt sent just after the first prompt, before the turn had started; the turn now stops instead of running to completion
- Fixed Remote Control uploading a session pulled with `/teleport` into the connected session, which appeared appended to the original on phone and web
- Fixed Remote Control's inbound event stream failing behind TLS-inspecting corporate proxies on native Windows
- Fixed Remote Control sessions showing the default effort level on claude.ai when the effort comes from settings
- Fixed `gcpAuthRefresh` opening a browser at startup when the Google credential check was slow, even though the credential was still valid
- Fixed claude.ai connectors staying absent for the whole session when the startup connector fetch timed out — the CLI now retries in the background
- Fixed sustained high CPU usage when a background agent could not be resumed and its wake-up was retried in a tight loop
- Fixed feature flags gated to a newer version occasionally applying to an older Claude Code version running on the same machine
- Fixed `/usage` and the VS Code usage panel dropping a model-specific weekly limit row when the usage endpoint is rate limited or when opened right after startup
- Fixed `claude -p --resume <file>` adopting a malformed session ID recorded in the transcript; it now resumes under a fresh session ID instead
- Fixed the terminal progress indicator (iTerm2, Ghostty, ConEmu) showing the session as finished while a background workflow or agent was still running
- Fixed a rare layout glitch where a box could render with the wrong height after its container switched between row and column direction
- Fixed Claude apps gateway client IP when a trusted proxy appends a port to `X-Forwarded-For`; with an access list set, an unreadable entry now gets 403
- Fixed Claude apps gateway telling Claude Desktop to export OpenTelemetry as JSON even when the terminal CLI uses protobuf, so protobuf-only collectors rejected Desktop's data
- Fixed Desktop and web showing a session as busy while it only watches an artifact for updates
- Fixed Claude in Chrome `file_upload` failing with "paths: expected array, received undefined" in local Cowork sessions run from the Claude Desktop app
- Fixed `SendMessage` to an offline Remote Control session on another machine reading as delivered; the result now says delivery is queued until that machine reconnects
- Fixed plugin install hints from CLIs run in background Bash commands: they are now detected, and the raw `<claude-code-hint>` tag no longer leaks into the conversation
- Fixed in-process agent-team teammates re-sending their first-turn tool and skill announcements on the second turn, which changed the request prefix and missed the prompt cache
- Improved the `/model` picker and the VS Code model pill to show a model's name instead of its raw Bedrock, Vertex AI, or LLM gateway ID when Claude Code recognizes it
- Improved startup on Google Vertex AI when `GOOGLE_APPLICATION_CREDENTIALS` is set: API client creation no longer re-runs Google Cloud project discovery or spawns extra `gcloud` processes
- Improved streaming performance: already-rendered blocks are no longer re-checked by layout on each update
- Improved the dangerous-`rm` safety prompt to also catch `rm -rf` on positional parameters and inside double-quoted `sh -c` scripts
- Improved handling when the API sends no response headers: the retry now waits up to `API_TIMEOUT_MS` (10 minutes by default) instead of another 3 minutes, and the messages say what to change
- Changed a Claude apps gateway 403 on the managed settings load (at startup or after `/login`) to say Claude Code may not be enabled for the organization, instead of advising a new sign-in
- Changed machines whose managed settings pin `forceLoginMethod: "gateway"` to ignore a leftover API key or claude.ai login and ask for `/login`; Bedrock, Vertex AI, and Foundry sessions are unaffected
- Changed auto mode to treat a link that packs content into a public diagram renderer's URL as an upload to that site: no longer auto-approved unless you asked for it
- Changed the prompt's word-editing keys to match Bash: Ctrl+W deletes back to whitespace, Alt+F and Alt+D stop at word end, punctuation separates words; `keybindingFlavor` no longer has any effect
- Changed `/context` token counting to use a local estimate when the token-counting API is unavailable, instead of extra small-model requests
- [VSCode] Added a "Build a custom style" walkthrough to the Output styles menu that writes a custom output style file and lists it right away
- [VSCode] Added an Add server form and a Remove action to the MCP servers dialog, so MCP servers can be added and removed without leaving the IDE
- [VSCode] Added a hollow ring in the session list for sessions open in a terminal, another VS Code window, or Claude Desktop, so they no longer look closed
- [VSCode] Added a fold button to permission and question prompts so the conversation behind them can be read without dismissing them; the space beside the prompt now scrolls the conversation
- [VSCode] Added "Archive session" to the session list's right-click menu and gave Unarchive its own icon
- [VSCode] Fixed a session teleported from Claude Code on the web treating a question that was cut off when the cloud session shut down as declined
- [VSCode] Fixed the session tab's Rename box opening empty for a tab restored with the window; it now starts with the current name
- [VSCode] Fixed collapsed sections in the session list panel briefly showing expanded each time the panel loaded
- [VSCode] Fixed Focus view showing a tool call as still running after Claude had moved on, such as while a question waited for your answer
- [VSCode] Fixed the session list's active-row highlight going stale when an unfocused Claude tab's session ID is corrected
- [VSCode] Fixed Cmd/Ctrl+Shift+T reopen and deep-link opens placing the Claude tab outside the Claude editor group when a Claude tab has focus
- [VSCode] Fixed the session tab's "Add to group" putting a session opened from Claude Code on the Web in two groups; it now moves the entry the session list shows
- [VSCode] Fixed the model picker showing models an organization has since disabled until the window was reloaded twice
- [VSCode] Fixed a tab opened from the session list jumping back to that session, and a tab opened from a Web session restarting its teleport or staying empty, after VS Code reloads the tab's view
- [VSCode] Fixed `/btw` side-question history from earlier sessions being overwritten when a question is asked right after a window reload or while a settings file has errors
- [VSCode] Fixed the pending question card not reappearing after the Claude panel reloads when signed in with a Claude.ai or Console account
- [VSCode] Fixed claude.ai-only features staying visible in a window's other Claude panels after one panel picked up a third-party provider from a settings file
- [VSCode] Fixed the sign-in screen appearing despite the Disable Login Prompt setting when Claude Code reports no login or a request fails for lack of one
- [VSCode] Fixed the next queued permission prompt keeping text typed on the previous prompt and accepting an immediate second click
- [VSCode] Fixed install-plugin links opening the Claude sidebar without the install dialog in a window where only the session list had been shown
- [VSCode] Fixed the sidebar usage meter staying empty on a new window until the Account & usage dialog was opened, and a 0% usage limit being left out of the meter
- [VSCode] Fixed "Start new session in this group" losing the group after New conversation, and a missing unread dot for a session that finished before the sidebar's unread list loaded
- [VSCode] Fixed the editor tab badge showing unread during a running turn or missing on a tab opened from the session list, and "Add Session Tab to Group" doing nothing for an archived session
- [VSCode] Fixed "Enable Remote Control for all sessions" so flipping it also applies right away to sessions open in other VS Code windows
- [VSCode] Fixed the session list's Open filter for sessions continued from claude.ai whose tab was still recorded under the web session, and labeled the filter menu's sections for screen readers
- [VSCode] Changed the model picker to one flat list of every model, with rows kept for older model spellings listed last