Skip to content

Windows companion 2026.7.1-4: dashboard-triggered PowerShell/where fail with 0xc0000142; manual PowerShell succeeds #1432

Description

@PollyBot13

Reported on behalf of another user from a supplied public-support-thread summary dated 2026-09-16. This is not a local reproduction by the filing account. Root cause and fix remain unverified.

Summary

A user can run PowerShell successfully in their Windows terminal, but requesting shell execution through the OpenClaw dashboard leads to application-startup failures. Screenshots were identified during support as showing powershell.exe and where.exe application errors with code 0xc0000142 (DLL initialization failure).

The agent's repeated claim that an empty executable allowlist caused the failure is not established by the collected evidence. Gateway effective policy and the node's saved defaults/main-agent policy were all security=full, ask=off. The node does not expose a complete resolved host policy, so those saved settings do not establish every runtime restriction.

Environment

  • Gateway/CLI: OpenClaw 2026.9.3, commit 1391f7c.
  • Windows node reports version 2026.7.1-4.
  • Companion state directory: %APPDATA%\OpenClawTray.
  • Windows version reported earlier in the thread: 10.0.26200.9445.
  • Earlier MCP crash output reported Node.js v26.8.1; the interpreter used by each current component has not been independently established.
  • CLI launcher found at %APPDATA%\npm\openclaw.cmd.
  • Agent model referenced in the conversation: minimax-portal/MiniMax-M3.
  • Two paired node records with the same display name; one connected, one disconnected. Diagnostics targeted the connected node by ID.
  • This is not a confirmed clean-install reproduction: troubleshooting included attempted configuration rewrites before the evidence below was collected.

The Gateway/node version difference is a diagnostic lead, not proof of incompatibility or causation.

Reported reproduction sequence

These steps describe the affected installation, not a maintainer-verified minimal reproduction.

  1. Connect the Windows companion node to the Gateway and open the dashboard chat.
  2. Ask the agent to execute:
    powershell.exe -NoProfile -Command Get-Date
    
  3. Observe the Windows application-startup error during dashboard-triggered execution.
  4. Run the same command manually in the user's existing PowerShell terminal.
  5. Observe successful date output.

A subsequent dashboard-related screenshot was identified as a where.exe application error with the same code. Its complete command line and invocation context have not been captured.

Expected behavior

An authorized command should start successfully, or return an actionable error identifying the actual launch/policy failure. The same simple PowerShell command should not fail only through the companion without sufficient diagnostics to explain the difference.

Actual behavior and evidence

Manual PowerShell succeeds — direct user terminal output

PS C:\WINDOWS\system32> powershell.exe -NoProfile -Command Get-Date

Wednesday, September 16, 2026 4:16:08 PM

Dashboard execution fails — screenshots and agent summaries

The support conversation recorded screenshots of application-error dialogs for:

  • powershell.exe: 0xc0000142.
  • where.exe: 0xc0000142.

Original screenshot message links are below. The filing agent could not access the source Discord messages in this session; screenshots are not attached or independently inspected here.

The user's agent separately reported this output:

Warning: tools.exec.pathPrepend is ignored for host=node.
Access is denied.
(Command exited with code 1)

It also reported a different test ending with -1073741502, which corresponds to 0xC0000142, not 0xC000013A.

Evidence boundary: these textual tool results were copied from the agent's prose, not obtained as a complete raw tool invocation/result. The exit-1 report and the application-error reports should not be assumed to be the same attempt. Exact argv, working directory, environment, launch identity, and timestamps remain missing.

Gateway approvals — direct CLI output

Command used:

openclaw.cmd approvals get --gateway

Reported:

Defaults: security=full, ask=off, askFallback=full, autoAllowSkills=on
Agents: 0
Allowlist: 0
Effective tools.exec: security=full, ask=off

openclaw.cmd approvals pending reported no pending approvals at the time checked. This is not proof that no approval was ever requested.

Node approvals — direct CLI output and selected local file contents

The connected node's approvals report showed:

Path: %APPDATA%\OpenClawTray\exec-approvals.json
Defaults: security=full, ask=off, askFallback=deny, autoAllowSkills=off
Agents: 1
Allowlist: 0

Effective Policy
This node does not expose a complete resolved host policy, so Effective Policy is unavailable.

Reading only the file's agents field returned:

{
  "main": {
    "security": "full",
    "ask": "off",
    "askFallback": "deny"
  }
}

Node capabilities — direct CLI output

Selected fields from openclaw.cmd nodes describe --node <connected-node-id> --json:

{
  "platform": "windows",
  "version": "2026.7.1-4",
  "clientId": "node-host",
  "clientMode": "node",
  "deviceFamily": "Windows",
  "sessionHost": false,
  "approvalState": "approved",
  "paired": true,
  "connected": true
}

The returned command list includes system.run, system.run.prepare, system.which, and system.execApprovals.get/set. A missing advertised shell-execution capability is therefore not supported by this output. Pairing approval alone does not authorize every shell command.

Diagnostics already attempted

  • Confirmed openclaw.cmd works. Bare openclaw previously produced unexpected launcher behavior; the Windows launcher association/resolution issue was not fully diagnosed.
  • Confirmed manual PowerShell launch succeeds.
  • Checked Gateway policy, connected-node saved policy, and main-agent saved policy.
  • Checked node connection/capabilities.
  • Queried the Windows Application event log for messages containing powershell.exe in the prior 30 minutes; no output. The query used -ErrorAction SilentlyContinue, so this does not establish that no relevant event or query error existed.
  • Recursively listed %APPDATA%\OpenClawTray\Logs, including hidden files. Only September 9 setup logs were found, not current execution logs.
  • Located a Diagnostics item in the tray menu, but no resulting diagnostic report has yet been collected.
  • No verified fix, clean reinstall reproduction, or successful companion execution retest has been obtained.

Configuration history / confounders

The user's agent suggested unsupported nested configuration paths involving agents.entries.main.models.…agentRuntime.tools.exec and whole-file PowerShell rewrites. A direct terminal capture shows a property-not-found error. A later save line could still have rewritten configuration after that error.

The agent also claimed backups/restoration and additional script changes; these claims have not all been independently verified. Do not treat the current state as pristine or the claimed backup as verified.

An earlier, separate MCP subprocess-cleanup crash reported:

Error: stdio process cleanup cannot confirm descendant extinction

That earlier crash should be triaged separately unless evidence links it to this launch failure.

Requested engineering investigation

  1. Capture a complete failing exec invocation and node-side process-launch diagnostics: executable path, argv, cwd, sanitized environment differences, process/user/session identity, launch flags, and native error/exit status.
  2. Identify the supported way to obtain current runtime logs from this companion build; the discovered directory only contained setup logs.
  3. Reproduce on the reported Gateway/companion version pair and compare with a supported matched/current pair in a controlled test.
  4. Compare terminal and companion launch contexts for both PowerShell and where.exe; do not assume permissions, PATH, a specific DLL, security software, or the version mismatch is the cause without evidence.
  5. Preserve existing configuration and approval policy while collecting evidence. No further blanket permission widening is justified by these findings.

Source references

Discord references may require server access. Sanitized original screenshots and complete raw invocation/results remain evidence gaps.

Related reports and diagnostic leads

Please first determine whether this is expected UI-deny behavior needing clearer diagnostics, recurrence of #1143, or a separate launch-context failure. Preserve the user’s current configuration and sandbox settings while collecting that evidence. Model troubleshooting errors and the earlier MCP cleanup crash are outside this issue’s scope.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal priority bug or improvement with limited blast radius.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.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions