Skip to content

[Windows][26.1002] Browser bootstrap fails with EPERM realpath; sandbox provisioning locks its own runtime #51972

Open

Description

@Gnomico

What version of the Codex App are you using (From “About Codex” dialog)?

The app's update-check tool reports 26.1002.52244, build 13536, release channel prod, status up_to_date.
Windows AppX package / codex doctor reports 26.1002.7124.0.
These are observed version sources; About dialog was not inspected.
Bundled Codex CLI: 0.162.0-alpha.2.

What subscription do you have?

ChatGPT authentication is configured. Exact subscription tier was not collected.

What platform is your computer?

Windows 11 Professional, Microsoft Windows NT 10.0.26200, x64.
Observed on October 8, 2026.

What issue are you seeing?

Browser control fails before it can connect to a browser or read any tab. The documented absolute-path import of the bundled browser client fails in the app-provided Node REPL:

Failed to resolve module "C:/Users/<redacted>/.codex/plugins/cache/openai-bundled/browser/26.1002.52244/scripts/browser-client.mjs":
EPERM: operation not permitted, realpath 'C:\Users\<redacted>\.codex\plugins\cache\openai-bundled\browser\26.1002.52244\scripts\browser-client.mjs'

Opening a browser tab, resetting the JavaScript kernel, and fully restarting Codex did not resolve this.

A separate, reproducible Windows sandbox provisioning failure appears in logs while Codex runtime processes are running:

runtime read/execute validation failed:
validate runtime read/execute access on <runtime>/bin/node_repl.exe:
open ACL target for root-only update:
The process cannot access the file because it is being used by another process. (os error 32)
setup error: setup refresh had errors

After stopping the browser service, the same provisioning failure targeted:
<runtime>/bin/node_modules/@oai/sky/bin/windows/swift/x64/VCRUNTIME140_1.dll.
The app automatically restarted codex-computer-use-swift.exe, which held that DLL.

What steps can reproduce the bug?

  1. In the affected Windows desktop app, ask Codex to control the built-in browser.
  2. In the app-provided Node REPL, follow the bundled Browser skill bootstrap:
const { setupBrowserRuntime } = await import(
  "C:/Users/<redacted>/.codex/plugins/cache/openai-bundled/browser/26.1002.52244/scripts/browser-client.mjs"
);
const agent = await setupBrowserRuntime();
const browser = await agent.browsers.getDefault();
nodeRepl.write(await browser.documentation());

The first import fails with the EPERM error above.

Diagnostic comparison in that same REPL:

const fs = await import("node:fs");
const p = "C:/Users/<redacted>/.codex/plugins/cache/openai-bundled/browser/26.1002.52244/scripts/browser-client.mjs";
await new Promise(resolve => fs.realpath(p, (error, value) => {
  nodeRepl.write({ standardRealpath: value, error: error?.code });
  resolve();
}));
try {
  nodeRepl.write({ nativeRealpath: fs.realpathSync.native(p) });
} catch (error) {
  nodeRepl.write({ nativeError: error.code, message: error.message });
}

Observed: callback-based fs.realpath succeeds with the canonical existing path; fs.realpathSync.native returns EPERM. File stat/lstat and reading the file from PowerShell succeed.

Separately, the bundled CLI command codex -s workspace-write sandbox C:\Windows\System32\whoami.exe fails with helper_unknown_error: setup refresh had errors while the app runtime files are in use.

What is the expected behavior?

The bundled browser-client module should import successfully under the normal sandbox, browser setup should connect, and Codex should be able to read a tab's state with normal browser permissions.

Windows sandbox provisioning should not fail because the app has already started its own runtime executables or DLLs.

Additional information

Troubleshooting actually performed:

  • Verified browser-client exists, is a regular file, and is readable.
  • Verified the runtime executable's SHA-256 matches the corresponding executable in the installed Windows AppX package.
  • Observed CodexSandboxUsers ReadAndExecute ACLs on runtime node_repl.exe and node.exe.
  • Reset the Node REPL kernel and retested.
  • Checked app updates: up_to_date.
  • Ran codex doctor --json: sandbox provisioning recorded helper_unknown_error.
  • Fully closed Codex and the confirmed browser helper processes, then ran the sandbox command independently. It succeeded with exit code 0 and executed as the restricted sandbox account.
  • Relaunched Codex. Browser-client import still failed with EPERM. The next app-triggered sandbox refresh again logged the in-use node_repl.exe failure.
  • No sandbox disabling, trust-validation patching, or broad ACL changes were applied.

