본문 바로가기

Claude Code 2.1.160 — 셸 설정 파일 쓰기 전 확인 프롬프트 추가

Claude Code 2.1.160에서는 보안과 안정성을 강화하는 여러 개선 사항이 추가되었습니다. 셸 시작 파일과 Git 설정 디렉토리, 빌드 도구 설정 파일에 쓰기 전에 사용자 확인 프롬프트를 추가하여 의도하지 않은 명령 실행을 방지했습니다.

글

Claude 공식 릴리스 노트의 새 항목을 AI가 분석·정리한 글입니다. 정확한 내용은 하단 원문에서 확인해 주세요.

🤖 AI 분석 (Claude)

Claude Code 2.1.160에서는 보안과 안정성을 강화하는 여러 개선 사항이 추가되었습니다. 셸 시작 파일과 Git 설정 디렉토리, 빌드 도구 설정 파일에 쓰기 전에 사용자 확인 프롬프트를 추가하여 의도하지 않은 명령 실행을 방지했습니다.

백그라운드 세션 관리, Windows WSL 클립보드 복사, 에디터 응답성 등 여러 버그가 수정되었습니다. 또한 파일 읽기 후 에디트 체크 과정이 개선되어 단일 파일 grep 명령 후 별도 읽기 작업이 불필요해졌습니다.

왜 중요한가

의도하지 않은 명령 실행이나 설정 파일 변조로부터 시스템을 보호하는 보안 장치가 강화되었습니다. 동시에 세션 관리 안정성이 개선되어 사용자가 더 안정적으로 Claude Code를 사용할 수 있게 됩니다.

이전과 다른 점

이전에는 셸 시작 파일이나 빌드 도구 설정 파일에 쓸 때 확인 프롬프트가 없거나 제한적이었으나, 이제 더 넓은 범위의 중요한 설정 파일에 대해 사전 확인을 요청합니다.

⚠️ AI가 원문을 바탕으로 생성한 분석입니다. 사실 확인은 아래 원문에서 해 주세요.

핵심 정리 Claude Code 2.1.160 — 셸 설정 파일 쓰기 전 확인 프롬프트 추가 1 셸 시작 파일 및 Git 설정 쓰기 전 사용자 확인 프롬프트 추가 2 acceptEdits 모드에서 빌드 도구 설정 파일(.npmrc, .yarnrc* 등) 쓰기 전 확인 추가 3 단일 파일 grep/egrep/fgrep 명령 후 별도 읽기 확인 불필요 4 Windows WSL 클립보드 복사 기능 수정 및 백그라운드 세션 복구 기능 개선

변경 내용 (원문)

- 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 변경로그 (원문 보기)

이 글이 도움이 됐나요?

이어서 읽어보세요