claude_code_releases ยท Jun 2, 2026 ยท release
v2.1.160
What's changed 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 satisfy the read-before-edit check Fixed copy-on-select not writing to the Windows clipboard on WSL โ now uses PowerShell interop instead of OSC 52, which terminals like MobaXterm don't support Fixed restoring a completed session from claude agents dropping chat history and re-running the original prompt Fixed background sessions re-attached after overnight retire losing their conversation and re-running the original prompt Fixed claude --bg occasionally failing with "socket missing" when the background daemon was cold-starting on a loaded machine Fixed an issue on Windows where the directory a background session was started in could not be deleted after claude rm until the background daemon exited Fixed background agents that resumed work being shown under Completed in the agents list Fixed claude agents freezing for several seconds when returning to the session list due to the auto-updater re-checking on every exit Fixed Esc, arrow keys, and typing becoming unresponsive on Windows when atta