返回全部动态

Claude Code 2.1.160 发布:增强安全提示并修复多项问题

原标题:2.1.160

Claude Code Changelog一手来源产品发布质量 79

AI 摘要

Claude Code 2.1.160 版本发布,新增了在写入 shell 启动文件和构建工具配置文件前的提示功能,以防止意外命令执行。修复了多个问题,包括 WSL 剪贴板、后台会话恢复、Windows 输入响应等。改进了自动模式分类器延迟和后台会话清理。将动态工作流触发关键词从 'workflow' 改为 'ultracode'。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

- Added a prompt before writing to shell startup files (`.zshenv`, `.zlogin`, `.bash_login`) and `~/.config/git/`, which could otherwise lead to unintended command execution - `acceptEdits` mode now prompts before writing build-tool config files that grant code execution (`.npmrc`, `.yarnrc*`, `bunfig.toml`, `.bazelrc`, `.pre-commit-config.yaml`, `.devcontainer/`, etc.) - Edit no longer requires a separate Read after viewing a file with `grep`: single-file `grep`/`egrep`/`fgrep` commands now sat


发布时间:—
抓取时间:2026-09-07 03:46
来源机构:Anthropic
阅读原文raw.githubusercontent.com