Skip to content

Windows app 26.1021.31345: Chrome and Computer Use startup fails with permission path cannot be represented losslessly #56924

Open

Description

@alenljubisic-pixel

Summary

On native Windows, browser automation and Computer Use cannot initialize after desktop app updates. The user reports approximately two days of blocked work despite restarting/updating the app and keeping the authenticated Chrome window open.

Current versions

  • Desktop app: 26.1021.31345
  • Build: 21828
  • Release channel: prod
  • The app update checker reports up_to_date on 2026-10-25.
  • Installed Chrome extension versions reported by the bundled diagnostic: 1.26.1015.10801_0 and 1.26.1020.11845_0.

Read-only diagnostics

The bundled Chrome extension diagnostic reports installed=true and enabled=true. The native-host manifest diagnostic reports correct=true. The failure occurs before browser inventory or any authenticated tab is returned.

Supported Computer Use initialization:

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

Result:

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

The supported browser inventory call await cua.getState() also fails at startup, sometimes with:

trusted Node process exited unexpectedly; kernel reset, rerun your request

Ordinary default-sandbox PowerShell execution of Get-Location in a native D-drive project fails with:

Failed to create unified exec process: helper_unknown_error: setup refresh had errors

Approved elevated read-only shell commands do work. Local builds and isolated automated app tests also work. This is therefore not evidence that Chrome login, project contents or the underlying filesystem are broken.

Impact and expected behaviour

The agent cannot reach the user's already authenticated Chrome tabs to administer hosting or back up a database. A separate developer-browser profile is not an adequate substitute because it lacks the user's sessions. Please restore initialization of the supported Chrome/Computer Use runtime without requiring browser-profile recreation or repeated logins.

Related report and uncertainty

Related: #48443, which includes the same permission serialization error and native Windows observations. No WSL transition has been established as a trigger in this environment. The exact rejected permission entry and whether this is the identical underlying defect remain unknown.

Please add actionable diagnostics identifying the rejected path/permission entry and provide a supported recovery procedure. No browser cookies, passwords, session URLs, private project content, or raw session logs are attached.