Runtime manifest:

  • Node 24.21.0-cua.1
  • Runtime archive cua-node-0.0.29-20261003001300-807782c586fc-windows-x64.zip

Related but not identical reports: #37029 (earlier Computer Use lstat failure), #39399 (trusted RPC path validation failure). This report adds the callback/native realpath comparison and the reproducible runtime-file locking during provisioning on the October build.

The two failures may be related, but their causal relationship has not been established. Please investigate Windows native path canonicalization in the sandboxed module loader and provisioning/startup ordering for runtime ACL validation.

Usernames, workstation names, private project paths, session transcripts, credentials, and unrelated logs are omitted.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Oct 8, 2026
  2. Brunoetsu107 commented on Oct 8, 2026

    @Brunoetsu107

    Additional independent reproduction on Windows Codex Desktop (2026-10-08), with a distinct prior IAB permission failure.

    Environment: app 26.1002.52244 (build 13536, prod); observed Windows package 26.1002.7124.0; bundled Browser module 26.1002.52244; shell Node v24.16.0. The module import fails before setupBrowserRuntime or any page permission check.

    Narrowed failing call: the app's Node REPL loader resolvePathSpecifier calls fs.realpathSync.native(candidate), which throws EPERM: operation not permitted, realpath. The exposed stack includes kernel.js:528, kernel.js:573, and kernel.js:1710. The wrapper does not retain the original exception's cause/OS stack.

    Read-only comparison: the Browser client file (169556 bytes) and all ancestor directories exist; no reparse points or explicit Deny ACLs observed. readFileSync and ordinary realpathSync work, but realpathSync.native fails with EPERM (errno -4048). The same ordinary/native difference appears for an unrelated project directory and C:\Windows\notepad.exe. The current shell's LOCALAPPDATA points into a Packages\sandbox.<redacted>\AC directory. These observations favor a restricted Windows execution context/native path canonicalization compatibility issue, but do not prove the underlying denial mechanism.

    Historical, separate failure: prior Browser 26.930.31730 could initialize and list tabs, and the user could manually view a local test/game page. Agent read/navigation consistently failed with saved browser permissions could not be verified, including in other chats (similar to #48670). A temporary localhost test page returned HTTP 200 directly, but the Browser produced no request. Following the update, the bootstrap EPERM prevents retesting whether that earlier permissions issue persists. The two failures should not be assumed to share a root cause.

    Additional log clue: bundled_plugins_reconcile_failed / marketplace 'openai-bundled' is reserved and cannot be added from this source appears in current desktop logs; its relationship to the EPERM is unproven. No module, ACL, security setting, permission database, browser controls, or user data was changed, and no alternate automation was used to bypass the restriction.

    Acceptance remains blocked: no successful automated page read or button interaction. Please investigate realpathSync.native compatibility in the supported Windows restricted Node REPL loader, while preserving canonicalization and Browser permission enforcement. This is a corroborating report, not a claim that the sandbox provisioning/file-lock symptoms in the original issue were reproduced here.

  3. johnnyscaler-Will commented on Oct 8, 2026

    @johnnyscaler-Will

    Additional reproduction affecting Computer Use on Windows (not just the Browser integration).

    Environment: Windows ChatGPT/Codex desktop AppX package 26.1002.7124.0; bundled Computer Use plugin 26.707.31123.

    Failure: When trying Computer Use locally on the Windows desktop, module initialization fails:

    Failed to resolve module "C:/Users/Administrator/.codex/plugins/cache/openai-bundled/computer-use/26.707.31123/scripts/computer-use-client.mjs": EPERM: operation not permitted, realpath 'C:\Users\Administrator\.codex\plugins\cache\openai-bundled\computer-use\26.707.31123\scripts\computer-use-client.mjs'
    

    Reproduction inside Codex's own Node REPL (not a separately installed Node.js):

    {
      stat: 9860,
      nativeRealpathError: 'EPERM',
      asyncRealpath: 'C:\\Users\\Administrator\\.codex\\plugins\\cache\\openai-bundled\\computer-use\\26.707.31123\\scripts\\computer-use-client.mjs'
    }

    The module exists; PowerShell can read the 9,860-byte file. Inside the Codex Node REPL, fs.statSync() succeeds and asynchronous fs.realpath() succeeds, while fs.realpathSync.native() fails with EPERM.

    Already tried: Microsoft Store latest version; Windows app Repair; application/system restart; confirmed Computer Use permissions enabled. Failure persists. Regular file tasks and iPhone-to-Windows Codex remote tasks work, but Computer Use (including Chrome desktop interaction) does not initialize. Please investigate the Windows sandbox/native-path-resolution behavior for bundled Computer Use modules.

  4. kpsofteng commented on Oct 9, 2026

    @kpsofteng

    Additional impact from an independent Windows desktop reproduction:

    The EPERM realpath failure also blocks importing local project modules in the same Codex JS runtime, even when ordinary shell Node can import and test those modules successfully. In this case Chrome/Teams can still expose a raw DOM snapshot through the separate Computer Use surface, but there is no supported CUA-to-local-file handoff. As a result, a verified browser-side transcript traversal cannot be passed into the local parser/archive workflow.

    Tried without changing permissions or user data:

    • reset/restart Codex and Chrome;
    • direct local-module import still fails at realpath;
    • CUA runtime cannot use filesystem or loopback/network transport;
    • local loopback listener was unreachable from the controlled Chrome environment.

    This makes the regression block evidence-preserving browser workflows even when the signed-in site and visible DOM are otherwise healthy. No transcript content, credentials, or private URLs are included here.

  5. zhangzhongxiang1335-png commented on Oct 9, 2026

    @zhangzhongxiang1335-png

    Additional regression confirmation

    I can reproduce this issue on Codex Desktop 26.1002.52244 (Build 13536) on Windows.

    Chrome browser control stopped working after updating Codex/ChatGPT Desktop. Restarting Windows, restarting Codex, and reinstalling/checking the Chrome extension did not restore browser control.

    Importantly, I have another Windows PC at home that has not been updated, and Chrome browser control still works normally on that machine.

    This strongly suggests a regression introduced in the recent Windows Codex/Desktop update rather than a Chrome configuration issue.

    Browser control is important for production workflows that depend on existing Chrome sessions, cookies, logged-in websites and automated publishing.

    Please prioritize a fix, and if possible provide either:

    1. a fixed production build,
    2. a supported rollback method, or
    3. a temporary workaround for Chrome Extension / Browser Runtime control.

    Current affected version: 26.1002.52244, Build 13536.

  6. nicho2 commented on Oct 9, 2026

    @nicho2

    Additional reproducible diagnostics on 2026-10-09, from another Windows 11 x64 installation with Codex Desktop AppX 26.1002.7124.0 and bundled Browser 26.1002.52244. This appears to be the same EPERM realpath failure, with additional evidence about the Node REPL kernel environment (not a confirmed root-cause fix).

    Result

    • Browser setup fails when importing .../.codex/plugins/cache/openai-bundled/browser/26.1002.52244/scripts/browser-client.mjs with EPERM: operation not permitted, realpath.
    • The plugin was restored from the official installed WindowsApps package: 384 files copied; all 384 SHA-256 checks matched. The plugin file is 169,556 bytes and can be read completely by the affected kernel. A reset of the JS kernel did not resolve the error.
    • The failure is not limited to Browser: native realpath also fails for C:\Windows from the sandbox, while it succeeds for the same paths under external Node outside the sandbox.

    Path-resolution comparison

    Execution context statSync / lstatSync realpathSync realpathSync.native
    Codex node_repl kernel, Browser file and C:\Windows OK EPERM EPERM
    External Node via PowerShell inside sandbox, same paths OK OK EPERM
    Same external Node v24.19.0 outside sandbox OK OK OK

    In node_repl, Codex patches fs.realpathSync; its .native property also points to this patched function. Thus those two kernel test columns are not independent native-API tests. The patched fallback works for the temporary kernel.js script, but fails for the Browser client, project README and runtime binary even though lstatSync works; the fallback's trusted-root set is narrower than the sandbox's file-read permissions.

    Security context / environment comparison

    • The JavaScript kernel and Browser worker run in distinct low-integrity Windows AppContainers (S-1-16-4096), using an explicitly launched windows.sandbox="mxc"; their supervising node_repl.exe process has medium integrity (S-1-16-8192).
    • The user's [windows] sandbox="unelevated" setting does not change the observed kernel's explicit mxc mode.
    • NODE_REPL_TRUSTED_CODE_PATHS is defined under [mcp_servers.node_repl.env] and present in the supervisor environment (including the user's .codex root), but absent in the JS kernel. NODE_REPL_NODE_MODULE_DIRS is present in the kernel.
    • The Browser worker receives a separately constructed trusted-code-path list, including the bundled Browser scripts directory. The kernel does not receive that list.
    • The Browser file can be read in full from the kernel, so this is not a demonstrated lack of file-read permission. Its realpath resolution fails, and the trusted-path fallback does not cover it.
    • Examined recent app/sandbox logs: no relevant recent setup refresh, runtime read/execute validation failed, or os error 32 event was identified on this machine. This distinguishes this reproduction from the file-locking part of the original report.

    Hypothesis / request

    The immediate loader failure appears to involve (1) native path canonicalization being rejected inside mxc AppContainer and (2) a fallback whose trusted roots do not cover the Browser client because NODE_REPL_TRUSTED_CODE_PATHS is not propagated into the kernel even though it reaches the supervisor and worker. The exact internal environment-filtering decision and Windows right denied by the native operation remain unconfirmed.

    Could maintainers investigate environment propagation from node_repl supervisor into the low-integrity kernel and the consistency between sandbox readable roots and the module loader's realpath fallback? Ideally the bundled Browser client should import without disabling sandboxing or changing broad filesystem ACLs.

    No private paths, account identifiers, session IDs, credentials, or private project contents are included in this comment.

  7. henkelpress commented on Oct 9, 2026

    @henkelpress

    Reproduced again on October 9, 2026 after updating the Windows desktop app. The in-app Browser remains unusable. This adds results for a newer app build than the original report.

    Versions tested

    • Windows package: OpenAI.Codex 26.1007.2314.0
    • App and bundled Browser plugin: 26.1007.21434
    • Updated app's bundled CLI: 0.162.0-alpha.17.2
    • Also tested the official, signed 0.162.0-alpha.20 release using the app's CODEX_CLI_PATH override, with content_item_kinds=false for compatibility. The running candidate was verified.

    Current reproducible failure

    The documented absolute-path import fails before setupBrowserRuntime() can execute or any browser/tab can be selected:

    Failed to resolve module "C:/Users/<USER>/.codex/plugins/cache/openai-bundled/browser/26.1007.21434/scripts/browser-client.mjs":
    EPERM: operation not permitted, realpath
    

    Same-session diagnostic results

    • Ordinary callback-based fs.realpath() on that exact file: succeeds.
    • fs.realpathSync.native() on that exact file: EPERM.
    • typeof nodeRepl.rpc === "function": true.
    • Repeating the documented Browser import: same EPERM.
    • Standard workspace sandbox execution with the signed alpha.20 CLI: passes.
    • The supported @oai/sky desktop interface could list apps and inspect Microsoft Store. This is not an in-app Browser pass.

    The older NODE_REPL_TRUSTED_RPC_ENABLED environment-filter repair is already present and the trusted RPC function is available. Runtime resets, the desktop update, and the newer signed CLI did not restore Browser loading on this machine.

    Please investigate the native Windows path-canonicalization step in the Browser module loader and provide a compatible corrected runtime or documented supported remedy. The runtime file-lock repair and this loader failure should not be treated as the same verified fix.

    No sandbox disabling, trust-check patching, browser-profile resets, or transcript modifications were used. This report intentionally omits private paths, account identifiers, chat contents, credentials, and unrelated logs.

  8. jtunzi commented on Oct 11, 2026

    @jtunzi

    Additional independent reproduction and request for a supported fix, verified on October 11, 2026.

    This comment was prepared by Codex from diagnostics on the account owner's Windows computer.

    Environment

    • Windows 11 Home 26H2, build 26300.9457.
    • Codex AppX package: 26.1007.2314.0.
    • Bundled Browser and local cache: 26.1007.21434.
    • Bundled CLI: 0.162.0-alpha.17.2.

    Failure

    The documented absolute-path Browser import fails before setupBrowserRuntime or any tab selection:

    Failed to resolve module "C:/Users/<USER>/.codex/plugins/cache/openai-bundled/browser/26.1007.21434/scripts/browser-client.mjs":
    EPERM: operation not permitted, realpath
    

    Verified diagnostic results

    • All 384 Browser files and all 2364 local runtime files match the active official app package by SHA-256, with none missing.
    • Reading, stat and lstat work for the client. Canonical path resolution fails in the app-provided JavaScript kernel.
    • The same bundled Node executable resolves that path outside the isolation context.
    • In separate official sandbox probes, ordinary realpathSync works under MXC while realpathSync.native returns EPERM. The native variant works in a temporary read-only unelevated probe.
    • The kernel startup shim uses native canonicalization plus a restricted fallback. That fallback succeeds for the temporary kernel script but fails for the Browser client. The precise reason that the intended roots are unavailable or unrecognized remains unconfirmed.

    Configuration trial after a full app restart

    The existing user configuration specifies windows.sandbox="elevated". Adding features.prefer_mxc=false persisted through the restart, but both newly created supervisors still launched this kernel/worker explicitly with windows.sandbox="mxc". The documented Browser import still returned EPERM. The ineffective preference trial was then removed, preserving all other configuration.

    An earlier, separately authorized environment-exposure-list trial was regenerated by the app on restart and is not retained.

    There were no observed current Defender blocking events correlated with these tests. We have not established an antivirus cause or reproduced the separate runtime-file-locking provisioning failure from the original report.

    Request

    Could OpenAI investigate native path canonicalization and propagation/recognition of the authorized fallback roots in the Windows Browser kernel, and provide a corrected runtime or a documented supported workaround? In particular, how can this app-provided connection use a supported alternative when its launchers explicitly select MXC despite the persisted preference?

    Acceptance is still pending: initialize the official in-app Browser, open https://github.com/, and read its real page title. Resets and the full restart above did not restore it.

    The account owner reports that failures recur after desktop updates; this is user history, not a controlled comparison of releases. This report contains redacted paths and technical versions, with no private logs, credentials, session transcripts or personal documents attached.

  9. ElliotDrel commented on Oct 12, 2026

    @ElliotDrel

    Note

    🤖 GPT-6 responding on behalf of Elliot

    Additional Windows reproduction with bundled Chrome plugin 26.1007.21434 and bundled CLI 0.162.0-alpha.17.2.

    The documented browser-client.mjs import fails with EPERM at realpath, before browser setup or the extension handshake. Chrome is running; the official extension diagnostic reports installed and enabled, and the native-host manifest/registry diagnostic passes.

    Completed recovery attempts: Chrome plugin reinstall, full app restarts, JavaScript kernel reset, and official elevated Windows sandbox setup. Setup completed successfully with exit code 0, but the documented Chrome import still fails after restarting the app.

    New candidate test: downloaded the official rust-v0.163.0-alpha.5 Windows CLI release, verified the ZIP against GitHub's published SHA-256, and ran a fixed-file metadata probe using its MXC sandbox with the :workspace permission profile and managed configuration. No application/runtime override was installed. The same bundled Node executable reports:

    • stat: succeeds
    • ordinary realpathSync: succeeds
    • realpathSync.native: EPERM

    The native lookup succeeds outside isolation. The alpha.5 sandbox probe therefore does not establish a fix for this loader failure. No alternate browser controls were used and no Chrome/session data, credentials, private paths, or raw logs are included.

    Is there a supported corrected Node REPL/runtime build or an official compatible rollback route for the bundled Chrome runtime? A Chrome-only downgrade appears unlikely to bypass a loader failure that occurs before plugin execution, but no such downgrade has been tested here.

  10. jtunzi commented on Oct 13, 2026

    @jtunzi

    Follow-up on the same Windows computer from my October 11 comment. On October 8, 2026, the in-app Browser successfully returned a live page title and accessibility tree while AppX 26.1002.7124.0 was installed. On October 10, importing the Browser client failed with EPERM: operation not permitted, realpath under AppX 26.1007.2314.0. Windows 11 26H2 had been installed on September 30, before the successful test.

    This timeline narrows the change window but does not establish the root cause; other reports show the same error on 26.1002. Is there an OpenAI-supported way to temporarily roll back the Windows app using an official signed package, or a fixed build for this error? The published MSIX link currently provides only the latest build.

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

    appbrowserbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions