Skip to content

[Bug]: exec tool on Windows (v2026.6.10) pops visible cmd/PowerShell window for every command — regression from v2026.6.8 #96835

Description

@w13693884427

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

内容:

Environment:

OpenClaw: 2026.6.10 (upgraded from 2026.6.8)
OS: Windows 11, 64-bit (AMD64)
PowerShell: 5.1.26100.8737
Node: v26.2.0
Model: DeepSeek V4 Flash
Description:
After upgrading from v2026.6.8 to v2026.6.10, every exec call creates a visible cmd/PowerShell console window that pops up, runs the command, and immediately closes. In v2026.6.8, these windows were hidden (process ran silently in background).

This is disruptive because:

The flashing window interrupts the user's workflow (steals focus)
Background tasks no longer appear in the taskbar/notification area
Multiple rapid exec calls cause a cascade of flickering windows
What I tried:

Using pty: true — keeps the window open but the flicker on open/close remains
Using background: true — same behavior, window still pops up
Setting CREATE_NO_WINDOW equivalent — no config option found in exec docs
Expected behavior:
exec should run PowerShell subprocesses with hidden console window (as in v2026.6.8), or expose a config option like exec.hideWindow to control this behavior.

Suggested fix:
Add a config option (e.g. exec.createNoWindow: true/false) or default to CREATE_NO_WINDOW flag when spawning PowerShell processes on Windows, matching the pre-v2026.6.10 behavior.

Steps to reproduce

描述:
从v2026.6.8升级到v2026.6.10后,每次调用都会创建一个可见的cmd/PowerShell控制台窗口,弹出后执行命令后立即关闭。在 v2026.6.8 中,这些窗口是隐藏的(进程在后台静默运行)。exec

这造成了干扰,因为:

闪烁窗口会打断用户的工作流程(抢走焦点)
后台任务不再出现在任务栏/通知区
多次快速的执行电话会导致一连串闪烁的窗户
我尝试过的:

使用——保持窗户开着,但开关时闪烁依然存在pty: true
使用同样的行为,窗口依然弹出background: true
设置等效——执行文档中找不到配置选项CREATE_NO_WINDOW
预期行为:
应运行带有隐藏控制台窗口的PowerShell子进程(如v2026.6.8),或暴露配置选项以控制此行为。execexec.hideWindow

建议的解决方案:
在Windows上添加配置选项(例如)或默认在Windows上生成PowerShell进程时标记,与v2026.6.10之前的行为保持一致。exec.createNoWindow: true/falseCREATE_NO_WINDOW

Expected behavior

描述:
从v2026.6.8升级到v2026.6.10后,每次调用都会创建一个可见的cmd/PowerShell控制台窗口,弹出后执行命令后立即关闭。在 v2026.6.8 中,这些窗口是隐藏的(进程在后台静默运行)。exec

这造成了干扰,因为:

闪烁窗口会打断用户的工作流程(抢走焦点)
后台任务不再出现在任务栏/通知区
多次快速的执行电话会导致一连串闪烁的窗户
我尝试过的:

使用——保持窗户开着,但开关时闪烁依然存在pty: true
使用同样的行为,窗口依然弹出background: true
设置等效——执行文档中找不到配置选项CREATE_NO_WINDOW
预期行为:
应运行带有隐藏控制台窗口的PowerShell子进程(如v2026.6.8),或暴露配置选项以控制此行为。execexec.hideWindow

建议的解决方案:
在Windows上添加配置选项(例如)或默认在Windows上生成PowerShell进程时标记,与v2026.6.10之前的行为保持一致。exec.createNoWindow: true/falseCREATE_NO_WINDOW

Actual behavior

内容:

环境:

OpenClaw:2026.6.10(升级自2026.6.8)
操作系统:Windows 11,64位(AMD64)
PowerShell: 5.1.26100.8737
Node: v26.2.0
型号:DeepSeek V4 闪光灯
描述:
从v2026.6.8升级到v2026.6.10后,每次调用都会创建一个可见的cmd/PowerShell控制台窗口,弹出后执行命令后立即关闭。在 v2026.6.8 中,这些窗口是隐藏的(进程在后台静默运行)。exec

这造成了干扰,因为:

闪烁窗口会打断用户的工作流程(抢走焦点)
后台任务不再出现在任务栏/通知区
多次快速的执行电话会导致一连串闪烁的窗户
我尝试过的:

使用——保持窗户开着,但开关时闪烁依然存在pty: true
使用同样的行为,窗口依然弹出background: true
设置等效——执行文档中找不到配置选项CREATE_NO_WINDOW
预期行为:
应运行带有隐藏控制台窗口的PowerShell子进程(如v2026.6.8),或暴露配置选项以控制此行为。execexec.hideWindow

建议的解决方案:
在Windows上添加配置选项(例如)或默认在Windows上生成PowerShell进程时标记,与v2026.6.10之前的行为保持一致。exec.createNoWindow: true/falseCREATE_NO_WINDOW

OpenClaw version

OpenClaw:2026.6.10(升级自2026.6.8)

Operating system

操作系统:Windows 11,64位(AMD64)

Install method

PowerShell: 5.1.26100.8737

Model

型号:DeepSeek V4 闪光灯

Provider / routing chain

型号:DeepSeek V4 闪光灯

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

    P2Normal backlog priority with limited blast radius.bugSomething isn't workingclawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions