[Bug] Sandbox blocks uv cache access during pytest execution
Resolved 💬 8 comments Opened Oct 24, 2025 by higumachan Closed Feb 1, 2026
Bug Description
When using sandbox and uv together, running pytest fails because it cannot access $HOME/.cache/uv/sdists-v9/.git.
⏺ Bash(uv run pytest -v)
⎿ Error: error: failed to open file $HOME/.cache/uv/sdists-v9/.git: Operation not permitted (os error 1)
<sandbox_violations>
uv(9813) deny(1) file-write-data $HOME/.cache/uv/sdists-v9/.git
</sandbox_violations>
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.0.26
- Feedback ID: 1c792d06-9b35-4f79-9656-056b857900f1
Errors
⏺ Bash(uv run pytest -v)
⎿ Error: error: failed to open file $HOME/.cache/uv/sdists-v9/.git: Operation not permitted (os error 1)
<sandbox_violations>
uv(9813) deny(1) file-write-data $HOME/.cache/uv/sdists-v9/.git
</sandbox_violations>
This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