DeepSeek-Reasonix icon indicating copy to clipboard operation
DeepSeek-Reasonix copied to clipboard

[Bug]: Sandbox模型,MCP执行报错

Open July-X opened this issue 5 months ago • 2 comments

Version line

v2 — Go rewrite (1.x), main-v2 (active development)

Exact version

1.8.1

What happened?

Image error: plugin "chrome-devtools": read: EOF: stderr: npm error arg Argument starts with non-ascii dash, this is probably invalid: —isolated (node:87867) Warning: `--localstorage-file` was provided without a valid path (Use `node --trace-warnings ...` to show where the warning was created) chrome-devtools-mcp exposes content of the browser instance to the MCP clients allowing them to inspect, debug, and modify any data in the browser or DevTools. Avoid sharing sensitive or personal information that you do not want to share with MCP clients. Performance tools may send trace URLs to the Google CrUX API to fetch real-user experience data. To disable, run with --no-performance-crux. Image

Steps to reproduce

如图设置好沙箱配置,然后使用chrome-devtools-mcp进行调试的时候就会出现调用mcp失败

OS / platform

MacOS

Relevant logs or output


July-X avatar Jun 16 '26 12:06 July-X

我好像发现bug了,UI设置显示为off的时候reasonix.toml里面沙箱的配置还是bash = "enforce",调整为bash = "off"就好了,看起来是一个UI和文件配置不同步的问题

July-X avatar Jun 16 '26 12:06 July-X

已确认这个问题真实存在。

根因是桌面 Settings 之前读取/保存 sandbox 配置时使用的是用户级 config.toml,但实际运行时会按 reasonix.toml > 用户配置 > 默认值 的优先级加载。项目 reasonix.toml 里如果已有 bash = "enforce",UI 里改成 off 只会写到用户配置,实际运行时仍会被项目级配置覆盖。

已提交修复 PR:#4607

这次修复包含:

  • Settings 页的 sandbox 显示改为读取当前工作区的有效配置;
  • 当前项目已经定义 sandbox/shell 覆盖时,UI 修改会写回项目 reasonix.toml;
  • 补齐 [tools.shell] 的 TOML 渲染,避免 shell 选择在配置 round trip 后丢失;
  • 增加回归测试覆盖项目级 sandbox 覆盖导致 UI/文件不同步的场景。

已验证:

  • go test ./... -run 'TestSettingsSandboxReflectsProjectOverride|TestSetSandboxUpdatesProjectOverrideConfig'(desktop module)
  • go test ./internal/config
  • go test ./...(desktop module)
  • go test ./...
  • gofmt -l .
  • git diff --check

GTC2080 avatar Jun 16 '26 12:06 GTC2080

已确认这个问题真实存在。

根因是桌面 Settings 之前读取/保存 sandbox 配置时使用的是用户级 config.toml,但实际运行时会按 reasonix.toml > 用户配置 > 默认值 的优先级加载。项目 reasonix.toml 里如果已有 bash = "enforce",UI 里改成 off 只会写到用户配置,实际运行时仍会被项目级配置覆盖。

已提交修复 PR:#4607

这次修复包含:

  • Settings 页的 sandbox 显示改为读取当前工作区的有效配置;
  • 当前项目已经定义 sandbox/shell 覆盖时,UI 修改会写回项目 reasonix.toml;
  • 补齐 [tools.shell] 的 TOML 渲染,避免 shell 选择在配置 round trip 后丢失;
  • 增加回归测试覆盖项目级 sandbox 覆盖导致 UI/文件不同步的场景。

已验证:

  • go test ./... -run 'TestSettingsSandboxReflectsProjectOverride|TestSetSandboxUpdatesProjectOverrideConfig'(desktop module)
  • go test ./internal/config
  • go test ./...(desktop module)
  • go test ./...
  • gofmt -l .
  • git diff --check

以后设置的数据统一迁移到全局设置,弱化项目设置的概念。新版本以全局设置为准

SivanCola avatar Jun 17 '26 14:06 SivanCola