Repository navigation
Description
Summary
After upgrading to 2026.7.1 (which fixed #1143 — PowerShell/console programs crashing with 0xC0000142), tasklist still hangs forever in the Windows node sandbox, even with "Allow Windows UI APIs" enabled. Every invocation times out at the node.invoke layer; the command never returns output and never exits.
Environment
- OpenClaw Windows Companion: 2026.7.1 (Installer x64)
- Windows: 26H1 build 28120.2630
- Node Sandbox: ON (MXC AppContainer)
- Node Sandbox setting: Allow Windows UI APIs = ON (settings page confirms: "Win32k boundary is disabled... allows Win32k system calls")
What works (after the #1143 fix)
whoamiOKverOKpowershell(5.1) OKpwsh(7.6.4) OKipconfig,dirOK
What still fails
tasklisthangs forever — reproduced 5x across reboots;node.invoketimes out, no output, no exit.- Process enumeration is still container-isolated:
Get-Processreturns only 3 processes (the sandbox's owncmd,Idle,powershell);Get-CimInstance Win32_Processfails with "cannot connect to the CIM server".
Evidence
The official FAQ (docs/OPENCLAW_GATEWAY_NODE_EXEC_FAQ.md) explicitly names tasklist as a program that requires Allow Windows UI APIs:
MXC also blocks Win32k system calls by default. PowerShell,
whoami,tasklist, and many other console programs initialize Windows UI APIs even when they do not show a window. Enable Allow Windows UI APIs on the Node Sandbox page when those programs are required.
The option is enabled (Win32k boundary removed), yet tasklist still hangs — so the remaining blocker is not the Win32k boundary but the process-enumeration layer (the container cannot see host processes, and tasklist blocks instead of failing fast).
Repro
- Companion 2026.7.1, Node Sandbox ON, "Allow Windows UI APIs" ON
- From the gateway: run
exectargeting the Windows node, commandtasklist - Observed: hangs until
node.invoketimeout; no output, no exit
Expected
tasklistreturns the process list, or at minimum fails fast with a clear error; OR- Documentation clarifies that host process enumeration is intentionally unavailable inside the sandbox and
tasklistis expected to hang — in which case a fast, explicit deny would still be preferable to a hang.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Aug 11, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 12, 2026, 3:18 PM ET / 19:18 UTC.
Summary
Keep open: v2026.7.1 current main has an unbounded synchronous cleanup wait after MXC command cancellation, which can outlive the configured timeout. The linked open PR owns the narrow repair and explicitly closes this issue.
Likely related people
shanselman(high confidence): introduced the current MXC executor and is the linked repair author.Reproducibility: yes. source-reproducible: cancellation reaches synchronous
WaitForExit()after the kill attempt, so a surviving launcher or undrained pipe prevents the timed-out result from returning.Regression provenance
Possible regression — suspected (reviewed change). No predecessor PR is attributed.
Next step
The linked open PR already owns the bounded cleanup repair, so a second fix branch would duplicate active implementation work.
Review details
Best possible solution:
Merge the linked repair after normal review, preserving MXC process-tree termination and returning the existing timed-out result after bounded cleanup.
Do we have a high-confidence way to reproduce the issue?
Yes, source-reproducible: cancellation reaches synchronous
WaitForExit()after the kill attempt, so a surviving launcher or undrained pipe prevents the timed-out result from returning.Is this the best way to solve the issue?
Yes. Bounding only the post-cancellation exit and pipe-drain waits addresses the hang while preserving the existing sandbox policy and process-tree termination behavior.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 4206611f2b2e.
Label changes
Label justifications:
P1: A Windows-node command can remain pending indefinitely after its configured timeout, blocking an active command workflow.impact:other: The report concerns sandbox command-execution availability, which does not map more specifically to the owned impact taxonomy.Evidence reviewed
What I checked:
WaitForExit()before returning its timed-out result. A launcher or redirected pipe that remains alive can therefore keep the invocation pending. (src/OpenClaw.Shared/Mxc/MxcExecutor.cs:150, 4206611f2b2e)src/OpenClaw.Shared/Mxc/MxcExecutor.cs:150, 4206611f2b2e)docs/OPENCLAW_GATEWAY_NODE_EXEC_FAQ.md:651, 4206611f2b2e)src/OpenClaw.Shared/Mxc/MxcExecutor.cs:150, 4206611f2b2e)Likely related people:
src/OpenClaw.Shared/Mxc/MxcExecutor.cs)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.