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

Claude Code 2.1.160 업데이트에서는 보안과 사용성이 개선되었습니다. 셸 시작 파일(.zshenv, .zlogin, .bash_login)과 Git 설정 폴더에 쓰기 전에 확인 프롬프트를 추가했으며, acceptEdits 모드에서도 코드 실행 권한을 부여하는 빌드 도구 설정 파일(.npmrc, .yarnrc*, bunfig.toml, .baze

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

이어서 읽어보세요

Claude Opus 4.8, 적응형 사고 기능으로 필요할 때만 추론 활성화

Claude Opus 4.8에서 적응형 사고 기능을 활성화하면, 필요한 경우에만 추론을 수행하도록 동작합니다. 이를 통해 같은 수준의 노력에서 Claude Opus 4.7 대비 불필요하게 소비되는 사고 토큰을 줄일 수 있습니다.

거부 응답의 stop_details 필드가 공식 문서화됨; 반환 값

Claude의 거부 응답(refusal response)에 포함된 stop_details 필드가 공식 문서에 등재되었습니다. 이 필드는 거부 사유를 나타내는 카테고리(cyber, bio 또는 null)와 인간이 읽을 수 있는 설명을 함께 반환합니다. 이를 통해 애플리케이션이 거부의 종류에 따라 다른 처리 방식으로 라우팅할 수 있게 되었습니다. 더 이상 베타

Claude API에서 stop_r을 반환하는 요청에 대해 더 이상 요금이 청구되지 않습니다

Claude API에서 요청이 stop_reason: "refusal"을 반환하면서 Claude가 생성한 출력물이 없는 경우, 더 이상 해당 요청에 대한 비용이 청구되지 않습니다. 이는 API 사용자가 거부된 요청에 불필요한 요금을 지불하지 않도록 하는 변경 사항입니다. 사용자는 스트리밍 거부(Streaming refusals) 문서를 통해 거부 상황을 감

advisor 도구가 이제 advisor 모델의 토큰을 제한하는 max_tokens 파라미터를 지원합니다

Advisor 도구가 이제 max_tokens 파라미터를 지원합니다. 이를 통해 advisor 모델의 호출당 출력을 제한할 수 있으며, 전체 길이의 응답이 필요하지 않은 작업의 지연시간과 출력 토큰 비용을 줄일 수 있습니다. tools[].max_tokens을 advisor 도구 정의에서 설정하면 됩니다.

궁금한 점이 있거나 활용법을 나누고 싶나요?

커뮤니티에서 다른 사용자들과 팁과 노하우를 나눠보세요. 더 많은 가이드도 준비되어 있어요.