正文 · AI 翻译
变更内容
- 新增了 claude agents 标志:`--add-dir`、`--settings`、`--mcp-config`、`--plugin-dir`、`--permission-mode`、`--model`、`--effort` 和 `--dangerously-skip-permissions`,用于配置派发的后台会话
- 快速模式现在默认使用 Opus 4.7(此前为 Opus 4.6)。设置 `CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE=1` 可将快速模式固定为 Opus 4.6
- 包含根级 `SKILL.md` 且没有 `skills/` 子目录的插件,现在会作为一个技能呈现
- `/plugin` 详情面板和 `claude plugin details` 现在会显示插件提供的 LSP 服务器
- `/web-setup` 在替换现有 GitHub App 连接前会发出警告
- 修复了 `MCP_TOOL_TIMEOUT` 未对远程 HTTP 和 SSE MCP 服务器提升每次请求的 fetch 超时时间的问题,此前无论配置值如何,工具调用均被限制在 60 秒
- 修复了后台会话无法识别已有的 git worktree,导致在 EnterWorktree 拒绝创建重复 worktree 时阻塞编辑操作的问题
- 修复了 macOS 休眠/唤醒后后台会话消失及守护进程重连失败的问题——守护进程现在会检测时钟跳变,而非将其视为已过空闲时间
- 修复了二进制文件升级后(例如 `brew upgrade`)守护进程未正常退出,导致派发的智能体在已删除路径上崩溃循环的问题
- 修复了当 Claude-in-Chrome 扩展连接但未共享标签页时,后台智能体崩溃循环的问题
- 修复了在已连接的 claude agents 会话中点击链接的问题——后台工作进程的无头浏览器 shim 在连接状态下不再生效
- 修复了 claude agents 的 `v to open in editor` 使用守护进程的默认编辑器而非你 shell 中的 `$EDITOR`/`$VISUAL` 的问题
- 修复了 claude agents 在 Windows 上使用网络驱动器工作目录时死锁的问题;启动期间 Ctrl+C 现在可以正常使用
- 修复了从 Apple Terminal 或其他仅支持 256 色的终端连接到 claude agents 会话时背景色溢出的问题
- 修复了 `claude --bg --dangerously-skip-permissions` 在休眠/唤醒后不持久生效的问题
- 修复了当第一条消息是链接时,会话标题从 URL 派生的问题
- 修复了远程客户端发送冗余的 `set_model` 请求,向转录中注入重复 `/model` 面包屑的问题
- 修复了使用 `skills: ["./"]` 的插件显示虚假的"路径逃逸插件目录"错误的问题
- 修复了当没有安装元数据时,插件缓存清理会删除当前活动插件版本目录的问题。
- 修复了 `/plugin browse` 面板对新发布的插件显示“0 次安装”的问题。
- 修复了插件安全公告未能列出所有覆盖默认文件夹的 `plugin.json` 键的问题。
- 改进了响应式压缩:首次摘要尝试现在会从原始请求的溢出量中获取初始值,从而避免一次浪费的、接近全上下文的重复尝试。
- 改进了钩子配置错误提示:为 SessionStart/Setup/SubagentStart 配置提示词类型或智能体类型的钩子时,现在会显示一条清晰的错误提示“请改用命令类型的钩子”。
- 从使用政策拒绝消息中移除了过时的 `/model claude-sonnet-4-20250514` 建议。
What's changed
- Added new
claude agentsflags:--add-dir,--settings,--mcp-config,--plugin-dir,--permission-mode,--model,--effort, and--dangerously-skip-permissionsto configure dispatched background sessions - Fast mode now uses Opus 4.7 by default (previously Opus 4.6). Set
CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE=1to pin fast mode to Opus 4.6 - Plugins with a root-level
SKILL.mdand noskills/subdirectory are now surfaced as a skill - The
/plugindetails pane andclaude plugin detailsnow show LSP servers a plugin provides /web-setupwarns before replacing an existing GitHub App connection- Fixed
MCP_TOOL_TIMEOUTnot raising the per-request fetch timeout for remote HTTP and SSE MCP servers, which capped tool calls at 60 seconds regardless of the configured value - Fixed background sessions not recognizing pre-existing git worktrees, blocking Edit while EnterWorktree refused to create a duplicate
- Fixed background sessions disappearing and daemon reconnect failing after macOS sleep/wake — the daemon now detects clock jumps instead of treating them as elapsed idle time
- Fixed daemon not exiting cleanly after the binary is upgraded (e.g.
brew upgrade), causing dispatched agents to crash-loop on the deleted path - Fixed background agents crash-looping when the Claude-in-Chrome extension is connected without a shared tab
- Fixed clicking links in an attached
claude agentssession — the background worker's headless browser shim no longer applies while attached - Fixed
claude agents"v to open in editor" using the daemon's default editor instead of your shell's$EDITOR/$VISUAL - Fixed
claude agentsdeadlocking on Windows with network-drive working directories; Ctrl+C now works during startup - Fixed background-color bleed when attaching to a
claude agentssession from Apple Terminal or other 256-color-only terminals - Fixed
claude --bg --dangerously-skip-permissionsnot persisting across retire/wake - Fixed session titles being derived from the URL when the first message is a link
- Fixed redundant
set_modelrequests from remote clients injecting duplicate/modelbreadcrumbs into the transcript - Fixed plugins using
skills: ["./"]showing a false "path escapes plugin directory" error - Fixed plugin cache cleanup deleting the active plugin version directory when no installation metadata is present
- Fixed
/pluginbrowse pane showing "0 installs" for newly published plugins - Fixed plugin advisories not naming every
plugin.jsonkey that shadows a default folder - Improved reactive compaction: the first summarize attempt now seeds from the original request's overflow size, avoiding a wasted near-full-context retry
- Improved hook configuration error: configuring a prompt- or agent-type hook for
SessionStart/Setup/SubagentStartnow shows a clear "use a command-type hook instead" error - Removed stale
/model claude-sonnet-4-20250514suggestion from Usage Policy refusal messages