Skip to main content

Claude Code v2.1.160: Enhanced Security and Stability Improvements

Claude Code v2.1.160 introduces important security prompts for shell and config files, plus numerous bug fixes for Windows, WSL, and background sessions.

June 2, 2026 10 min read By ClaudeWorld

The Claude Code team has released v2.1.160, a significant update focused on security enhancements and stability improvements. This release addresses critical security concerns around file modifications while delivering numerous bug fixes that improve the overall user experience.

What’s New

Enhanced Security Features

Shell Startup File Protection: Claude Code now prompts before writing to shell startup files like .zshenv, .zlogin, .bash_login, and ~/.config/git/. This prevents unintended command execution that could compromise your system security.

Build Tool Configuration Safety: The acceptEdits mode has been enhanced with prompts before modifying build-tool config files that grant code execution privileges, including .npmrc, .yarnrc*, bunfig.toml, .bazelrc, .pre-commit-config.yaml, and .devcontainer/ files.

Improved Workflow Efficiency

Streamlined File Editing: The edit workflow is now more efficient - you no longer need a separate Read command after viewing a file with grep. Single-file grep/egrep/fgrep commands now satisfy the read-before-edit requirement.

Windows and WSL Improvements

Fixed Clipboard Issues: Copy-on-select now properly writes to the Windows clipboard on WSL using PowerShell interop instead of OSC 52, resolving compatibility issues with terminals like MobaXterm.

Background Session Stability: Multiple fixes address session restoration issues, including chat history preservation and preventing re-execution of original prompts when resuming sessions.

Performance and UI Enhancements

Responsive Interface: Fixed unresponsive input issues on Windows under heavy CPU load, and resolved auto-updater performance problems in the agents list.

Better Terminal Compatibility: Improved handling of terminal sync-output markers and fixed rendering artifacts in various terminal environments including Apple Terminal and tmux.

International Support: Enhanced CJK IME composition display and fixed voice mode connectivity issues with non-ASCII characters in project directories.

How to Update

To update to Claude Code v2.1.160:

  1. Use your package manager’s update command
  2. Or download the latest version from the official repository
  3. Restart any active Claude Code sessions to ensure all fixes take effect