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] Bundled Browser service rejected because trusted code paths are not synchronized #39387
appIssues related to the Codex desktop appbrowserbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
The bundled in-app Browser plugin cannot initialize from a Codex Desktop thread. The Browser pane and IAB backend are available, but the trusted worker rejects the plugin's own bundled service module:
Trusted RPC dependency must resolve within a configured trusted code path: file:///C:/Users/Administrator/.codex/plugins/cache/openai-bundled/browser/26.814.41407/scripts/browser-service.mjs
Steps to reproduce
Open Codex Desktop on Windows.
Open an in-app Browser tab.
In a Codex task with the bundled Browser skill, initialize the documented runtime using the absolute bundled path.
Initialization fails before browser discovery with the error above.
Diagnostics already performed
The in-app Browser pane is visible and its backend reaches browser_use_iab_backend_startup_ready.
The bundled client and service files exist and their hashes match the bundled marketplace source.
A full Desktop restart, a fresh same-directory fork, and a JavaScript kernel reset do not fix it.
The Browser scripts directory is granted read access to the trusted-worker sandbox, but the worker still rejects its own service in isTrustedCodePath(). The filesystem allowlist and NODE_REPL_TRUSTED_CODE_PATHS appear not to be synchronized.
Expected behavior
Codex Desktop should register the active bundled Browser plugin's scripts directory as a trusted code root and provide a supported repair action if registration fails.
Additional notes
No third-party plugin or manually modified Browser file is involved.
Most importantly, I inspected the live node_repl.exe process using Microsoft Sysinternals Process Explorer. Its Windows process environment contains NODE_REPL_TRUSTED_CODE_PATHS, NODE_REPL_TRUSTED_SERVICES, CODEX_HOME, BROWSER_USE_AVAILABLE_BACKENDS, and the other generated MCP environment values.
In this case, the issue does not appear to be a failure to forward [mcp_servers.node_repl.env] into the process. The process receives the trust configuration, but nodeRepl.rpc("browser", ...) still reaches trusted_service_request and rejects the resolved bundled service path as being outside the configured trusted code paths.
I can provide a redacted Process Explorer screenshot showing the relevant environment variables from the live node_repl.exe process if useful.
The failure therefore appears to occur after "browser" is resolved to the configured service path.
Exact runtime failure
Both Browser and Chrome fail at the same point:
Trusted RPC dependency must resolve within a configured trusted code path:
file:///C:/Users/<USERNAME>/.codex/plugins/cache/openai-bundled/browser/26.814.41407/scripts/browser-service.mjs
This happens before tab discovery or page interaction.
Codex Desktop: 26.814.5167.0
Browser bundle: 26.814.41407
Chrome bundle: 26.814.41407
Windows Microsoft Store app
Given that the service is physically under the trusted root, the live node_repl.exe process has the correct trusted variables, and nodeRepl.rpc("browser", ...) is reaching the trusted-service resolver, this looks like a bug in the Windows trusted-service path validation or canonicalization logic rather than missing configuration or failed environment propagation.
One possibly relevant detail is that the same location appears in three equivalent Windows forms during this flow:
Related feedback ID: 01a00a49-e9c4-7390-9b89-447d2979d0e9
I confirmed that NODE_REPL_TRUSTED_CODE_PATHS contains the bundled Browser scripts directory and that the corrected configuration survives a complete Codex restart.
However, inspecting nodeRepl.env in the active runtime shows that no NODE_REPL_* environment variables were passed to the bundled node_repl process.
The plugin therefore continues to fail with:
Trusted RPC dependency must resolve within a configured trusted code path:
file:///C:/Users//.codex/plugins/cache/openai-bundled/browser/26.814.41407/scripts/browser-service.mjs
This reproduces across multiple Codex tasks after a full system-tray exit and restart.
appIssues related to the Codex desktop appbrowserbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Aug 19, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Bitwonderer commentedon Aug 19, 2026
I can reproduce this on Windows with Codex Desktop 26.814.5167.0 and Browser/Chrome bundle 26.814.41407.
I performed some additional diagnostics that may help narrow this down:
NODE_REPL_TRUSTED_CODE_PATHSincludesC:\Users\<USERNAME>\.codex\.NODE_REPL_TRUSTED_SERVICESmaps"browser"toC:/Users/<USERNAME>/.codex/plugins/cache/openai-bundled/browser/26.814.41407/scripts/browser-service.mjs.Resolve-Pathconfirms thatbrowser-service.mjsis physically beneathC:\Users\<USERNAME>\.codex\..codexnor the versioned Browser directory is a symlink or junction.C:drive.The Browser bundle hashes match another reported failing installation:
browser-service.mjs:B6FD7F485FDF59CC4A25445479545B24972F6226C79C72AB7BD985D86F069615browser-client.mjs:3B9D8DCC6DC968887E8A969C63DAE6380E3C1C59FF5C474EB32DF08C353DAD87Most importantly, I inspected the live
node_repl.exeprocess using Microsoft Sysinternals Process Explorer. Its Windows process environment containsNODE_REPL_TRUSTED_CODE_PATHS,NODE_REPL_TRUSTED_SERVICES,CODEX_HOME,BROWSER_USE_AVAILABLE_BACKENDS, and the other generated MCP environment values.In this case, the issue does not appear to be a failure to forward
[mcp_servers.node_repl.env]into the process. The process receives the trust configuration, butnodeRepl.rpc("browser", ...)still reachestrusted_service_requestand rejects the resolved bundled service path as being outside the configured trusted code paths.I can provide a redacted Process Explorer screenshot showing the relevant environment variables from the live
node_repl.exeprocess if useful.Bitwonderer commentedon Aug 19, 2026
I did some deeper tracing of where the failure occurs.
config.tomlcontains:Resolving the paths in PowerShell gives:
Neither
.codexnor the versioned Browser directory is a symlink or junction.The failing workspace is also on
C:, so this is not a cross-drive workspace case.Using Sysinternals Process Explorer, I inspected the Environment tab of the running
node_repl.exe.The process environment contains, among others:
So this does not appear to be a failure to forward
[mcp_servers.node_repl.env]to the Windows process.The bundled
browser-client.mjsultimately initializes Browser via:The client therefore passes only the logical service name
"browser".Inspecting
nodeRepl.rpcshows that it routes the request into the internal trusted-worker mechanism:The failure therefore appears to occur after
"browser"is resolved to the configured service path.Both Browser and Chrome fail at the same point:
This happens before tab discovery or page interaction.
My bundled files hash to:
Environment:
Given that the service is physically under the trusted root, the live
node_repl.exeprocess has the correct trusted variables, andnodeRepl.rpc("browser", ...)is reaching the trusted-service resolver, this looks like a bug in the Windows trusted-service path validation or canonicalization logic rather than missing configuration or failed environment propagation.One possibly relevant detail is that the same location appears in three equivalent Windows forms during this flow:
I have not manually modified the generated trusted-path settings because they are security-sensitive and appear correct as generated.
opsharbour commentedon Aug 19, 2026
I am experiencing the same issue.
Environment:
I confirmed that NODE_REPL_TRUSTED_CODE_PATHS contains the bundled Browser scripts directory and that the corrected configuration survives a complete Codex restart.
However, inspecting nodeRepl.env in the active runtime shows that no NODE_REPL_* environment variables were passed to the bundled node_repl process.
The plugin therefore continues to fail with:
Trusted RPC dependency must resolve within a configured trusted code path:
file:///C:/Users//.codex/plugins/cache/openai-bundled/browser/26.814.41407/scripts/browser-service.mjs
This reproduces across multiple Codex tasks after a full system-tray exit and restart.
jyxjjj commentedon Aug 20, 2026
macOS here.