Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.901.5003.0
What subscription do you have?
ChatGPT Pro 20x
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64 Using the Windows Codex desktop app with a project workspace in WSL. Workspace path: /home//projects/ (anonymized)
What issue are you seeing?
Computer Use fails to initialize when using the Windows Codex app with a project workspace in WSL. This repeatedly blocks visual verification after UI changes.
Terminal commands and project file access work in the same workspace, but the node_repl call used to initialize Computer Use fails before any browser interaction occurs.
Steps to reproduce
- Open a project located in the WSL filesystem in the Windows Codex app.
- Start a task in that workspace.
- Ask Codex to use Computer Use for UI visual verification.
- The agent attempts to initialize Computer Use through node_repl:
if (!globalThis.sky) {
const { sky } = await import("@oai/sky");
globalThis.sky = sky;
}
nodeRepl.write("Computer Use initialized");Actual behavior
The tool call fails with the following error. The workspace path below has been anonymized:
tool call error: tool call failed for `node_repl/js`
Caused by:
Mcp error: -32602: js: codex/sandbox-state-meta:
sandboxCwd is not a local file URI:
file:///home/<user>/projects/<project>
The failure occurs during runtime initialization, before navigating to or interacting with a webpage.
Expected behavior
Computer Use should initialize successfully for a WSL-backed workspace.
If this environment combination is currently unsupported, the app should clearly explain the limitation and provide a supported workflow for visual verification.
Troubleshooting already attempted
- Updated the Codex app.
- Fully quit and restarted the app.
- Retested initialization; the same error persists.
- Confirmed that terminal commands and project file access work in the workspace.
Impact
This repeatedly prevents the agent from completing visual verification after frontend changes, even though code editing and terminal operations work.
Could you confirm whether this is a bug or a current limitation of Computer Use with WSL workspaces?
What steps can reproduce the bug?
- Open the Windows Codex desktop app (version 26.901.5003.0).
- Use a project workspace located in WSL, such as /home//projects/.
- Ask the agent to use Computer Use to visually verify a local web page.
- The agent calls node_repl/js with the following initialization code:
if (!globalThis.sky) {
const { sky } = await import("@oai/sky");
globalThis.sky = sky;
}
nodeRepl.write("Computer Use initialized");- The call fails before any browser interaction with:
Mcp error: -32602: js: codex/sandbox-state-meta:
sandboxCwd is not a local file URI:
file:///home/<user>/projects/<project>
The workspace path above is anonymized. Terminal commands and project file access work in the same task. Updating and fully restarting the app did not resolve the issue.
What is the expected behavior?
Computer Use should initialize successfully when the Windows Codex app is working with a WSL project, allowing the agent to complete browser-based visual verification.
If Computer Use with WSL workspaces is currently unsupported, the app should clearly explain this limitation and provide a supported alternative, rather than failing during initialization with a low-level workspace URI error.
Additional information
No response
Activity
github-actions commentedon Sep 5, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
IDK-CCC commentedon Sep 5, 2026
Thanks for flagging the related issue. I reviewed #41774 and its parent issue #41525.
My report shares the same “sandboxCwd is not a local file URI” error as #41774, but there is a potentially relevant difference:
#41525 appears to focus on legacy tasks with malformed Windows-form working directories where shell commands also fail.
Could a maintainer confirm whether the existing issue also covers this native WSL workspace case? I’m happy to consolidate if it does.
romanmatena commentedon Sep 25, 2026
I can reproduce this on a newer Windows Codex desktop build.
Environment:
/mnt/c/Users/<user>/Documents/Codex/...(Windows-hosted folder opened through WSL)01a0d386-2e19-7200-9abb-5bdc54f5647fComputer Use fails before initialization with:
In the same session, ordinary shell tool calls also currently fail before command execution with a related mount-validation error:
Running the same read-only command with explicit elevated sandbox permission succeeds, which suggests the failure is in sandbox setup/path translation rather than the command itself. The app reports itself up to date. This blocks both Computer Use and routine local tool calls in the WSL-backed workspace.
zwingsstudio commentedon Sep 30, 2026
Additional reproduction on September 30, 2026, with bundled Linux Codex reporting
codex-cli 0.159.2and a native WSL workspace under/home/<user>/projects/<project>(anonymized). Desktop app version was not captured.Even a minimal call with no Computer Use imports:
fails before the supplied JavaScript runs:
We also encountered a separate shell-launcher failure in the same chat: normal shell calls initially returned a generic ENOENT; a PTY call identified a missing
.../.codex/tmp/arg0/codex-arg0<session>/codex-linux-sandbox.Recreating that exact missing session directory through Windows PowerShell and restoring the helper symlink to the verified running Linux Codex executable recovered ordinary sandboxed shell execution, PTY commands, file reads, and temporary-file writes, without an app restart or sandbox configuration changes.
The detailed, anonymized steps and verification are here:
#33560 (comment)
After that shell repair, a fresh
node_repl/jsprobe still returned the URI error above. The launcher workaround does not fix Computer Use initialization, and it is not a remedy for the differentunsupported host mount at /mnt/wslg/distroerror reported earlier in this thread.This provides another case where ordinary WSL tool execution works while the Node REPL request is rejected during sandbox metadata validation.
enjibby commentedon Oct 6, 2026
Also reproduced on Windows desktop package
OpenAI.Codex 26.930.4958.0, with desktop-bundled WSL backendcodex-cli 0.160.0, Ubuntu 24.04.1 LTS under WSL2 (Linux architectureaarch64). Submitted at the affected user's request; paths are anonymized.Even this minimal Node call fails before JavaScript runs:
Fully restarting Codex did not resolve it.
This installation also had missing WSL sandbox launchers under the shared Windows-backed Codex home. After isolating the WSL arg0 directory with a native Linux bind mount and restoring the live helpers, ordinary sandboxed shell execution, project reads, and permitted workspace writes work, while writes outside the permitted roots remain blocked. The Node URI error is unchanged after that repair, demonstrating that it remains independently reproducible once shell sandbox startup is working. Launcher recovery details are posted on #50347.
Please validate/resolve the workspace URI against the WSL execution context, or clearly report any unsupported host combination. This currently prevents Node-based tools from initializing in an otherwise working WSL project.
iivoilov commentedon Oct 14, 2026
Independent follow-up, investigated on 2026-10-14: Windows-native
node_repl.exefrom desktop packageOpenAI.Codex 26.1007.2314.0rejects POSIXsandboxCwdmetadata before JavaScript executes. The affected installation used Windows 11, Debian WSL2 and bundled Linux backendcodex-cli 0.162.0-alpha.17.2; standalone CLI was0.162.1.An offline MCP probe launched a separate bundled Windows Node REPL with a disposable Codex home, initialized MCP, and called
jswith inert JavaScript andsandboxCwd: file:///home/developer/projects/demo. No model request, Computer Use import, browser action, or project access was needed. It returned:Actual desktop Computer Use initialization also failed at
mcp__node_repl__jsbefore browser selection. The user-provided screenshot shows the same-32602rejection for a Windows-hosted task folder represented as a POSIXfile:///mnt/c/...URI. This corroborating desktop observation was not independently replayed; the raw desktop tool trace was unavailable. The exact package version belongs to the inspected installation/offline probe, not a version independently read from that screenshot.Ordinary sandboxed shell execution in the original Debian workspace was restored by a separate missing-helper recovery, while Computer Use still failed. This confirms the distinction already reported here: WSL shell recovery does not repair Computer Use. The controlled cleanup reproduction and detailed verification are in the technical report on #49980.
The rejecting message is in the bundled Windows binary. Its server implementation is absent from the inspected public checkout; the exact proprietary decision routing WSL metadata into it remains unverified. Direct probes accepted Windows drive and WSL UNC URIs far enough to execute an inert throw, but that does not establish sandbox enforcement or a working Computer Use solution.
At pinned public commit
97771b1d78cf6366bc3946fe9e4bbca4ebee31d1, the core already contains multiple environment attachments (experimental thread/turn APIs), per-commandenvironment_idrouting, executor registration, environment-aware MCP bindings and environment-scoped permission mechanisms. An offline probe queried two Linux executors in one app-server; no heterogeneous desktop workflow or security enforcement was demonstrated. See the desktop architectural proposal for source links and acceptance criteria.Please give Windows Computer Use a consistent Windows execution context independent of WSL workspace location, with matching cwd, launcher, permission roots, target identity and app approvals. Capture those fields together at the producer/consumer boundary; changing only the URI spelling is insufficient. If a supported desktop binding mechanism already exists, please document it.
Reviewed regression patches:
wsl-uri-regression.patchadds public host-boundary tests only; it does not fix the proprietary Node REPL. No disabled sandbox validation, unsandboxed fallback, executable override, or proprietary binary patch is proposed.PretaskMike commentedon Oct 17, 2026
Additional reproduction on 2026-10-17, with a Windows-hosted workspace accessed through WSL:
26.1007.9446.0(Get-AppxPackage OpenAI.Codex)codex-cli:0.162.0-alpha.17.2/mnt/c/Users/<user>/...runCodexInWindowsSubsystemForLinux = true; configurednode_replserver is the bundled Windowsnode_repl.exeAn inert
node_repl/jscall,nodeRepl.write('read-only probe');, fails before its JavaScript runs:WSL shell commands, project file reads/writes, and invocation of installed Windows Blender and Godot executables from the same session work. This isolates the failure to the Node REPL/Computer Use initialization boundary, rather than WSL being unavailable. I did not rewrite the URI, alter sandbox permissions, or replace the server. This newer desktop build remains affected. A consistent supported Windows UI execution context or WSL-compatible bridge appears necessary; I have not tested either as a fix.
Lemonawa commentedon Oct 24, 2026
Additional reproduction on October 24, 2026, with a Windows-hosted workspace accessed through WSL (
/mnt/c/Users/<user>/Documents/Codex/<workspace>, anonymized).The Computer Use initialization call was:
It failed at the
node_repl/jstool boundary:Resetting the JavaScript kernel succeeded, but retrying initialization immediately produced the same error. No app enumeration, screenshot, mouse input, or keyboard input was reached. Ordinary shell commands and file reads work in this same WSL-backed chat. The installed Computer Use skill bundle reports version
26.1016.61520; the desktop app version was not captured, so this is not an app-version claim.This materially blocks my workflow: my main development tools and environments are in WSL/Linux, so switching the agent to native Windows would disrupt that setup. Computer Use is unavailable from that workflow even though ordinary development tools remain usable.
Could a maintainer confirm the canonical tracking issue, whether Windows Computer Use from WSL-backed chats is currently supported, and whether a fix or a supported workaround is planned? If this belongs under another issue, please consolidate this reproduction there. A public status update would help affected WSL users plan their work.