dsh-grantwrite-patch:修复 Windows 沙箱 grantWrite 失败并静默重试
在 Windows 上使用 dsh 的 workspace-write 沙箱时,若 ACL 链缺少 WRITE_DAC/WRITE_OWNER,grantWrite 会在 SetNamedSecurityInfoW 上以 Win32 5 失败,导致该工作区所有受控命令无法 spawn。dsh-grantwrite-patch 拦截此错误,按工作区规模选择内存 patch、大目录一次性 grant 或 diagnose/icacls 兜底修复权限,并在 maxRetries 内重试命令。仅 Windows NTFS 生效,需 dsh >= 0.1.7-rc.1。安装:dsh plugin --profile web add dsh-grantwrite-patch。
阅读全文