正文 · AI 翻译
变更内容
- 新增了用于确定性多智能体编排的 Workflow 工具。该功能默认关闭——设置 `CLAUDE_CODE_WORKFLOWS=1` 即可启用。
- 固定后台会话(在 claude 智能体中按 Ctrl+T)现在在空闲时保持存活,会在原地重启以应用 Claude Code 更新,并且仅在内存压力下且非固定会话被清除后才被释放。
- 将 `/simplify` 重命名为 `/code-review`。现在它会在选定的努力级别下报告正确性错误(例如 `/code-review high`);添加 `--comment` 参数可将发现结果以内联 GitHub PR 评论形式发布。原有的清理与修复行为已被移除。
- 强化了 REPL 和 Workflow 工具的沙箱,防止原型污染和基于 thenable 的逃逸。
- 改进了自动更新器:重试临时性网络故障,在失败时报告具体的错误类别和操作系统错误码,并在更新失败时显示当前版本。
- 改进了大文件编辑的差异渲染性能。
- 提示词历史记录不再记录连续的重复条目——用上箭头调出提示词并再次提交不会新增副本。
- 修复了企业登录限制(`forceLoginOrgUUID` 和 `forceLoginMethod` 托管设置)未对第三方提供商和 API 密钥会话生效的问题。
- 修复了 `!` 命令输出中 `&` 显示为 `&` 的问题,该问题导致在无头机器上从 `gcloud auth login` 等命令复制粘贴 URL 时出错。
- 修复了未知斜杠命令在无头/SDK 模式下静默无响应的问题——现在会显示错误信息。
- 修复了 `/help` 在非全屏模式下于小尺寸终端上渲染出损坏的标签页标题且每页仅显示一条命令的问题。
- 修复了 shell 快照丢弃名称以单下划线开头的用户函数的问题,该问题导致引用这些函数的别名失效。
- 修复了在工具中声明多个 `Agent(...)` 类型的插件智能体时,frontmatter 仅保留最后一个条目而丢弃其余条目的问题。
- 修复了类似 `PowerShell(git push*)` 的钩子条件从未匹配的问题——只有 `PowerShell(*)` 能正常工作。
- 修复了 PowerShell 工具丢弃依赖默认格式化程序的命令输出的问题。
- 修复了在 Windows 上,对 PowerShell 脚本调用选择“是,并且不再询问”后,写入的规则在后续运行时实际无法匹配的问题。
- 修复了当通过 winget 或 Microsoft Store 安装 pwsh 时,PowerShell 工具在 Windows 上因退出代码 1 而失败的问题。
- 修复了 /effort 打开时滑块处于错误级别的问题——现在它会从你当前的 effort 级别开始。
- 修复了 MCP 服务器分页时,第 1 页之后的资源、模板和提示词被丢弃的问题。
- 修复了在 Windows Terminal 上,Claude 流式输出时,附加的后台会话出现全屏闪烁的问题。
- 修复了:在 Windows 上,移除后台任务工作树时,不再沿着 NTFS 交接点进入主仓库。
- 修复了 /background 拒绝仅输入了技能或自定义斜杠命令的会话的问题。
- 修复了自动模式在用户或技能明确依赖 AskUserQuestion 时抑制该功能的问题;自动模式分类器现在会将用户的回答视为意图信号。
- 修复了 /theme “新建自定义主题”和颜色编辑器对话框无法响应 Esc 键的问题。
- 修复了通过 Agent SDK 运行时,在流式会话结束时出现未捕获异常的问题。
- 修复了在 Windows 上等待滚动稳定时出现的罕见卡死问题。
- 修复了在 Windows 上,当后台会话结果包含宽字符(CJK)时,智能体视图列表中出现陈旧和重复行的问题。
- 修复了粘贴的文本以不可读的 [Pasted text #N] 占位符而非实际内容传递给智能体的问题。
- 修复了当插件的清单中列出的路径与其默认目录重叠时,claude 插件详情和 /plugin 中的插件组件计数被加倍的问题。
- 修复了后台会话对已授予“不再询问”权限的工具重新请求权限的问题。
- 修复了 GNOME Terminal 中右键和中键粘贴无法插入文本的问题。
- 修复了 CLAUDE_CODE_SUBAGENT_MODEL 未应用于由智能体团队生成的队友进程的问题。
- 修复了斜杠命令后跟制表符或换行符被视为未知命令的问题。
- 修复了 /plugin、/status、/mobile、/sandbox 和 /permissions 菜单中的若干间距和布局错位问题。
- 修复了被裁剪的图像导致模型反复重新读取已不存在媒体的问题。
What's changed
- Added the
Workflowtool for deterministic multi-agent orchestration. It is off by default — setCLAUDE_CODE_WORKFLOWS=1to enable - Pinned background sessions (
Ctrl+Tinclaude agents) now stay alive when idle, are restarted in place to apply Claude Code updates, and are shed under memory pressure only after non-pinned sessions - Renamed
/simplifyto/code-review. It now reports correctness bugs at a chosen effort level (e.g.,/code-review high); pass--commentto post findings as inline GitHub PR comments. The old cleanup-and-fix behavior has been removed - Hardened REPL and Workflow tool sandboxes against prototype-pollution and thenable-based escapes
- Improved auto-updater: retries transient network failures, reports specific error categories and OS error codes on failure, and shows the current version when an update fails
- Improved diff rendering performance for large file edits
- Prompt history no longer records consecutive duplicate entries — recalling a prompt with arrow-up and submitting it again won't add another copy
- Fixed enterprise login restrictions (
forceLoginOrgUUIDandforceLoginMethodmanaged-settings) not being enforced against third-party-provider and API-key sessions - Fixed
&in!command output displaying as&, which broke copy-pasting URLs from commands likegcloud auth loginon headless machines - Fixed unknown slash commands silently doing nothing in headless/SDK mode — they now show an error message
- Fixed
/helprendering a broken tab header and showing only one command per page on small terminals when not in fullscreen mode - Fixed shell snapshot dropping user functions whose names start with a single underscore, which broke aliases referencing them
- Fixed plugin agents that declare multiple
Agent(...)types intools:frontmatter dropping all but the last entry - Fixed hook
ifconditions likePowerShell(git push*)never matching — onlyPowerShell(*)worked - Fixed PowerShell tool dropping output for commands that rely on the default formatter
- Fixed: on Windows, "Yes, and don't ask again" for a PowerShell script invocation now writes a rule that actually matches on subsequent runs
- Fixed PowerShell tool failing on Windows with exit code 1 when
pwshis installed via winget or the Microsoft Store - Fixed
/effortopening with the slider on the wrong level — it now starts at your current effort - Fixed paginating MCP servers dropping resources, templates, and prompts past page 1
- Fixed full-screen strobing in attached background sessions on Windows Terminal while Claude is streaming
- Fixed: on Windows, removing a background-job worktree no longer follows NTFS junctions into the main repo
- Fixed
/backgroundrefusing sessions whose only typed input was a skill or custom slash command - Fixed auto mode suppressing
AskUserQuestionwhen the user or a skill explicitly relies on it; the auto-mode classifier now sees the user's answers as intent signal - Fixed
/theme"New custom theme" and color editor dialogs not responding to Esc - Fixed an uncaught exception at the end of streaming sessions when running via the Agent SDK
- Fixed a rare hang when waiting for scroll to settle on Windows
- Fixed stale and doubled rows in the agent view list on Windows when background session results contain wide (CJK) characters
- Fixed pasted text being delivered to agents as an unreadable
[Pasted text #N]placeholder instead of the actual content - Fixed plugin component counts in
claude plugin detailsand/pluginbeing doubled when a plugin's manifest listed paths overlapping its default directories - Fixed backgrounded sessions re-prompting for tool permissions you already granted with "don't ask again"
- Fixed GNOME Terminal right-click and middle-click paste not inserting text
- Fixed
CLAUDE_CODE_SUBAGENT_MODELnot applying to teammate processes spawned by agent teams - Fixed slash commands followed by a tab or newline being treated as an unknown command
- Fixed several spacing and layout glitches in the
/plugin,/status,/mobile,/sandbox, and/permissionsmenus - Fixed stripped images prompting the model to repeatedly re-read media that was no longer present