You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
一句话
workspace-write下包管理器缓存(uv/pip/npm/pnpm 等,位于工作区外,如%LOCALAPPDATA%\uv\cache)的写入被沙箱拦截,导致uv sync等常规操作失败。建议给沙箱策略增加可配置的额外可写根(extraWritableRoots),只放行包管理器自己的缓存目录,而不是整个会话切 danger-full-access。现状与关键事实
uv sync在 workspace-write 下失败:uv 缓存C:\Users\xyg\AppData\Local\uv\cache在工作区外,写入被拒(报sdists-v9\.gitAccess denied)。UV_CACHE_DIR指进工作区,或整会话切 danger-full-access(沙箱关闭 + 不再弹审批),粒度都太粗。建议设计
SandboxExecutionPolicy增加可选字段extraWritableRoots?: string[](绝对路径)。writableRoots()(packages/sandbox/sandbox/src/roots.ts,Seatbelt 与 fs 栅栏的共享推导点)在 workspace-write 下并入这些根 —— Seatbelt 与写工具栅栏零改动自动生效。--bind;Landlock 追加进 readWrite 列表。sandbox-policy的Config(部署方显式列出缓存目录,如%LOCALAPPDATA%\uv、%LOCALAPPDATA%\pip、npm/pnpm 缓存目录)。收益
read-only语义不受影响(额外根只属于 workspace-write)。All reactions