Repository navigation
Description
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
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 25, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 25, 2026, 1:18 PM ET / 17:18 UTC.
Summary
Keep open: current main has adjacent hidden-window safeguards, but there is not enough proof that the reported Windows exec console flash is fixed; the PTY/node-pty and native Windows/Node 26 paths still need live reproduction.
Reproducibility: no. not as a high-confidence live reproduction. Source inspection shows plausible Windows exec paths and an unproven PTY/node-pty branch, but this review did not run native Windows v2026.6.10 or current main.
Ways to help us reproduce this
Next step
Manual maintainer review is the right next step because native Windows reproduction is needed before safely routing a fix to PTY, PowerShell, node-host, or direct exec code.
Review details
Best possible solution:
Keep this as the canonical Windows exec console-window regression, reproduce it on native Windows against v2026.6.10 and current main, then restore hidden subprocess behavior on the exact affected spawn path.
Do we have a high-confidence way to reproduce the issue?
No, not as a high-confidence live reproduction. Source inspection shows plausible Windows exec paths and an unproven PTY/node-pty branch, but this review did not run native Windows v2026.6.10 or current main.
Is this the best way to solve the issue?
Unclear. The config-option suggestion is not the best first fix; the best repair is to identify the exact spawn path that lost hidden-window behavior and restore the previous default before considering a new operator setting.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 7fefc5ff58de.
Label changes
Label changes:
issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.clawsweeper:needs-info: Current issue advisory state selects this label.clawsweeper:needs-live-repro: Current issue advisory state no longer selects this label.issue-rating: 🐚 platinum hermit: Current issue advisory state no longer selects this label.Label justifications:
P2: The issue reports a disruptive Windows exec regression with a platform-specific blast radius, not a total runtime outage.impact:other: The concrete impact is user-visible focus-stealing console windows during exec calls, which is meaningful but outside the specific owned impact labels.Evidence reviewed
Acceptance criteria:
What I checked:
docs/tools/exec.md. (docs/tools/exec.md:85, 7fefc5ff58de)docs/gateway/background-process.md. (docs/gateway/background-process.md:15, 7fefc5ff58de)src/agents/shell-utils.ts:103, 7fefc5ff58de)src/process/supervisor/adapters/child.ts:83, 7fefc5ff58de)src/process/supervisor/adapters/pty.ts:62, 7fefc5ff58de)Likely related people:
src/process/supervisor/adapters/child.ts,src/process/exec.ts)src/agents/shell-utils.ts,src/process/supervisor/adapters/pty.ts,src/process/exec.ts)src/node-host/invoke.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.openclaw-barnacle commentedon Jul 10, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
clawsweeper commentedon Jul 10, 2026
ClawSweeper status: review started.
I am starting a fresh review of this issue: [Bug]: exec tool on Windows (v2026.6.10) pops visible cmd/PowerShell window for every command — regression from v2026.6.8 This is item 1/1 in the current shard. Shard 15/32.
This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.
Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.
openclaw-barnacle commentedon Jul 18, 2026
Closing due to inactivity.
If this is still an issue, please retry on the latest OpenClaw release and share updated details.
If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.