跳到主内容
@wquguru
精选72Claude Code(GitHub Releases)AI 编程与模型

Claude Code v2.1.246:新增 Bash 通配符警告、Auto 模式标签页

v2.1.246

原文
发到 X

What's changed

有什么变化

  • Added a startup warning for Bash allow rules with a wildcard before the subcommand (e.g. Bash(git * main)), since they also match options inserted before the subcommand
  • Added an Auto mode tab to /permissions for viewing and editing auto mode classifier rules
  • Added the turn's completion time to the end-of-turn duration line, e.g. ✻ Sautéed for 23s · done 6:05 PM
  • Fixed fullscreen mode showing a blank transcript after resizing the terminal and jumping to the bottom until the next keypress
  • Fixed a severe transcript slowdown when a diff contained a very long single line (e.g. a base64 string); such lines now render truncated with a marker
  • Fixed erratic fullscreen scrolling when positioned at an earlier message, including jump-to-bottom getting stuck mid-transcript
  • Fixed background sessions failing to open after 45 seconds when Claude Code's starting directory had been deleted, the machine had slept, or the host is slow to start processes
  • Fixed background sessions failing to open with "Couldn't start the background service … EACCES" when another Claude Code process was re-installing the npm package at that moment
  • Fixed markdown rendering being disabled for a whole message when its first 500 characters contained no markdown, and for +/N) lists and setext headings
  • Fixed MCP tool calls interrupted by an incoming message in headless/remote sessions being reported to the model as "completed with no output" instead of an explicit interrupted error
  • Fixed MCP tool arguments being sent as JSON strings when the parameter's schema is empty ({}), instead of their real type
  • Fixed a command interrupted mid-run showing as "Ran 1 shell command" with no sign it was cut
  • Fixed pressing ← or running /background during a dynamic workflow restarting its finished subagents; it now asks first and says how many subagents would restart
  • Fixed opening a just-started session in claude agents while its worker was still booting (common on Windows) stopping it with "was stopped while the respawn was in flight"
  • Fixed claude agents listing a backgrounded named session twice; backgrounding the same conversation again now numbers the new row (e.g. my-session (2))
  • Fixed the background retention sweep removing git worktrees under .claude/worktrees/ that you created yourself when an old background-session record pointed at them
  • Fixed auto mode tool calls being denied as "temporarily unavailable" on very large sessions by scaling the safety-check deadline with prompt size
  • Fixed the plugin cache creating duplicate SHA-named directories for the same plugin
  • Fixed plugin skills whose frontmatter name already includes the <plugin>: prefix showing it doubled in the slash menu (e.g. /plugin:plugin:skill)
  • Fixed claude plugin update failing for an installed plugin given its bare name (only the fully-qualified name worked)
  • Fixed plugin installation failing when plugin.json was saved with a UTF-8 byte-order mark (BOM)
  • Fixed /reload-plugins reporting 0 skills for plugins that define skills under skills/*/SKILL.md
  • Fixed hook error messages showing a literal ${CLAUDE_PLUGIN_ROOT} instead of the resolved plugin path
  • Fixed /rename replacing the theme's prompt border color (including a custom theme's promptBorder) with the default cyan; the border now keeps your theme's color unless you pick one with /color
  • Fixed custom theme diff colors (diffAdded/diffRemoved and their dimmed variants) being ignored in diffs and the /theme preview
  • Fixed a keybindings.json binding with an unknown action name silently deadening that key; it is now skipped so the default binding keeps working, and a warning is logged under --debug
  • Fixed /stats activity heatmap showing each day's activity one cell off (Sunday's count under Monday) in timezones east of UTC
  • Fixed /fork from an already-forked or backgrounded session starting the new session with an empty conversation
  • Fixed prompts beginning with /-- (e.g. Lean doc comments) being rejected as an unknown slash command instead of being sent to Claude
  • Fixed the @ file picker staying open after the typed text stopped matching a real path
  • Fixed the status line's cost and duration resetting to zero after navigating to the agents view and back
  • Fixed fullscreen mode moving keyboard focus onto the control under the pointer when you clicked the terminal window only to bring it back into focus
  • Fixed path completion failing when the completion token or working directory contained a null byte
  • Windows/macOS: Fixed headless sessions not cleaning up stale entries in ~/.claude/sessions left by sessions that exited uncleanly
  • Fixed the UI stopping with a render error on the first tool call when a third-party Anthropic-compatible endpoint (ANTHROPIC_BASE_URL) streams a tool_use block without an id
  • Fixed the Write tool reporting "Out of memory" or freezing for a long time after overwriting a very large existing file, even though the file had been written
  • Fixed claude plugin install <name> exiting silently (or hanging in a terminal) instead of reporting an error when ~/.claude/plugins/known_marketplaces.json is empty or corrupted
  • Fixed resumed sessions failing every turn with a 400 when the saved history contains tool blocks the Anthropic API does not accept (typically written by a third-party API proxy)
  • Fixed curl -fsSL https://claude.ai/install.sh | bash failing with "Raw mode is not supported" for some Team/Enterprise users with server-managed settings
  • Fixed sessions that ended in plan mode resuming outside plan mode in the VS Code extension, and in claude -p --continue/--resume with a permission prompt tool, when no permission mode was set
  • Fixed the Notification hook not firing while the sandbox "Network request outside of sandbox" permission prompt is waiting
  • Fixed Bash permission checks to always require approval for malformed commands with a dangling && or || operator
  • Fixed --strict-mcp-config sessions prompting to approve .mcp.json servers they would never load, which left background sessions waiting at startup
  • Fixed telemetry and metrics requests to Anthropic carrying the API key configured for a third-party gateway (ANTHROPIC_BASE_URL); a credential is now only sent to its own host
  • Fixed a visible API error on the first prompt after idle when apiKeyHelper returns short-lived JWTs: an expired cached token is now refreshed before sending, and 401/403 auth errors retry quietly
  • Fixed memory growing with session length in the fullscreen and Ctrl+O transcript views: each rendered message row no longer retains a full copy of the transcript-wide tool lookups
  • Fixed /ultrareview runs and cloud sessions launched at the same time from one repository (e.g. from several worktrees) sometimes starting with another launch's uncommitted changes
  • Fixed the task progress count (e.g. 3/5) shown for background cloud sessions such as /autofix-pr occasionally missing a task
  • Fixed Remote Control sessions keeping their placeholder name in claude.ai and the Claude app until the second prompt; the auto-generated title now appears after the first prompt
  • Fixed MCP tools marked requiresUserInteraction still offering "Yes, and don't ask again" in their permission prompt; the option wrote an allow rule the tool then ignored
  • Fixed the self-hosted runner ending its live sessions or exiting when a work-poll response is malformed (e.g. an intercepting proxy's HTML page); it now retries the poll
  • Improved /cd: the new directory's project settings, hooks, .mcp.json servers (behind the usual approval prompt), skills, and agents now take effect right after the move instead of on --resume
  • Improved Bash tool latency on bash shells by replaying snapshot functions without a base64 subshell per function
  • 为 Bash 允许规则添加了启动警告,当子命令前有通配符(例如 Bash(git * main))时,因为这些规则也会匹配子命令前插入的选项。
  • 在 /permissions 中添加了“自动模式”选项卡,用于查看和编辑自动模式分类器规则。
  • 在回合结束的时长行中添加了回合完成时间,例如 ✻ Sautéed for 23s · done 6:05 PM。
  • 修复了调整终端大小后全屏模式显示空白转录,并跳到底部直到下一次按键的问题。
  • 修复了当 diff 包含非常长的单行(例如 base64 字符串)时,转录严重变慢的问题;现在这些行会截断显示并带有标记。
  • 修复了位于较早消息时全屏滚动不稳定的问题,包括跳到底部卡在转录中间的情况。
  • 修复了当 Claude Code 的起始目录被删除、机器休眠或主机启动进程缓慢时,后台会话在 45 秒后无法打开的问题。
  • 修复了当另一个 Claude Code 进程正在重新安装 npm 包时,后台会话无法打开并显示“无法启动后台服务 … EACCES”的问题。
  • 修复了当消息的前 500 个字符不包含 markdown 时,整个消息的 markdown 渲染被禁用的问题,以及 +/N) 列表和 setext 标题的问题。
  • 修复了在无头/远程会话中,MCP 工具调用被传入消息中断时,被报告为“已完成但无输出”而不是明确的“中断错误”的问题。
  • 修复了当参数的模式为空({})时,MCP 工具参数被作为 JSON 字符串发送,而不是其真实类型的问题。
  • 修复了命令在运行中被中断时显示为“已运行 1 个 shell 命令”且没有迹象表明被截断的问题。
  • 修复了在动态工作流中按 ← 或运行 /background 会重启已完成的子代理的问题;现在会先询问并说明将重启多少个子代理。
  • 修复了在 claude agents 中打开刚启动的会话时,如果其工作进程仍在启动(常见于 Windows),会以“在重新生成过程中被停止”而停止的问题。
  • 修复了 claude agents 将后台命名的会话列出两次的问题;现在再次将同一对话后台化会为新行编号(例如 my-session (2))。
  • 修复了后台保留清理会删除您自己在 .claude/worktrees/ 下创建的 git 工作树的问题,当旧的后台会话记录指向它们时。
  • 修复了在非常大的会话中,自动模式工具调用被拒绝为“暂时不可用”的问题,通过根据提示大小调整安全检查截止时间来解决。
  • 修复了插件缓存为同一插件创建重复的SHA命名目录的问题
  • 修复了插件技能的前置元数据名称已包含<plugin>:前缀时,在斜杠菜单中显示重复的问题(例如 /plugin:plugin:skill)
  • 修复了使用裸名称更新已安装的claude插件失败的问题(只有全限定名称有效)
  • 修复了当plugin.json以UTF-8字节顺序标记(BOM)保存时插件安装失败的问题
  • 修复了/reload-plugins对于在skills/*/SKILL.md下定义技能的插件报告0个技能的问题
  • 修复了钩子错误消息显示字面量${CLAUDE_PLUGIN_ROOT}而不是解析后的插件路径的问题
  • 修复了/rename将主题的提示边框颜色(包括自定义主题的promptBorder)替换为默认青色的问题;现在边框保持主题颜色,除非你用/color选择其他颜色
  • 修复了自定义主题的差异颜色(diffAdded/diffRemoved及其暗色变体)在差异和/theme预览中被忽略的问题
  • 修复了keybindings.json中未知操作名称的绑定静默禁用该键的问题;现在会跳过该绑定,使默认绑定继续工作,并在--debug下记录警告
  • 修复了/stats活动热力图在UTC以东时区显示每天活动偏移一格的问题(周日计数显示在周一下)
  • 修复了从已分叉或后台会话执行/fork时,新会话以空对话开始的问题
  • 修复了以/--开头的提示(例如Lean文档注释)被拒绝为未知斜杠命令而不是发送给Claude的问题
  • 修复了@文件选择器在输入文本不再匹配真实路径后仍保持打开的问题
  • 修复了导航到代理视图再返回后,状态行的成本和持续时间重置为零的问题
  • 修复了全屏模式下,点击终端窗口仅为了重新聚焦时,键盘焦点移动到指针下的控件上的问题
  • 修复了当补全令牌或工作目录包含空字节时路径补全失败的问题
  • Windows/macOS:修复了无头会话未清理~/.claude/sessions中由异常退出会话留下的陈旧条目的问题
  • 修复了当第三方Anthropic兼容端点(ANTHROPIC_BASE_URL)流式传输没有id的tool_use块时,UI在第一次工具调用时停止并显示渲染错误的问题
  • 修复了Write工具在覆盖非常大的现有文件后报告“内存不足”或长时间冻结的问题,即使文件已写入
  • 修复了当 ~/.claude/plugins/known_marketplaces.json 为空或损坏时,claude 插件安装 <name> 命令静默退出(或在终端中挂起)而不报告错误的问题
  • 修复了当保存的历史记录包含 Anthropic API 不接受的工具块(通常由第三方 API 代理写入)时,恢复的会话每轮都会因 400 错误而失败的问题
  • 修复了对于某些使用服务器管理设置的团队/企业用户,curl -fsSL https://claude.ai/install.sh | bash 因“不支持原始模式”而失败的问题
  • 修复了在 VS Code 扩展中,以及在没有设置权限模式时使用 claude -p --continue/--resume 并带有权限提示工具的情况下,以计划模式结束的会话在恢复时退出计划模式的问题
  • 修复了沙箱“网络请求超出沙箱”权限提示等待期间,通知钩子不触发的问题
  • 修复了 Bash 权限检查,对于带有悬空 && 或 || 运算符的格式错误命令,现在始终要求批准
  • 修复了 --strict-mcp-config 会话提示批准它们永远不会加载的 .mcp.json 服务器,导致后台会话在启动时等待的问题
  • 修复了向 Anthropic 发送遥测和指标请求时携带为第三方网关(ANTHROPIC_BASE_URL)配置的 API 密钥的问题;现在凭据仅发送到其自己的主机
  • 修复了当 apiKeyHelper 返回短期 JWT 时,空闲后的第一个提示出现可见 API 错误的问题;现在在发送前会刷新过期的缓存令牌,并且 401/403 认证错误会静默重试
  • 修复了全屏和 Ctrl+O 转录视图中内存随会话长度增长的问题:每个渲染的消息行不再保留转录范围工具查找的完整副本
  • 修复了从同一仓库(例如从多个工作树)同时启动的 /ultrareview 运行和云会话有时会以另一次启动的未提交更改开始的问题
  • 修复了后台云会话(如 /autofix-pr)显示的任务进度计数(例如 3/5)偶尔缺少任务的问题
  • 修复了远程控制会话在 claude.ai 和 Claude 应用中直到第二次提示才显示占位名称的问题;现在自动生成的标题在第一次提示后出现
  • 修复了标记为 requiresUserInteraction 的 MCP 工具在其权限提示中仍然提供“是,并且不再询问”选项的问题;该选项写入的允许规则随后被工具忽略
  • 修复了自托管运行器在工作轮询响应格式错误(例如拦截代理的 HTML 页面)时结束其活动会话或退出的问题;现在它会重试轮询
  • 改进 /cd:新目录的项目设置、钩子、.mcp.json 服务器(在常规批准提示后)、技能和代理现在在移动后立即生效,而无需等到 --resume
  • 改进 Bash 工具在 bash shell 上的延迟,通过重放快照函数而无需为每个函数使用 base64 子 shell

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

另一事件,读法相近