Skip to content

Windows dot-delegated tasks: cross-thread AbsolutePathBuf failure and MXC Computer Use startup differential diagnostics #54455

Open

Description

@chrishikki-design

Summary

User-authorized diagnostic report for two unresolved Windows desktop / dot-delegated task failures. Please triage the cross-thread turn-parameter error and the Computer Use executor startup failure. These occur in the same workflow, but a common root cause has NOT been established.

Related reports:

This report adds a same-machine comparison between a working local task and a failing dot-delegated task, plus a failed post-restart cross-thread test.

Environment

  • Windows 11 25H2, build 26200.9711, x64
  • Installed desktop package observed during diagnosis: 26.1007.9446.0
  • Selected CLI: codex-cli 0.162.0-alpha.17.2
  • CUA runtime cache: cua_node/a9ba6825a525118c
  • Selected CLI cache: bin/9614f1d9b40d9c4f/codex.exe
  • Diagnostic date: 2026-10-16, Asia/Taipei
  • Local task coordination works; affected dot-delegated task is reported as hostId durable with Windows local command execution.

A. Cross-thread messaging rejected before a new turn starts

Reproduction

  1. From an existing local desktop task, call the official send_message_to_thread tool targeting an existing dot-delegated diagnostic task.
  2. Send a minimal plain-text request to acknowledge receipt, with no file paths, attachments, model overrides, or requested actions.
  3. Test with the returned durable host ID and also with hostId omitted.
  4. User fully restarts the desktop app; repeat the minimal test.

Actual

Both variants and the post-restart test return:

invalid turn/start params: AbsolutePathBuf deserialized without a base path

Matching desktop log:

method=turn/start
errorCode=-32602
failureReason=invalid_config

Reading the target's history still works. Readback after the post-restart test shows no acknowledgement/new receiving turn for our test. Another diagnostic message delivered by the dot's own cloud_threads route had previously succeeded; that is not evidence our local send_message_to_thread call succeeded.

The returned cwd has this REDACTED shape:

/tmp/codex-cloud-agent-<id>/app_servers/thread_service/workspace/C:\Users\<user>\Documents\<workspace>\task

Read-only bundled-code inspection found that sendFollowUpMessage obtains cwd from conversation state (fallback "/") and uses it for workspaceRoots during resume. The exposed tool does not accept a cwd/workspaceRoots override.

This is evidence worth investigating, not proof that this cwd is the precise offending field. Please identify which AbsolutePathBuf field fails and fix host-appropriate path serialization/base resolution. Do not require users to weaken permissions or edit task databases.

B. Computer Use startup fails in the dot-delegated task

Official test:

// separate calls
await cua_repl.js_reset();
await cua.getState();

(The reset is the tool named mcp__cua_repl.js_reset; getState is executed through mcp__cua_repl.js.)

Reset succeeds; getState fails before obtaining a screenshot:

node_repl kernel exited unexpectedly
MXC launcher: cannot locate required Windows platform directory: HRESULT 0x80070003
kernel_status: exited(code=1)
reason: stdout_eof
stream_error: null

Observed failure: 2026-10-16 08:45:15 Asia/Taipei. No mouse/keyboard test followed the failure.

Same-machine differential probe

Using the same selected CLI, the official compatibility command:

& $selectedCodex -c windows.sandbox=mxc sandbox --include-managed-config --permission-profile :workspace -- cmd.exe /d /c echo MXC_OK
  • Local task: MXC_OK, exit 0.
  • Dot-delegated task at 2026-10-16 08:52:41–08:52:42 Asia/Taipei: inner probe exit 1:
Error: failed to prepare MXC sandbox: native MXC is unavailable on this executor

The enclosing PowerShell script exits 0; this must not be mistaken for MXC success.

Within the delegated task:

  • SHGetKnownFolderPath for ProgramFiles, ProgramFilesX86, and ProgramData returns HRESULT 0 and existing paths.
  • SystemRoot, WINDIR, TEMP, TMP, LOCALAPPDATA, ProgramFiles, ProgramFiles(x86), ProgramData all point to existing locations.
  • TEMP/TMP/LOCALAPPDATA are redirected under:
    %LOCALAPPDATA%\Packages\sandbox.{}\AC (Temp for TEMP/TMP)
  • CLI startup additionally reports os error 5 while attempting its own stale arg0 cleanup / PATH aliases under %USERPROFILE%.codex\tmp\arg0.
  • No retry to bypass those restrictions was performed.

The local task previously obtained a real Notepad screenshot using its supported node_repl + @oai/sky route. This does not demonstrate that the delegated task's cua_repl is functional.
The inspected unified-computer-use manifest exposes CUA_REPL_ENABLED_SURFACES=browser, so fixing kernel initialization alone must not be assumed to enable native desktop screenshots.

