Adds prompts before writing to shell startup files and build-tool
Claude Code adds prompts before writing to shell startup files and build-tool config files in `acceptEdits` mode to prevent unintended command execution, alongside several bug fixes.
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…
- github.comClaude Code v2.1.160primary