Repository navigation
Releases: ruaibeite/dsh-undo
Releases · ruaibeite/dsh-undo
Release list
0.4.2 — 回退既有文件不再被沙箱拒绝
修复:/undo 或界面上的 ↶ 回退本轮 在 workspace-write 会话里恢复「已存在文件」时报 file access denied under workspace-write mode。
原因:恢复走 ctx.fs.writeText 时没有传 sandbox policy,fs-sandbox 只能回落到不带会话的 sandboxPolicy.resolve(),于是拿不到本会话的工作区边界,判定越界。
修法:与官方 write/edit 工具一致,传 ctx.sandboxPolicy.resolve({ session })(c00f2c0)。