Requested fixes / acceptance

  1. Fix cross-thread turn/start parameter/path handling for cloud-coordinated Windows tasks; verify with an acknowledgement actually recorded in the receiving task.
  2. Diagnose the exact failed platform-directory lookup in the delegated CUA launch context, including executor/sandbox nesting and environment propagation. The compatibility probe inside that executor is a different launch context from the failing CUA kernel and does not alone prove the cause.
  3. Restore supported Computer Use initialization in that task type, and clarify native-desktop capability availability. Verify an actual screenshot from the affected delegated task, not from a separate working local task.
  4. Provide actionable diagnostics naming the failed path/API rather than the generic directory error.

Privacy and limits

No credentials, private thread IDs, user-specific absolute paths, full logs, business records, or desktop screenshots are attached. No system/security/network settings, services, or app binaries were modified. Neither issue is claimed fixed. Additional private identifiers should be collected through official private support/feedback if needed.

Follow-up: cross-thread failure narrowed, still unresolved (2026-10-16)

A further authorized screenshot-test message failed at 09:07:53 Asia/Taipei (01:07:53 UTC), before a receiving turn started. The target remains readable through the official read_thread tool and has no new receiving turn for this request.

Immediately before the failure, the desktop log recorded:

requestRuntimeWorkspaceRootCount=0
requestSandboxPolicyType=workspaceWrite
requestSandboxWritableRootCount=1
requestPermissionProfile=null
useAppServerPermissionDefault=false
method=turn/start
errorCode=-32602
failureReason=invalid_config
invalid turn/start params: AbsolutePathBuf deserialized without a base path

Together with the mixed-platform cwd shape in section A, the inherited sandbox writable-root field is a candidate for investigation. Its raw value is not present in the inspected log, so neither the exact offending path nor the failing field is confirmed. Related field-level analysis: #54262 (comment). That report logs useAppServerPermissionDefault=true; our failing request logs false, so these are not identical configurations.

The currently exposed cross-thread messaging tool has no cwd, workspaceRoots, or sandbox writable-root override. We have not changed task databases, patched application binaries, or relaxed sandbox permissions to force delivery. Please provide a supported repair that preserves the existing conversation and effective restrictions.

The cross-thread error remains unresolved, and the affected delegated task has not produced the requested screenshot. A successful screenshot in a separate local task must not count as acceptance. Please verify both actual message receipt in the affected task and its own supported screenshot capability after repair.

Activity

  1. added
    bug
    app
    windows-os
    app-server
    dots
    sandbox
    on Oct 16, 2026
  2. SGIBassistant commented on Oct 16, 2026

    @SGIBassistant

    Direct messages in an existing dot-created Windows task fail with ‘invalid turn/start params: AbsolutePathBuf deserialized without a base path’. Reopening and sending a neutral message still failed on 16 October at 01:42 UTC. Parent-dot messages to the same task succeed, and the absolute Windows working directory exists. App version: 26.1007.71326; Windows package: 26.1007.9446.0. Please investigate a repair that preserves the existing conversation and permissions.

  3. chrishikki-design commented on Oct 16, 2026

    @chrishikki-design
    Author

    Follow-up after updating the desktop app on 2026-10-16: Computer Use still fails to initialize, but the error has changed.

    • Observed Computer Use plugin version: 26.1013.31256. This is the plugin version, not a verified desktop app version.
    • The existing task did not expose the official Computer Use tools. A fresh dot-delegated task on the same Windows computer exposed mcp__cua_repl.js and mcp__cua_repl.js_reset.
    • At 15:18:42–15:18:57 UTC, cua.getState() failed. Resetting the REPL and retrying produced the same failure:

    node_repl kernel exited unexpectedly
    Error: failed to prepare MXC sandbox: MXC requires nonempty Unicode host SystemDrive
    exit code: 1; reason: stdout_eof; stream_error: null

    The earlier, pre-update failure was “MXC launcher: cannot locate required Windows platform directory: HRESULT 0x80070003”.

    A read-only check in the ordinary PowerShell execution environment at 15:19:49–15:20:17 UTC found SystemDrive = 'C:' (length 2; Unicode character codes 67, 58), and C:\ exists. CIM was unavailable, so there was no independent OS-level confirmation. This rules out an empty SystemDrive only in that ordinary shell; the environment actually supplied to the Computer Use child process remains unknown.

    Please inspect the SystemDrive value supplied to the failing Computer Use MXC launch, including environment propagation between the task, launcher, and child process. The cause is not yet established.

    No system/environment/registry/security settings were changed, and no app or OS restart was performed as part of this retest. No screenshot was obtained. Tool availability in the fresh task does not establish that Computer Use works or that the separate cross-thread issue is fixed.

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

    appapp-serverbugcomputer-usedotssandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions