Repository navigation
Windows: Browser tool fails to load in MXC (realpath EPERM), neither Chrome nor Edge works #53045
Description
Activity
- addedappIssues related to the Codex desktop appIssues related to the Codex desktop app
on Oct 11, 2026 - addedbugSomething isn't workingSomething isn't workingwindows-osIssues related to Codex on Windows systemsIssues related to Codex on Windows systemssandboxIssues related to permissions or sandboxingIssues related to permissions or sandboxing
on Oct 11, 2026 - changed the title
[-]Windows:浏览器工具在 MXC 中加载失败(realpath EPERM),Chrome / Edge 均无法使用[/-][+]Windows: Browser tool fails to load in MXC (realpath EPERM), neither Chrome nor Edge works[/+]on Oct 11, 2026 github-actions commented
on Oct 11, 2026 on Oct 11, 2026 – with GitHub ActionsContributorMore actionsEnglish translation:
What version of the Codex App are you using (From “About Codex” dialog)?
26.1007.21434 (Build 13901, prod)
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64 System version: 25H2 OS Build: 26200.9457
What issue are you seeing?
The Windows desktop app cannot control Chrome or Edge. The failure directly verified so far occurs during browser component loading, before browser selection or tab operations begin.
The module loading error is as follows (username redacted):
Failed to resolve module "C:/Users//.codex/plugins/cache/openai-bundled/chrome/26.928.21956/scripts/browser-client.mjs": EPERM: operation not permitted, realpath 'C:\Users<user>.codex\plugins\cache\openai-bundled\chrome\26.928.21956\scripts\browser-client.mjs'
Diagnostic findings:
- The target file exists, and stat and opening it read-only succeed.
- fs.realpathSync succeeds, but fs.realpathSync.native returns EPERM, with errno -4048.
- The actual tool launcher explicitly passes windows.sandbox="mxc".
- Even when the user configuration sets windows.sandbox="elevated" and features.prefer_mxc=false, the actual browser tool still uses MXC and reports the error.
The issue persists, and browser control has not been restored.
What steps can reproduce the bug?
Feedback ID: 01a12927-2c96-7230-a8b9-2a1493fe96cd
Chat ID: 01a12927-2c96-7230-a8b9-2a1493fe96cdUser actions:
- Start a Chrome browser task in the Windows Codex desktop app, for example: “Use Chrome to open https://example.com, then tell me the page title.”
- The tool attempts to load the Chrome plugin's browser-client.mjs.
- Module loading immediately returns realpath EPERM, and the task cannot continue.
Tool-level reproduction code (replace with the local username):
await import("C:/Users//.codex/plugins/cache/openai-bundled/chrome/26.928.21956/scripts/browser-client.mjs");Comparative verification:
- In the MXC read-only sandbox, call fs.realpathSync and fs.realpathSync.native on the same file.
- JavaScript realpath succeeds, while native realpath returns EPERM.
- In the legacy elevated read-only sandbox, both native realpath and module import succeed.
- Retesting the actual browser tool still fails, including after resetting the tool execution session.
What is the expected behavior?
The browser tool should load its components normally while retaining sandbox isolation and path safety checks, and connect to Chrome and Edge respectively.
Chrome should be able to open https://example.com and read the actual page title; Edge should be able to read the tab list normally.
If there is a compatibility issue under MXC, please provide a supported way to switch to legacy elevated, or fix native path resolution compatibility.
Additional information
Further local comparison results:
- In MXC, GetFinalPathNameByHandleW succeeds when returning an NT device path or a path without a volume name; requesting a path with a drive letter fails with Windows error 5 (ERROR_ACCESS_DENIED).
- In MXC, QueryDosDeviceW(C:/E:), GetVolumeNameForVolumeMountPointW, and opening MountPointManager read-only also return error 5.
- Outside the sandbox and in the legacy elevated comparison environment, these queries succeed.
- TokenIsAppContainer=1 inside MXC; it is 0 inside legacy elevated. Neither comparison process used an administrator-elevated token.
- Two official Node versions (v24.19.0 and v24.21.0, both using libuv 1.52.1) exhibit the same native realpath error in MXC.
- resolvePathSpecifier in the local tool's kernel.js calls fs.realpathSync.native(candidate) at line 523 and throws a module resolution error when it fails.
- The desktop app's update check returns up_to_date.
These results locate the issue in shared module loading and sandbox path resolution. They do not yet establish whether the individual Chrome / Edge extensions or native hosts are working normally. The specific component responsible or a version that fixes this issue has also not yet been confirmed.
Please help investigate the tool launcher's forced use of MXC and the native path resolution failure inside MXC.
github-actions commented
on Oct 11, 2026 on Oct 11, 2026 – with GitHub ActionsContributorMore actionsPotential duplicates detected. Please review them and close your issue if it is a duplicate.
- [Windows][26.1002] Browser bootstrap fails with EPERM realpath; sandbox provisioning locks its own runtime #51972
- Chrome automation fails on Windows before connecting to a healthy extension #52626
- Windows sandbox: native realpath returns EPERM inside writable workspace #52593
- Windows desktop: Python Path.resolve(strict=True) fails with WinError 5 despite successful file reads #52639
Powered by Codex Action
What version of the Codex App are you using (From “About Codex” dialog)?
26.1007.21434(Build 13901,prod)
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64 系统版本:25H2 OS Build:26200.9457
What issue are you seeing?
Windows 桌面端无法控制 Chrome 和 Edge。当前直接验证到的失败发生在浏览器组件加载阶段,尚未进入浏览器选择或标签页操作。
模块加载报错如下(用户名已隐藏):
Failed to resolve module "C:/Users//.codex/plugins/cache/openai-bundled/chrome/26.928.21956/scripts/browser-client.mjs": EPERM: operation not permitted, realpath 'C:\Users<user>.codex\plugins\cache\openai-bundled\chrome\26.928.21956\scripts\browser-client.mjs'
诊断发现:
问题持续存在,目前未恢复浏览器控制。
What steps can reproduce the bug?
Feedback ID:01a12927-2c96-7230-a8b9-2a1493fe96cd
Chat ID:01a12927-2c96-7230-a8b9-2a1493fe96cd
用户操作:
工具层复现代码(替换 为本机用户名):
await import("C:/Users//.codex/plugins/cache/openai-bundled/chrome/26.928.21956/scripts/browser-client.mjs");
对照验证:
What is the expected behavior?
浏览器工具应能在保留沙箱隔离和路径安全检查的前提下正常加载组件,并分别连接 Chrome 和 Edge。
Chrome 应能打开 https://example.com 并读取真实网页标题;Edge 应能正常读取标签页列表。
如果 MXC 下存在兼容性问题,希望提供受支持的 legacy elevated 切换方式,或修复原生路径解析兼容性。
Additional information
进一步的本机对照结果:
这些结果定位到共享模块加载与沙箱路径解析环节,尚不能据此判断 Chrome / Edge 各自的扩展或 native host 是否正常。也尚未确认具体责任归属或可修复此问题的版本号。
请协助检查工具启动器强制指定 MXC,以及 MXC 内原生路径解析失败的问题。