Sandbox bug - blocking shell
还没有人认领这个 Issue。
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
Describe the bug
Bug: sandbox.enabled: false is not honored — shell backend still initializes BaseContainer and fails with a WRITE_DAC error, making all shell execution impossible on Windows.
Version: 1.0.81-2 (win32-x64), Windows_NT. Config: ~/.copilot/settings.json shows "sandbox":{"enabled":false,...} .
Error on every shell/tool call: backend_unavailable: BaseContainer is unavailable; DACL fallback requires write-DAC permission on 'C:' (ERROR_ACCESS_DENIED, WRITE_DAC not granted) .
Repro: Set sandbox.enabled:false , /restart → shell still fails identically. Persisted ~8h across many restarts. Launching elevated crashes on start. icacls "C:\Program Files\nodejs" /reset advanced the failing path from C:\Program Files\nodejs → C:\ (the DACL fallback walks up the tree; BaseContainer never initializes).
Expected: With sandbox disabled, run commands directly with no container/DACL step. At minimum, fail with a clear, actionable message instead of attempting WRITE_DAC on C:\ .
Affected version
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
Additional context
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在 ~/.copilot/settings.json 中将 sandbox.enabled 设置为 false,并在 Windows 上复现该问题,然后跟踪该设置如何传递到 shell backend。验证禁用 sandbox 是否会避免初始化 BaseContainer 和 DACL,以及 shell 命令是否能在不产生 WRITE_DAC 失败的情况下运行,或者产生清晰且可操作的错误。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 63/100