Observed/reproduced: 2026-10-25, Europe/Belgrade.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Oct 25, 2026
  2. nebu0308 commented on Oct 27, 2026

    @nebu0308

    Additional native Windows reproduction: drive-root write permission persists in fresh chats

    I am experiencing the same Computer Use initialization failure on native Windows 11.

    Environment

    • Codex Desktop: 26.1021.31345, Build 21828
    • Computer Use runtime: 0.0.35 (20261022031940-486a6d3fcc3f)
    • Bundled Node: 24.22.1-cua.1
    • Sandbox: workspace-write
    • Common config.toml: writable_roots = []

    Observed failure

    Computer Use initialization fails before any screen capture or browser interaction:

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

    The environment's effective permission profile contains an explicit write grant for the Windows drive root D:\, even though the current shared configuration has writable_roots = [].

    I performed one approved node_repl session reset followed by exactly one official initialization attempt. The reset succeeded, but initialization failed again with the same error.

    I also created a completely new Codex chat under the existing project. Read-only inspection confirmed that the new chat's effective permissions still include D:\ with access="write".

    Therefore, creating a new chat does not avoid the broad permission grant in this environment. The source of that grant has not yet been identified.

    Relevant comparison

    An earlier successful Computer Use session used a specific workspace subdirectory and did not report a drive-root-wide permission grant. The failing session includes D:\ as an additional writable root.

    This is consistent with the Windows drive-root serialization findings discussed in #48443. However, I have not performed an exact single-variable A/B test on the current failing runtime, so I cannot conclusively identify the rejected permission entry.

    Requested assistance

    Could the maintainers provide a supported method to inspect and revoke a drive-root-wide permission from the effective session permission profile without directly editing internal SQLite databases or JSON records?

    It would also help if MXC initialization reported the exact rejected permission entry and its normalized representation.

    Ideally, a drive-root path would be handled correctly or rejected when configuring permissions rather than preventing Computer Use from starting.

    No filesystem permissions, application settings, project files, or internal databases were modified during this investigation. No repeated initialization attempts were performed.

    I am keeping the affected Computer Use workflow paused pending a supported recovery procedure.

  3. mrsigx commented on Oct 30, 2026

    @mrsigx

    Single-variable A/B on native Windows: a drive-root project folder is the trigger

    This follows up on the earlier comment here asking for an exact A/B test, and on the drive-root reports in #49370 and #48443.

    Environment

    • Windows 11 Pro 25H2, build 26200.9711
    • Codex Desktop package OpenAI.Codex_26.1027.3384.0; running core codex-cli 0.166.0-alpha.5.1
    • Sandbox log: Windows sandbox selection: mxc (although config.toml sets [windows] sandbox = "elevated")
    • Permission mode: default (workspace-write, managed restricted profile)

    Test. Each case is a fresh chat whose only request is one node_repl call, nodeRepl.write('JS_REPL_OK'). Nothing else changed between cases: no settings, permissions, or app restarts.

    Chat's workspace folders (from the project's folder list) Result
    N:\ (drive root) plus five unrelated folders that no longer exist Fails: failed to prepare MXC sandbox: permission path cannot be represented losslessly (the first call shows trusted Node process exited unexpectedly; kernel reset, and the rerun shows the lossless error)
    N:\ only (a second project with that single folder) Fails: same error (seen by the user; the transcript was not yet on disk when checked)
    N:\<subfolder> only (a new project) Passes: JS_REPL_OK
    No project (the app's default %USERPROFILE%\Documents\Codex\<date>\<slug> folder) Passes: JS_REPL_OK

    Local history matches. Every node_repl/cua_repl code call under workspace-write from 2026-09-27 to 2026-10-29 had N:\ as a workspace root, and all of them failed: 10 with this error, 3 with other errors. In the same period, 1,444 calls under full access completed. Two of the failures (2026-09-27 and 2026-10-04) had N:\ with no other user folders, so the missing folders are not required.

    Where the drive-root grant comes from (answering the earlier question): the project's folder list. Every chat opened in a project gets each of the project's folders as a writable root, so a project whose folder is a drive root gives every new chat X:\ with access = "write". Starting a chat with no project, or opening a project rooted at a subfolder, avoids it with no settings change.

    Code location (hypothesis about the mechanism). The message comes from raw_path_from_uri in codex-rs/protocol/src/permissions.rs (PathUri → legacy string → PathUri must round-trip). The MXC launcher hits it while serializing MxcCommand.permissions (codex-rs/mxc-sandbox/src/lib.rs, create_command_args). The drive root itself serializes fine into the session's turn_context. So the rejected entry is probably derived from the drive root during MXC policy preparation, for example protected subpaths or materialized entries, rather than being N:\ itself. Reporting the rejected entry in the error would confirm this.

    Requests

    1. Accept drive-root workspace folders under MXC, or reject them clearly when the project is configured.
    2. Include the rejected path, and its normalized form, in the permission path cannot be represented losslessly error.

    Workaround. For browser or Computer Use work, start the chat with no project, or in a project rooted at a subfolder, never at a drive root. No permissions, ACLs, sandbox settings, or internal databases were changed during this investigation.

  4. cy0341-design commented on Nov 5, 2026

    @cy0341-design

    Additional native Windows reproduction, 2026-11-05.

    • Codex desktop 26.1027.51404, build 23880, prod channel.
    • Installed Windows package: 26.1027.6604.0.
    • Bundled CLI: 0.166.0-alpha.5.1.
    • Computer-use runtime: cua-node 0.0.35/20261022235854-0e24579b4572; Node 24.22.1-cua.1.
    • Windows version reported by a protected CLI control test: 10.0.26200.9711.

    Minimal reproduction using the supported node_repl tool, even without importing @oai/sky:

    nodeRepl.write('kernel-start-check');

    Result:

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

    The error persists after a full app restart and explicit JavaScript kernel resets. Both the supported @oai/sky initialization and cua.getState() fail before app inventory. As a control, the bundled CLI's sandbox command using the default :workspace profile can run a Windows version check with a C-drive subdirectory or the D-drive root as cwd (launched via the separately approved shell execution path). This narrows the observed failure to the computer-use JavaScript kernel startup boundary; it does not identify the rejected permission entry or establish the exact underlying cause.

    Please provide a supported recovery/update path and diagnostics naming the rejected permission entry. No sandbox/security settings were weakened, and no private paths, session transcripts, application contents, or credentials are attached. The affected user explicitly authorized this error report.

  5. yohecaceres commented on Nov 8, 2026

    @yohecaceres

    Windows: CUA/node_repl fails before browser discovery with “permission path cannot be represented losslessly”

    Problem

    The built-in computer/browser controller cannot start its kernel in the Windows desktop app. It fails before enumerating browsers or tabs. The problem is reproducible across two chats in the same project and persists after restarting both the app and the computer.

    This is not a claim that every project or Windows installation is affected. The particular permission path causing the failure is still unknown.

    Environment

    • Windows build: 26300.9818; registry DisplayVersion: 26H2.
    • Desktop package: OpenAI.Codex_26.1103.4239.0_x64.
    • Current app-bundled engine: codex-cli 0.167.0-alpha.3.2.
    • User config has windows.sandbox = "unelevated".
    • First matching failure retained in this conversation: 2026-11-04, 19:05:43 UTC. Initial conversation metadata identifies 0.166.0-alpha.5.1, but this does not establish the exact component version used by every call or prove an update caused the problem.

    Reproduction

    1. Open the desktop app on Windows in an existing local project.
    2. Reset the CUA JavaScript controller.
    3. Ask the agent to inspect available computer/browser surfaces:
    await cua.getState()

    Actual result

    node_repl kernel exited unexpectedly
    Error: failed to prepare MXC sandbox: permission path cannot be represented losslessly
    

    One attempt instead returned trusted Node process exited unexpectedly; kernel reset, rerun your request; retrying reproduced the MXC error.

    Current local diagnostics attribute the stderr message to the bundled MCP process at this anonymized location:

    <Codex installation>/app/resources/cua_node/bin/node.exe
    

    No browsers or tabs are enumerated. Website login is not reached.

    Expected result

    The controller starts and enumerates authorized surfaces. If a permission path is unsupported, diagnostics identify the offending path or at least its rule/category so it can be corrected without disabling isolation.

    Checks performed

    • Reset the CUA controller, restarted the app, tried another chat in the same project, and restarted Windows: the failure persisted.
    • The official MXC probe succeeds using the app-bundled executable, not the separately installed CLI:
    codex -c windows.sandbox=mxc sandbox --include-managed-config --permission-profile :workspace -- cmd.exe /d /c echo MXC_OK
    

    Output: MXC_OK; exit code: 0.

    • A normal PowerShell command in the conversation with its default permissions succeeds.
    • A separate existing Playwright workflow can navigate normally, including an authenticated project administration page. That does not repair or validate CUA; it shows that website authentication and browser automation are not universally broken.
    • A temporary features.prefer_mxc = false user setting did not resolve CUA startup after restarting the app. That temporary setting has been removed; recovery copies were retained.
    • No machine requirements.toml was created, no global MXC prohibition was added, and no legacy elevated setup was performed.
    • Read-only config/read and configRequirements/read calls through a fresh app-server using the same bundled executable and Codex home showed the temporary preference and unelevated, with requirements = null. This was not a read of the active CUA child process policy, and cannot rule out app-specific selection or other runtime controls.
    • The legacy .sandbox/sandbox.log is old and contains no matching failure. The current local Codex log store does contain the bundled CUA process stderr quoted above. The full store is not attached because it includes unrelated private data.

    Request

    Please identify which permission-path conversion fails in CUA/node_repl, how to obtain the effective policy and relevant logs for that specific child process, and whether this is a known Windows controller issue. A fix or diagnostic procedure preserving isolation would be preferable to a machine-wide MXC prohibition.

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

    appbrowserbugcomputer-usesandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions