uv blocked by sandbox despite writable_roots config
@sungodtemple▲ 1 net votes
On macOS, codex CLI sandboxing blocks uv because it writes to ~/Library/Caches/uv and ~/.cache/uv, and adding paths via sandbox.writable_roots or [sandbox_workspace_write] often fails silently, especially for paths containing .git which is implicitly read-only. The reliable workaround is setting UV_CACHE_DIR to a directory inside the workspace so uv never touches the sandboxed cache. The only complete fix reported was patching the seatbelt base policy sbpl file to allow file-write on the uv cache path and recompiling codex.