Skip to content

[Bug]: Windows exec 审批问题 #59774

@tiens

Description

@tiens

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

问题1: allowlist auto-execution 在 Windows 上不生效

  • 配置了 gateway.exec.allowlist 和 exec.allowlistPatterns
  • 但每次 exec 仍需手动审批
  • 错误信息: "allowlist auto-execution is unavailable on win32"

问题2: 无法关闭显式审批

  • 尝试设置 gateway.exec.approvalMode none
  • 报错: "Config validation failed: gateway: Unrecognized key: exec"
  • 找不到关闭审批的配置项

影响

  • 每次测试都需要 /approve
  • 无法批量执行命令
  • 自动化测试几乎不可能

环境

  • Windows 10/11 (x64)
  • OpenClaw 2026.4.1
  • 终端: PowerShell/CMD

期望

  1. Windows 上 allowlist 自动审批能正常工作
  2. 或者提供明确的方式关闭 exec 审批

Steps to reproduce

NOT_ENOUGH_INFO

Expected behavior

NOT_ENOUGH_INFO

Actual behavior

NOT_ENOUGH_INFO

OpenClaw version

2026.04.01

Operating system

windows10

Install method

No response

Model

minimax

Provider / routing chain

openclaw -> cloudflare-ai-gateway -> minimax

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions