Skip to content

Windows Computer Use node_repl exits before @oai/sky initialization: permission path cannot be represented losslessly #49370

Open

Description

@mickbhatt

Related: #48443. Windows-native Computer Use reproduction on Codex desktop 26.924.22138 build 11645, runtime/command runner 0.158.0-alpha.2.1.

Documented initialization:

if (!globalThis.sky) {
  const { sky } = await import('@oai/sky');
  globalThis.sky = sky;
}

Failure before any window inspection or input:

node_repl kernel exited unexpectedly
kernel_status: exited(code=1)
kernel_stderr_tail: windows sandbox failed: permission path cannot be represented losslessly
reason: stdout_eof

Reproduced after explicit js_reset, full desktop app restart, and initialization from a second existing local project chat. Both chats use a native C: project directory. No WSL migration is established for this reproduction. Recent sandbox setup diagnostics report four write roots processed with errors=[], but do not identify the rejected permission path. Shell execution through the separately approved escalation path continues to work; Computer Use does not initialize. Supported browser runtime initialization also fails. No sandbox/ACL/security settings were changed to work around this.

Expected: supported Computer Use runtime initializes, or reports the exact malformed permission entry with a supported repair. Please investigate permission-path serialization at the node_repl Windows sandbox startup boundary. This blocks GUI testing before any desktop input.

