feat: 샌드박스 세션에 명시적으로 열어 주는 형제 트리 (3.1.0) - #3
Merged
Conversation
에이전트는 자기 workspace 말고도 다룰 것이 있다 — 사용자 계정의 클라우드 스토리지가 그렇다. 그걸 workdir 안으로 밀어 넣으면 에이전트의 산출물과 사용자 파일이 한 트리에 섞이고, 한쪽의 삭제 전파가 다른 쪽 파일을 지운다. 그래서 형제 트리로 두고 `XgenySandbox.extra_roots` 로 연다. `ToolContext.allowed_paths` 와 같은 역할이다 — 로컬 실행에서 그것이 하던 일을 러너 실행에서는 이 목록이 한다. 열어 준 것만 열린다: 상위 디렉터리가 통째로 열리지 않는다 (테스트가 검사). 기본값은 없음이라 기존 호스트의 동작은 그대로다. 4,736 passed, ruff clean. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
에이전트가 자기 workspace 외에 사용자 계정의 클라우드를 다뤄야 한다. workdir 안으로 밀어 넣으면 두 트리가 섞이고 한쪽의 삭제 전파가 다른 쪽을 지운다 — 형제 트리로 두고
extra_roots로 연다.ToolContext.allowed_paths의 러너 판이다. 열어 준 것만 열리고, 상위 디렉터리가 통째로 열리지 않는다. 기본값 없음이라 기존 동작은 불변.4,736 passed, ruff clean.
🤖 Generated with Claude Code