[Bug] Agent edit files out of Workspace, while WorkSpace Write mode enabled. #1967
Replies: 2 comments 1 reply
|
This is almost certainly the shell-capability gap, not a workspace-write enforcement bug - worth distinguishing because the fix is different. In the current model, To triage on your machine:
Short version: workspace-write mode is a filesystem-tool contract; it has never been (and should not be) a claim that a sandbox-less shell can't write outside the workspace. |
|
@zoahdev 的分诊是对的,而且那两条自查(看轨迹里到底是哪个工具写的)就是下一步该做的事。我只补一条平台相关的提醒,因为从你的截图看你在 Windows,而"配个沙箱就行"这句话在 Windows 上有已知的窟窿。 如果确认是 shell 那条路,Windows 上的沙箱有两个已记录的缺口
方向没错,但在 Windows 上你得知道自己买到的是什么: 1. windows-acl 档本身就标着 2. 如果你在 WSL2 里跑,沙箱可能被完全绕过。 (你的截图是 一个补充的分诊线索@zoahdev 让你看轨迹里是哪个工具。如果轨迹不好读,还有个更粗但很快的判据:看那个文件是怎么被创建的。
这个区分值得你花点力气确认,因为两条路的结论完全相反:一条是"配置问题,去开沙箱",另一条是"权限系统没兜住,是真 bug"。你原帖说"如果之后找到确切原因会补上来"——补上来的时候,把这一条写清楚比其它任何细节都有价值。 边界与利益相关我们不修 DSH 自家组件——workspace-write 的强制、shell 工具、沙箱都在 DSH 里。上面全是别人报告的归类和分诊建议;我没有 Windows 环境,上述两个缺口都不是我复现的,我只是把它们和你这条串起来。 利益相关:我维护 pi2dsh(Pi 生态兼容层)。这条不推销——你这是 DSH 的权限/沙箱边界问题,多装一个插件只会多一个能调 shell 的东西。 |
Uh oh!
There was an error while loading. Please reload this page.
All reactions