This sanitized report is explicitly authorized for publication by the affected user. Private paths, account details, project contents and credentials are omitted.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    tool-calls
    on Sep 29, 2026
  2. github-actions commented on Sep 29, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. PavelBannikov commented on Oct 7, 2026

    @PavelBannikov

    Confirming the same issue on native Windows on October 7, 2026.

    Installed Windows package: OpenAI.Codex 26.1002.7124.0.
    Local workspace: C:.

    Browser control fails before any page opens:

    Error: failed to prepare MXC sandbox: permission path cannot be represented losslessly

    Diagnostics:
    kernel_status: exited(code=1)
    reason: stdout_eof
    stream_error: null

    Reproduced during the initial browser state query and when attempting to open https://example.org in the in-app browser.

    A fresh local chat, browser-tool session reset, and full Windows reboot did not resolve the issue.

    Please provide a supported workaround or diagnostics identifying the exact rejected permission-path entry.

  4. PavelBannikov commented on Oct 7, 2026

    @PavelBannikov

    Follow-up with findings from local startup logs.

    Environment:

    • Windows 11 Home, build 26200
    • Windows package: OpenAI.Codex 26.1002.7124.0
    • Desktop client version reported in logs: 26.1002.52244
    • Bundled CLI: 0.162.0-alpha.2
    • Configured Windows sandbox: elevated; app-server launch includes features.prefer_mxc=true

    The computer-use native pipe reports ready, and the cua_repl / node_repl MCP servers reach ready. However, the working kernel exits during MXC preparation, before any browser page interaction:

    Error: failed to prepare MXC sandbox: permission path cannot be represented losslessly
    kernel_status: exited(code=1)
    reason: stdout_eof
    stream_error: null
    

    MCP server readiness therefore does not confirm successful kernel initialization. The same MXC error is present in logs before and after the Windows reboot. The rejected permission-path entry is not identified in the available logs.

    Separately, a diagnostic run through the legacy Windows sandbox failed during runtime read/execute validation:

    helper_unknown_error: setup refresh had errors
    runtime read/execute validation failed
    open ACL target for root-only update
    os error 32
    

    The affected file was node_repl.exe; earlier setup logs also mention VCRUNTIME140_1.dll. This is a separate sandbox-backend observation, with no established causal link to the MXC error.

    For the MXC failure, diagnostics identifying the rejected permission-entry index and its path-conversion stage, with sensitive path components redacted, would help isolate the cause. No specific workspace location or path spelling has been confirmed as the trigger.

  5. adminassistant-sudo commented on Oct 14, 2026

    @adminassistant-sudo

    Windows browser helper exits before Chrome access

    Prepared: 2026-10-15
    Status: Reproducible in the current Codex desktop chat; no application or permission changes made.

    Minimal reproduction

    1. In an existing local Codex desktop chat on native Windows, invoke a trivial node_repl expression: 1 + 1.
    2. Separately invoke the supported browser tool's initial state query.
    3. Both fail before any Chrome tab is enumerated.

    Observed error:

    node_repl kernel exited unexpectedly
    kernel_status: exited(code=1)
    kernel_stderr_tail: Error: failed to prepare MXC sandbox: permission path cannot be represented losslessly
    reason: stdout_eof
    

    Expected: node_repl starts, and the browser tool can list existing tabs.

    Isolation evidence

    • The current chat's full visible filesystem permission profile passed an independent official Codex MXC sandbox probe, including a secondary-drive root write entry. That entry was also present during 145 earlier successful browser outputs. It is a candidate interaction, not an established cause.
    • The last confirmed successful browser output was 2026-09-22; the first exact error appeared 2026-09-26. Windows package events show Codex updates between those dates, but the exact build active at the first failure was not retained.
    • A process trace during failure found no sandbox child, consistent with failure while serializing the helper launch policy rather than within Chrome or the target website.
    • A current direct node_repl call and the browser tool both reproduce the same error. Resetting the browser session and restarting the app previously did not resolve it.
    • The installed Codex CLI reports 0.162.0-alpha.17.2. A local redacted codex doctor --json run reports sandbox.filesystem_paths=ok but says there were no explicit paths to probe; it does not inspect this chat's helper policy. It also reports a separate legacy elevated-setup failure, which is not evidence of this MXC path error.
    • No supported tool was found to read or edit the effective per-helper permission profile for this already-running chat. The desktop permission picker changes broad modes; project-folder edits would affect other chats. No A/B path removal was performed.

    Likely code boundary and requested diagnostic

    The error is returned by raw_path_from_uri in codex-rs/protocol/src/permissions.rs when conversion from PathUri through LegacyAppPathString and back changes the URI. FileSystemSandboxPolicy conversion maps entries without including their index in the error. Please report, with sensitive components redacted, the failing entry index/type, original URI form, reconstructed URI form, and which launch policy added the entry. Preserve Windows drive-root, extended-path, and UNC-root meaning at this serialization boundary, with regression tests using the actual failing profile before changing behavior.

    Sources:

    Repair acceptance

    A trivial node_repl expression starts; the browser tool lists the existing Chrome tabs; the previously requested page opens read-only; needed download-folder access remains available; other chats' settings remain unchanged. No site records were changed during this investigation.

  6. jorgeschnura commented on Oct 21, 2026

    @jorgeschnura

    Data point: drive-root project folders trigger it; ordinary folders fix it (native Windows, 2026-10-21).

    Environment: Codex desktop 26.1013.4894.0 (Windows x64), bundled CLI 0.163.0-alpha.10.2, workspace-write threads with auto review, elevated Windows sandbox.

    • Threads in a local project whose source folders were the drive roots C:\ and G:\ failed every time. The thread cwd was C:\ and the writable root was G:\. The documented @oai/sky initialization ended with node_repl kernel exited unexpectedly, kernel_status: exited(code=1), reason: stdout_eof and kernel_stderr_tail: Error: failed to prepare MXC sandbox: permission path cannot be represented losslessly. The string is in codex.exe (codex_protocol::permissions), next to invalid read-deny cwd:.
    • The same initialization in a new thread of a project whose root was an ordinary folder (C:\Users\<user>\<project>) completed without error.
    • We then replaced the drive roots in the affected project (Edit project → Source folders) with ordinary folders: the user profile folder as primary and a folder on G:, not its root. A new thread in that project has cwd C:\Users\<user>, and @oai/sky initializes with isError: false.
    • So in our case the trigger is a drive root used as a cwd or writable root, not a non-ASCII path or the G: drive itself. A thread whose cwd was a folder on G: with accented characters worked.

    This matches the earlier comment here that reported Local workspace: C:\. Workaround: don't use a drive root as a project folder; start a new thread after changing it, because existing threads keep their old cwd. Suggested fix: accept drive-root permission paths, or reject them when the project is created, and name the offending path in the error.

    No logs, conversation content or private paths are included. Posted with the affected user's authorization.

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

    appbugcomputer-usesandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions