Claude Code v2.1.239 发布:成本估算纳入美国推理溢价,新增全屏渲染器支持
英文标题:Claude Code v2.1.239
Claude Code v2.1.239 更新了数据驻留工作区的成本估算逻辑,`/cost`、状态栏和 `--max-budget-usd` 现会计入 1.1 倍的仅美国推理溢价。此次还为 Bedrock、Vertex、Foundry 等此前不支持的环境提供一次性全屏渲染器启用选项,新安装默认以全屏模式启动。更新增加了 Python `anthropic` 0.x 至 1.x 的迁移命令,并修复了代理、Bedrock 流式调用、云端会话、MCP、IDE 终端、沙箱及跨会话通信等大量问题。对开发者而言,该版本提升了多云部署、企业代理环境和远程协作场景下的稳定性、成本透明度与可用性。
打开原文相关 12 · 机会 3
1.3 KB
54.2 KB
中文
更新内容
- 成本估算(
/cost、状态栏、--max-budget-usd)现已将数据驻留工作区的 1.1 倍仅美国推理溢价计入其中 - 在 Bedrock、Vertex、Foundry 及其他此前被排除的环境中,新增一次性全屏渲染器启用选项;这些环境中的新安装现默认以全屏模式启动
- 新增
/claude-api upgrade,用于将 Python 项目从anthropic0.x 迁移至 1.x;同时更新了该技能的 Python 1.x 参考文档(超时设置使用anthropic.Timeout,而非httpx.Timeout) - 云端会话:从 claude.ai 同步的插件现显示为
name@synced,可通过claude plugin enable/disable <name>@synced使用,并且绝不会覆盖你已安装的同名插件 - Alpine/musl 构建:原生图片粘贴、剪贴板和音频采集附加组件现可加载(使用 musl 构建的二进制文件,而非被运行时拒绝的 glibc 版本)
- 当你的月度消费额度已用尽时,使用额度限制提示现也会说明会话或每周额度何时重置
- 修复了代理剥离响应
Content-Type标头时 Bedrock 流式调用的问题;此前该问题会通过以非流式方式重新运行每一轮调用,导致计费 API 调用次数在无提示的情况下翻倍 - 修复了在使用带有 SSO 配置文件和
awsAuthRefresh的 Bedrock 时,Claude Code 通过 HTTPS 代理启动会卡住的问题;凭证预检查现会遵循HTTPS_PROXY - 修复了从已不存在的目录启动 Claude Code 时输出原始崩溃转储的问题;现在会显示清晰的提示信息
- 修复了连接 Claude Code 插件时,JetBrains IDE 终端中的 Edit 和 Write 调用会暂停约 5 秒的问题
- 修复了在提示词排队时按 Esc 的竞态问题;此前可能导致下一轮提前结束、Claude 仍在工作时会话却处于空闲状态,并让后续重新提交重复执行操作
- 修复了 WebFetch 将过期页面内容在内存中保留整个会话的问题;预期保留时间应为 15 分钟
- 修复了云端会话(网页端 Claude Code、桌面和移动应用)在空闲工作器重启后恢复为计划外模式的问题
- 修复了全屏模式下高于终端高度的 MCP 信息征询表单被截断的问题:表单现可适应窗口,隐藏字段可通过滚动访问,且“接受/拒绝”始终可见
- 修复了云端会话或通过 SDK
setMcpServers()在会话中途重新连接时,远程 MCP 服务器在短暂出现 5xx 错误后始终保持失败状态的问题 - 修复了重命名后又写入超过约 64 KB 对话内容时,自定义会话标题会从
/resume中消失的问题 - 修复了
claude -c/恢复会拾取其他目录会话的问题;此前目录路径若仅在_、-或.等字符上存在差异,便可能触发该问题 - 修复了
/resume和 agents 视图会在仅触及会话文件或只是重新打开会话时,将其显示为最近修改并重新排序的问题 - 修复了全项目模式下
/resume提示你cd到已删除目录(例如已移除的 worktree)的问题;这类会话现会在当前目录恢复 - 修复了
dark-ansi主题在全屏模式下渲染展开的工具结果时,文字颜色与背景颜色相同的问题 - 修复了全屏渲染器提示在无法回答时每次启动都会重新出现的问题;现将在显示三次后停止出现
- 修复了目标位于被 gitignore 忽略的目录中时,以
**/开头的.worktreeinclude模式会在无提示情况下不匹配任何内容的问题 - 修复了
.md文件以 UTF-8 BOM 开头的 agents、skills 和 commands 会被无提示忽略的问题 - 修复了
/insights在部分模型上会在响应中原样回显<message>标签的问题 - 修复了 marketplace
metadata.pluginRoot不生效的问题:裸插件源名称现会按文档描述在该路径下解析 - 修复了基于浏览器的终端中,鼠标报告被拆分到多次写入时,鼠标移动会向提示词插入类似
"35;150;7M"文本的问题 - 修复了自定义主题对 effort/ultracode 状态徽章颜色的覆盖设置被忽略的问题
- 修复了 OpenTelemetry 跟踪碎片化问题:由
PreToolUsehook 延迟的工具执行现会在原始轮次的跟踪中恢复,而不会启动新的跟踪 - 修复了 agents 视图中的 vim 模式:Esc 现会切换到 NORMAL 模式并保留你的文本,而非清空提示词
- 修复了
selection:copy键绑定会无提示丢弃通过 Shift+方向键扩展的文本选择内容的问题 - 修复了通过
voice.enabled设置启用语音听写后,/voice启动提示仍会显示的问题 - 修复了 shell 模式(
!)的 Tab 补全会从./script路径中丢弃./的问题;此前会留下 shell 无法运行的命令 - 修复了在全屏模式下,仅为重新获得焦点而点击终端窗口时会确认权限提示或按下按钮的问题
- 修复了全屏模式下斜杠命令面板(如
/config、/model)会遮盖最新消息的问题;对话现会保持固定在面板上方 - 修复了 Claude 仍在响应时打开
/workflows详情对话框会溢出终端、导致其标题在屏幕外丢失的问题 - 修复了 Linux 沙箱将不存在的
.git/config.worktree视为不可读的问题;此前在设置了extensions.worktreeConfig的仓库中,这会导致所有沙箱化 git 命令失效 - 修复了会话工作目录被删除后,hooks 因
"posix_spawn ENOENT"失败的问题;现会改为从项目根目录或主目录运行 - 修复了当模式指定 rules 目录或符号链接本身而非其目标时,
claudeMdExcludes无法排除符号链接的.claude/rules文件的问题 - 修复了当两个 Claude Code 进程共享一个后台任务状态时,会话标题会失控同步至 Remote Control 的问题(2.1.232 回归);标题更新现会去重并受到速率限制
- 修复了标题以
/开头的会话无法通过SendMessage寻址,并会在ListAgents中显示为“(untitled)”的问题 - 修复了当光标位于
[Pasted text #N]占位符内时,Ctrl+W、Ctrl+U、Ctrl+K、Option+Backspace、Option+D 和 vimdf/dt会留下损坏占位符的问题 - 修复了密码式输入框(如登录验证码字段)在通过双击 Esc 清空后,文本仍可在其他位置通过 Ctrl+Y 粘贴回来,或被保存至提示词历史记录的问题
- 修复了 Ctrl+Backspace 在搜索框中删除一个字符而非一个单词的问题
- 修复了被组织策略检查拒绝的请求会在显示拒绝信息前再次发送的问题
- 改进了压缩后的提醒信息,避免将 skill 的原始参数作为新请求再次运行
- 工具使用行中的长文件路径现会从中间截断,以保持单行显示
- 当长时间运行的
SessionStart或Setuphook 执行时,远程会话会持续发送保活消息,避免容器在 hook 执行期间因空闲而被回收 /goal:针对长时间后台工作的重复检查现会逐步延长间隔(30 分钟、随后 1 小时、之后每 2 小时),而非每 30 分钟重复一次/goal:从claude --resume选择器恢复会话时,现会恢复其活跃目标ListAgents现会向会话告知其自身名称(其他对等会话用于向其发送消息的名称);向自己的名称发送SendMessage时,也会明确说明这一点,而不是显示“no agent named …”ListAgents和/list-agents现会列出在线队友(此前仅显示子代理和其他会话,因此可联系的队友看起来像是不存在)keybindingFlavor: "readline"现也会在单词按键行为上匹配 Bash:Alt+F 和 Ctrl/Option+→ 会停在单词末尾,Alt+D 会删除至该位置(Ctrl+Y 可将其粘贴回来),标点符号会分隔单词- 持久重试模式(
CLAUDE_CODE_RETRY_WATCHDOG)现会在组织消费上限和余额不足错误发生时立即失败,而非无限等待额度重置 - Chrome 中的 Claude:
/clear现会关闭会话的 Chrome 标签页组;空标签页组会在/resume时以及 Claude Code 退出时关闭 - 远程会话:从移动端上传的图片现会包含其保存的文件路径,因此 Claude 可以将其复制到自己创建的文件中
- 网页端 Claude Code:来自 Bash 和其他工具、发往非 API 的 anthropic.com 主机(如 www、docs)的请求现会通过会话网络代理,因此会应用你的环境允许访问的域名规则
- Remote Control:当你的账户未启用 Remote Control 时,提供了更清晰的提示信息和
claude doctor文案 - Windows:现已支持跨会话消息通信,因此不同机器上的 Claude Code 会话可如同在 macOS 和 Linux 上一样,通过
SendMessage相互发送消息,并通过ListAgents发现彼此 - [VSCode] 使用额度限制横幅中的“View usage”现与警告文本内联显示,而非浮动在横幅中部
English / 原文
Compare
Sorry, something went wrong.
No results found
What's changed
- Cost estimates (
/cost, status line,--max-budget-usd) now include the 1.1× US-only-inference premium for data-residency workspaces - Added the one-time fullscreen renderer offer on Bedrock, Vertex, Foundry and other previously excluded setups; new installs there now start in fullscreen
- Added
/claude-api upgradeto migrate Python projects fromanthropic0.x to 1.x, and updated the skill's Python reference for 1.x (timeouts useanthropic.Timeout, nothttpx.Timeout) - Cloud sessions: plugins synced from claude.ai now show as
name@synced, work withclaude plugin enable/disable <name>@synced, and never override a same-named plugin you installed - Alpine/musl builds: native image paste, clipboard, and audio-capture add-ons now load (musl-built binaries instead of glibc ones refused by the runtime)
- The usage-limit message shown when your monthly spend limit is already used up now also says when your session or weekly limit resets
- Fixed Bedrock streaming behind proxies that strip the response Content-Type header, which silently doubled billed API calls by re-running every turn non-streaming
- Fixed Claude Code hanging at startup behind an HTTPS proxy when using Bedrock with an SSO profile and
awsAuthRefresh— the credential pre-check now honorsHTTPS_PROXY - Fixed a raw crash dump when starting Claude Code from a directory that no longer exists; it now prints a clear message
- Fixed Edit and Write calls pausing for about 5 seconds in JetBrains IDE terminals when the Claude Code plugin is connected
- Fixed a race where pressing Esc with a prompt queued could let the next turn finish early, leaving the session idle while Claude was still working and letting a later resubmit repeat actions
- Fixed WebFetch retaining expired page content in memory for the whole session instead of the intended 15 minutes
- Fixed cloud sessions (Claude Code on the web, desktop and mobile apps) resuming out of plan mode after an idle worker restart
- Fixed MCP elicitation forms taller than the terminal being clipped in fullscreen mode: the form now fits the window, with hidden fields reachable by scrolling and Accept/Decline always visible
- Fixed remote MCP servers staying failed after a transient 5xx on a mid-session reconnect in cloud sessions or via SDK
setMcpServers() - Fixed custom session titles disappearing from
/resumeafter more than ~64 KB of conversation was written following the rename - Fixed
claude -c/resume picking up sessions from a different directory whose path differed only by characters like_,-, or. - Fixed
/resumeand the agents view showing a session as recently changed (and reordering it) when only its file was touched or it was merely reopened - Fixed
/resumein all-projects mode telling you tocdinto a deleted directory (e.g. a removed worktree); such sessions now resume in the current directory - Fixed the
dark-ansitheme rendering expanded tool results in fullscreen mode with text the same color as the background - Fixed the fullscreen renderer prompt reappearing on every launch when it could never be answered; it now stops after being shown on three launches
- Fixed
.worktreeincludepatterns starting with**/silently matching nothing when the target lived in a gitignored directory - Fixed agents, skills, and commands whose
.mdfile starts with a UTF-8 BOM being silently ignored - Fixed
/insightsechoing literal<message>tags in its response on some models - Fixed marketplace
metadata.pluginRoothaving no effect: bare plugin source names now resolve under it as the docs describe - Fixed mouse movement in browser-based terminals inserting text like
"35;150;7M"into the prompt when a mouse report arrived split across writes - Fixed custom theme overrides for the effort/ultracode status badge colors being ignored
- Fixed OpenTelemetry trace fragmentation: tool executions deferred by a
PreToolUsehook now resume in the original turn's trace instead of starting a new trace - Fixed vim mode in the agent view: Escape now switches to NORMAL mode and keeps your text instead of clearing the prompt
- Fixed the
selection:copykeybinding silently dropping a text selection that had been extended with Shift+Arrow keys - Fixed the
/voicestartup tip still appearing after voice dictation was enabled via thevoice.enabledsetting - Fixed shell-mode (
!) Tab completion dropping the./from a./scriptpath, which left a command the shell couldn't run - Fixed fullscreen mode answering a permission prompt or pressing a button when you clicked the terminal window only to bring it back into focus
- Fixed slash-command panels (e.g.
/config,/model) in fullscreen mode covering the latest messages; the conversation now stays pinned above the panel - Fixed the
/workflowsdetail dialog overflowing the terminal and losing its header off-screen when opened while Claude is still responding - Fixed the Linux sandbox making a nonexistent
.git/config.worktreeunreadable, which broke every sandboxed git command in repos withextensions.worktreeConfigset - Fixed hooks failing with "posix_spawn ENOENT" after the session's working directory was deleted; they now run from the project root or home directory instead
- Fixed
claudeMdExcludesnot excluding a symlinked.claude/rulesfile when the pattern names the rules directory or the symlink rather than its target - Fixed runaway session-title syncing to Remote Control when two Claude Code processes shared one background job's state (2.1.232 regression); title updates are now deduplicated and rate-limited
- Fixed sessions whose title starts with
/being unaddressable bySendMessageand shown as "(untitled)" inListAgents - Fixed Ctrl+W, Ctrl+U, Ctrl+K, Option+Backspace, Option+D and vim
df/dtleaving a broken[Pasted text #N]placeholder when the cursor was inside it - Fixed masked (password-style) inputs such as the login code field letting their text be pasted back with Ctrl+Y elsewhere or saved to prompt history when cleared with double Esc
- Fixed Ctrl+Backspace deleting one character instead of a word in search boxes
- Fixed a request rejected by an organization policy check being re-sent before the rejection was shown
- Improved the reminder shown after compaction so a skill's original arguments are not re-run as a new request
- Long file paths on tool-use rows now truncate in the middle to stay on one line
- Remote sessions keep sending keep-alives while a long
SessionStartorSetuphook runs, so the container is not idle-reaped mid-hook /goal: repeat check-ins on long-running background work now back off (30 min, then 1 h, then every 2 h) instead of repeating every 30 minutes/goal: resuming a session from theclaude --resumepicker now restores its active goalListAgentsnow tells a session its own name (the one peers use to message it), andSendMessageto your own name says so instead of "no agent named …"ListAgentsand/list-agentsnow list your live teammates (previously only subagents and other sessions appeared, so a reachable teammate looked absent)keybindingFlavor: "readline"now also matches Bash for word keys: Alt+F and Ctrl/Option+→ stop at the end of the word, Alt+D deletes to it (Ctrl+Y pastes it back), and punctuation separates words- Persistent retry mode (
CLAUDE_CODE_RETRY_WATCHDOG) now fails immediately on organization spend-limit and out-of-credits errors instead of waiting indefinitely for a reset - Claude in Chrome:
/clearnow closes the session's Chrome tab group, and empty groups are closed on/resumeand when Claude Code exits - Remote sessions: images uploaded from mobile now include their saved file path, so Claude can copy them into files it creates
- Claude Code on the web: requests from Bash and other tools to non-API anthropic.com hosts (e.g. www, docs) now go through the session's network proxy, so your environment's allowed domains apply
- Remote Control: clearer message and
claude doctorwording when Remote Control isn't enabled for your account - Windows: cross-session messaging is now available, so Claude Code sessions across your machines can message each other with
SendMessageand find each other withListAgents, as on macOS and Linux - [VSCode] "View usage" in the usage-limit banner now sits inline with the warning text instead of floating mid-banner
You can’t perform that action at this time.