You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows Computer Use node_repl exits before @oai/sky initialization: permission path cannot be represented losslessly #49370
appIssues related to the Codex desktop appbugSomething isn't workingcomputer-usesandboxIssues related to permissions or sandboxingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
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.
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.
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.
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.
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.
appIssues related to the Codex desktop appbugSomething isn't workingcomputer-usesandboxIssues related to permissions or sandboxingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Sep 29, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
PavelBannikov commentedon Oct 7, 2026
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.
PavelBannikov commentedon Oct 7, 2026
Follow-up with findings from local startup logs.
Environment:
features.prefer_mxc=trueThe computer-use native pipe reports ready, and the
cua_repl/node_replMCP servers reachready. However, the working kernel exits during MXC preparation, before any browser page interaction: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:
The affected file was
node_repl.exe; earlier setup logs also mentionVCRUNTIME140_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.
adminassistant-sudo commentedon Oct 14, 2026
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
Observed error:
Expected: node_repl starts, and the browser tool can list existing tabs.
Isolation evidence
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.
jorgeschnura commentedon Oct 21, 2026
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-writethreads with auto review, elevated Windows sandbox.C:\andG:\failed every time. The thread cwd wasC:\and the writable root wasG:\. The documented@oai/skyinitialization ended withnode_repl kernel exited unexpectedly,kernel_status: exited(code=1),reason: stdout_eofandkernel_stderr_tail: Error: failed to prepare MXC sandbox: permission path cannot be represented losslessly. The string is incodex.exe(codex_protocol::permissions), next toinvalid read-deny cwd:.C:\Users\<user>\<project>) completed without error.G:, not its root. A new thread in that project has cwdC:\Users\<user>, and@oai/skyinitializes withisError: false.G:drive itself. A thread whose cwd was a folder onG: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.