Skip to content

[兼容性] DSH 0.1.1-rc.2 下 Auto Mode 将 workspace-write 误判为无效升级请求 #8

Description

@LonelyHerbivore

问题概述

@nanmicoder/dsh-auto-mode@0.1.5 似乎无法正确兼容 DeepSeek Harness 0.1.1-rc.2

在 Auto Mode 下,普通的工作区内工具调用有时会被模型生成为:

"sandbox_permissions": "workspace-write"

随后 Auto Mode 会将其识别为一次沙箱升级请求,并拒绝执行:

[auto-mode invalid sandbox request]
Auto already runs in workspace-write; only an exact one-shot danger-full-access escalation is wider

这会导致普通的 Shell、脚本和文件操作无法执行。

环境信息

  • 操作系统:Windows
  • DeepSeek Harness:@deepseek-ai/dsh@0.1.1-rc.2
  • Auto Mode:@nanmicoder/dsh-auto-mode@0.1.5
  • 使用配置:web
  • 当前权限模式:Auto

复现步骤

  1. 安装并启用 @nanmicoder/dsh-auto-mode@0.1.5。
  2. 启动 DSH Web。
  3. 将权限模式切换为 Auto。
  4. 让 Agent 执行一个普通的工作区内命令,例如测试、构建或本地脚本。
  5. Agent 可能生成类似下面的工具调用:
{
  "command": "python ./.trellis/scripts/assert_trellis_enabled.py",
  "description": "检查 Trellis 是否已启用",
  "sandbox_permissions": "workspace-write",
  "justification": "",
  "workdir": "D:\\DSH-WorkSpace"
}

工具调用在命令实际执行之前被拒绝:

[auto-mode invalid sandbox request]
Auto already runs in workspace-write; only an exact one-shot danger-full-access escalation is wider

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions