Event ·Official first-hand

Claude Code v2.1.160:修复多项安全提示与WSL剪贴板问题

Anthropic 发布了 Claude Code v2.1.160 更新,主要增强了安全性:在写入 shell 启动文件(如 .zshenv、.bash_login)和 Git 配置前会弹出确认提示,避免意外执行恶意命令。同时,acceptEdits 模式现在会在写入 .npmrc、.yarnrc、bunfig.toml 等构建工具配置文件前提示,这些文件可能授予代码执行权限。此外,修复了多个重要问题,包括 WSL 下复制选择不写入 Windows 剪贴板(改用 PowerShell 互操作替代 OSC 52)、后台会话恢复时丢失聊天历史、Windows 下 CJK 输入法显示位置错误等。性能方面,改进了打开近期不活跃后台会话的速度。

Current read

这次更新对 Claude Code 用户很关键——安全提示能防止意外执行恶意脚本,WSL 剪贴板修复解决了长期痛点,建议所有用户升级。

11 sources58° AI heatLast updated 2026/6/2 02:10:25

Evidence

11 sources
Primary sourceClaude Code: GitHub Releases
View source
Related source 1Julien Chaumond
View source
Related source 7rohanpaul_ai
View source
Related source 9arXiv: Anthropic
View source

Conflict check

Dedup data only shows that these sources discuss the same event, not that they agree. There is no structured supporting or refuting evidence yet, so no conflict is inferred automatically.