Claude Code 2.1.160 업데이트에서는 보안과 사용성이 개선되었습니다. 셸 시작 파일(.zshenv, .zlogin, .bash_login)과 Git 설정 폴더에 쓰기 전에 확인 프롬프트를 추가했으며, acceptEdits 모드에서도 코드 실행 권한을 부여하는 빌드 도구 설정 파일(.npmrc, .yarnrc*, bunfig.toml, .bazelrc 등)을 수정하기 전에 사용자 승인을 받도록 강화했습니다.
편집 기능도 개선되어 단일 파일 grep 명령어 실행 후 별도의 읽기 작업 없이 바로 수정할 수 있게 했습니다. WSL 환경에서 복사-선택 기능이 Windows 클립보드에 제대로 저장되도록 수정했으며, 세션 복구 시 채팅 기록이 손실되거나 원래 프롬프트가 재실행되는 문제들을 해결했습니다. 백그라운드 데몬 시작 실패, 세션 디렉토리 삭제 불가, 완료된 에이전트 표시 오류 등도 수정되었고, 세션 목록 반환 시 자동 업데이터 확인으로 인한 응답 지연도 개선되었습니다.
Claude Code 2.1.160
- 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 unres
출처: Claude Code 변경로그 (원문 보기)