Skip to content

SetInformationJobObject(JobObjectUILimitInformation) returns 0x80070057 on one Windows node — exec (system.run) cannot run; same-version laptop works #1189

Closed as not planned

Description

@gaojian125

Summary

exec host=node against a paired Windows desktop node (OpenClaw desktop app, v2026.7.1, node-host / remote-pairing mode) fails every time with:

This blocks all system.run (exec) on this machine — no command can run remotely. Every other node channel works (screen.snapshot, device.status, system.notify, system.execApprovals.get/set).

Environment

  • Desktop (affected): Windows 11 Pro (10.0.26100), OpenClaw desktop node v2026.7.1, clientMode: node, remote-paired to gateway v2026.8.1-beta.2 (100.69.89.74:18789).
  • Launch method on desktop: started manually after login, as Administrator (right-click → Run as administrator). Not auto-start.
  • Laptop (control): Windows node, same version v2026.7.1 — exec works normally (approval prompt shows, user clicks Allow, command runs).
  • Gateway: 2026.8.1-beta.2.

Already ruled out (all tested, none fix it)

  • ASUS ArmouryCrate + its kernel drivers (CTIAIO / IOMap / AsIO3) — stopped processes and drivers, no change.
  • VBS / Core isolation (DeviceGuard all 0), Windows Defender real-time, third-party AV, SAC (Smart App Control = 0, disabled).
  • Running node as Administrator, reinstalling node v2026.7.1.
  • Desktop app "Allow Windows UI APIs" toggle (added by issue fix(mxc): PowerShell fails in the Windows node sandbox #1147, shipped in v2026.7.1): enabled + full app restart — no change (confirms a different mechanism than the Win32k-disable fix 0xc0000142).
  • Plain PowerShell on the desktop can create a Job Object, set limits and run a child — exits 0, no error (OS-level job-object functionality is fine).

Key evidence

  • The error string exists only on the Windows node side; it is absent from gateway/server dist. It is generated when the node sandbox applies JobObjectUILimitInformation to the exec child process.
  • Same error whether approvals are "no prompt (ask=off)" or "prompt (ask=on)".
  • Procmon capture found no blocking module (.sys) — consistent with 0x80070057 being a user-mode parameter-validation failure (fails before entering the kernel).

Questions for maintainers

  1. Why would SetInformationJobObject(..., JobObjectUILimitInformation) return 0x80070057 (E_INVALIDARG) on one Windows machine but succeed on another machine with the identical node version? What prerequisite does this call require (desktop/session token, specific DLL state, Win32k desktop) that could differ per machine?
  2. Is there an official/unpublished switch or env var to disable/bypass the job-object UILimit call for exec (e.g. something like disableJobObjectUILimit)? Note: this key is not present in the v2026.8.1 gateway schema, and I cannot confirm any Windows-node release newer than v2026.7.1 that carries it.
  3. Windows CLI node-host (2026.8.1-beta.2) never creates exec-approvals.sock (Unix-socket semantics), so approval never surfaces and exec is always SYSTEM_RUN_DENIED — is this a known issue (references: #31175 / #20386)? Any Windows-native fix planned?

Activity

  1. added
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-security-review
    clawsweeper:no-new-fix-pr
    clawsweeper:source-repro
    impact:other
    issue-rating: 🦞 diamond lobster
    P1
    on Aug 21, 2026
  2. clawsweeper commented on Aug 21, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed September 4, 2026, 12:52 AM ET / 04:52 UTC.

    Summary
    Keep open. Current main still returns ordinary nonzero MXC launcher results as sandbox command results, while compatibility host fallback is entered only for SandboxUnavailableException; the exact JobObjectUILimit failure needs a security-boundary decision before it can be classified as backend unavailability.

    Reproducibility: no. The report supplies a credible affected-machine trace and current source exposes the relevant classification gap, but there is no current-main run confirming that MXC 0.8 still emits the exact 0x80070057 signature.

    Root-cause cluster
    Relationship: canonical
    Canonical: #1189
    Summary: This is the canonical report for a launcher initialization failure; the timeout report is explicitly related but has a distinct failure mechanism.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.

    Maintainer decision needed

    Question Recommendation
    Should the verified JobObjectUILimitInformation 0x80070057 launcher signature be treated as MXC backend unavailability and therefore use the existing configured host-fallback policy? Approve exact signature classification: Map only the verified job-object initialization signature to SandboxUnavailableException, retaining host fallback only when the existing setting permits it.

    Why: This classification determines whether a command moves from AppContainer containment to host execution, so source evidence alone cannot establish the acceptable security boundary.

    Next step
    A narrowly scoped repair is plausible, but its safety depends on maintainer approval of the exact sandbox-unavailability classification; the existing security-review label confirms that human gate.

    Security
    Needs attention: The proposed remedy crosses from contained MXC execution to host execution, so its exact failure signature must be security-reviewed.

    Review details

    Best possible solution:

    Add a narrowly audited classifier for the exact, independently verified MXC job-object initialization signature, preserve fail-closed handling for every other launcher failure, and cover both compatibility fallback and strict-blocking behavior.

    Do we have a high-confidence way to reproduce the issue?

    No. The report supplies a credible affected-machine trace and current source exposes the relevant classification gap, but there is no current-main run confirming that MXC 0.8 still emits the exact 0x80070057 signature.

    Is this the best way to solve the issue?

    Unclear. Mapping only a verified backend-initialization signature to the existing unavailable-backend path is the narrowest plausible repair, but maintainers must approve the containment-to-host transition before implementation.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • Treating arbitrary launcher failures as unavailable would silently switch contained command execution to the host runner and weaken the sandbox boundary.

    Codex review notes: model internal, reasoning high; reviewed against c5105ab06a2f.

    Label changes

    Label justifications:

    • P2: This is a credible, machine-specific failure of Windows-node command execution, but the safe remediation requires a bounded security decision rather than an emergency rollout.
    • impact:other: The issue blocks the Windows node's controlled command-execution capability, which does not fit the more specific owned impact categories.
    Evidence reviewed

    Security concerns:

    • [high] Keep the unavailable-backend classifier signature-bound — src/OpenClaw.Shared/Mxc/MxcCommandRunner.cs:178
      A broad conversion of nonzero launcher results into backend unavailability could route genuine sandbox failures through the uncontained host fallback.
      Confidence: 0.94

    What I checked:

    • Current fallback boundary: The runner invokes the sandbox executor, returns all normal sandbox results directly, and reaches host fallback only when the executor throws SandboxUnavailableException. (src/OpenClaw.Shared/Mxc/MxcCommandRunner.cs:161, c5105ab06a2f)
    • Launcher results are not classified: The direct executor wraps any completed wxc-exec result in SandboxExecutionResult without converting a job-object initialization signature into SandboxUnavailableException. (src/OpenClaw.Shared/Mxc/DirectAppContainerExecutor.cs:115, c5105ab06a2f)
    • Existing fallback contract: The executor contract defines SandboxUnavailableException for a backend that cannot serve a request, and the setting defaults to compatibility fallback unless strict blocking is enabled. (src/OpenClaw.Shared/Mxc/ISandboxExecutor.cs:16, c5105ab06a2f)
    • Fallback behavior is covered, but not this signature: Tests verify that a runtime SandboxUnavailableException invalidates availability and falls back, while a normal failed sandbox result must not fall back; no current source match or regression test names 0x80070057 or JobObjectUILimitInformation. (tests/OpenClaw.Shared.Tests/Mxc/MxcCommandRunnerTests.cs:418, c5105ab06a2f)
    • MXC 0.8 release provenance: Current package metadata pins MXC SDK 0.8.0. Git history identifies the upgrade as merged PR 1234, and release tags v2026.7.1-2 through v2026.7.1-4 contain that commit; the current source still has no exact-signature classifier. (package.json:7, 911f36860b2d)
    • Feature-history routing: History of the command runner identifies shanselman as the most recent MXC-focused contributor through the PowerShell sandbox fix, with Barbara Kudiess carrying the earlier direct-wxc-exec architecture. (src/OpenClaw.Shared/Mxc/MxcCommandRunner.cs:178, 4206611f2b2e)

    Likely related people:

    • shanselman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    • Barbara Kudiess: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  3. MilkyWay008 commented on Aug 21, 2026

    @MilkyWay008

    The 0x80070057 on SetInformationJobObject is the MXC launcher, not the gateway or your box's policy, since the same build execs fine on your laptop. wxc-exec.exe is treating the failed job-object init as an ordinary command result, so the host-fallback (SandboxUnavailableException) path never engages and exec just dies. There's no user-facing switch to skip the UILimit call yet, so the real fix is the backend-classification patch that recognizes this exact signature. Oh, btw, in case it might help that, I built a portable Hermes OTG repo, check it, imo it may be able to help you diagnose and figure out the fix in no time. https://github.com/MilkyWay008/Hermes-OTG

  4. gaojian125 commented on Aug 31, 2026

    @gaojian125
    Author

    Hi @shanselman — bumping this since it's gone ~10 days without a maintainer response. @clawsweeper already confirmed the root cause: the SetInformationJobObject(JobObjectUILimitInformation) failure returns 0x80070057, and wxc-exec.exe is treating it as an ordinary command result rather than a SandboxUnavailableException. So the host-fallback path never engages and every system.run on this Windows node just dies.

    I want to save you some triage time with two concrete data points:

    1. fix(mxc): PowerShell fails in the Windows node sandbox #1147 does not fix this. I enabled the "Allow Windows UI APIs" toggle (shipped in v2026.7.1 per fix(mxc): PowerShell fails in the Windows node sandbox #1147), restarted the app fully, and the error is identical. The job-object limit mechanism is separate from the Win32k-disable path you addressed in fix(mxc): PowerShell fails in the Windows node sandbox #1147 — so this needs the backend-classification fix, not the toggle.
    2. This pairs with Windows node system.run always times out on gateway (fixed ~30 s RPC limit) — MXC sandbox takes 27–53 s per invocation, result #1190. Artem's issue (exec succeeds but the result is dropped by the hard-coded 30 s gateway node.invoke RPC timeout) is the mirror side of the same MXC sandbox problem: per-invocation cold-start AppContainers that are slow and unpredictable (27–53 s). Together they block essentially all remote command work on Windows nodes.

    The specific thing we need from you as a maintainer is the security-boundary classification ClawSweeper flagged: recognize the exact verified job-object-initialization signature as "MXC backend unavailable" so the existing approved host-fallback policy can apply — not a broad fallback for arbitrary failures, which would break containment. That's the narrowest safe repair, and it's what @clawsweeper recommended.

    One more thing I noticed while checking: MXC SDK was upgraded to 0.8.0 in #1234 (committed Aug 26). Could that bump already include any relevant job-object / AppContainer initialization fixes, or would it still need the separate backend-classification change above? If 0.8.0 changes the failure shape, I can re-test on my end and report back.

    Happy to provide a remote-access session, additional procmon captures, or anything else needed to move this to a fix. cc @clawsweeper

  5. added
    P2
    and removed
    P1
    on Sep 4, 2026
  6. added
    clawsweeper:needs-live-repro
    issue-rating: 🐚 platinum hermit
    and removed
    issue-rating: 🦞 diamond lobster
    clawsweeper:source-repro
    on Sep 4, 2026
  7. added this to the 9/30 MXC Release milestone on Sep 4, 2026
  8. github-actions commented on Sep 19, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale due to inactivity.
    Please add updated OpenClaw Windows details or it will be closed.

  9. github-actions commented on Sep 26, 2026

    @github-actions
    Contributor

    Closing due to inactivity.
    If this still affects OpenClaw Windows, open a new issue with the current version, logs, and fresh reproduction details.

  10. locked as resolved and limited conversation to collaborators on Sep 28, 2026
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

    P2clawsweeper:needs-live-reproclawsweeper:needs-maintainer-reviewclawsweeper:needs-security-reviewclawsweeper:no-new-fix-primpact:otherissue-rating: 🐚 platinum hermitstale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions