Browser control fails: trusted RPC dependency outside configured trusted code path
What version of the Codex App are you using (From “About Codex” dialog)?
26.814.5167.0
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What issue are you seeing?
Browser control fails in the Codex desktop app before it can inspect or interact with any page.
Full error:
Trusted RPC dependency must resolve within a configured trusted code path:
C:\Users\<REDACTED>\.codex\plugins\cache\openai-bundled\browser\26.814.41407\scripts\browser-service.mjs
Environment:
- Codex desktop version: 26.814.5167.0
- Bundled/cached browser plugin version: 26.814.41407
- Platform: Microsoft Windows NT 10.0.22631.0 x64
- OpenAI Support case: 13410185
Affected functionality:
- In-app browser control
- Chrome browser control through the ChatGPT extension
- New and existing Codex tasks
- Tasks with and without a repository
Steps to reproduce:
- Open Codex desktop on Windows.
- Start a brand-new task.
- Ask Codex to inspect or control the in-app browser.
- Browser runtime initialization immediately fails with the trusted-path error above.
Expected behavior:
Codex should connect to the in-app browser and inspect or interact with the open page.
Actual behavior:
Browser runtime initialization fails before any browser action occurs.
Troubleshooting already completed:
- Fully quit and restarted Codex, including background processes.
- Updated/reinstalled the desktop application.
- Confirmed no newer Windows package update is currently offered.
- Reproduced the issue in brand-new tasks.
- Confirmed the issue is not repository-specific.
- Confirmed it affects both in-app and Chrome browser control.
- Avoided modifying browser-service.mjs or applying unsupported trust-path workarounds.
Please confirm whether desktop version 26.814.5167.0 is incorrectly selecting browser plugin 26.814.41407. Please provide either a corrected compatible browser plugin or an officially supported signed rollback procedure.
No repository, browser profile, OAuth, or application configuration changes are required to reproduce the defect.
What steps can reproduce the bug?
Feedback ID: 019fc814-1c38-7b53-b1e5-e5cbe8d4a5e7
What is the expected behavior?
Codex should initialize the trusted bundled browser runtime and connect to the selected in-app browser or Chrome session.
It should then be able to inspect the open page, navigate, click, type, and take screenshots within the normal browser-control permission boundaries.
The desktop application and bundled browser plugin should select mutually compatible versions and trusted runtime paths.
Additional information
Feedback ID: 019fc814-1c38-7b53-b1e5-e5cbe8d4a5e7
- Install or update Codex desktop on Windows to version 26.814.5167.0.
- Fully quit and reopen Codex.
- Start a brand-new task without opening a repository.
- Open an in-app browser tab.
- Ask Codex: “Test browser control now.”
- Codex attempts to initialize the bundled browser-control runtime.
- Initialization immediately fails with:
Trusted RPC dependency must resolve within a configured trusted code path:
C:\Users\<REDACTED>\.codex\plugins\cache\openai-bundled\browser\26.814.41407\scripts\browser-service.mjs
The same failure occurs when attempting to control Chrome through the ChatGPT browser extension.
The problem reproduces in both new and existing tasks and is not dependent on a repository, token usage, or context-window usage.
Environment:
Codex desktop version: 26.814.5167.0
Cached browser plugin version: 26.814.41407
Platform: Microsoft Windows NT 10.0.22631.0 x64
OpenAI Support case: 13410185
Troubleshooting performed:
- Fully quit and restarted Codex, including background processes.
- Updated/reinstalled the desktop app.
- Confirmed no newer Windows package update is offered.
- Reproduced the issue in brand-new tasks.
- Confirmed the failure affects both in-app browser and Chrome control.
- Confirmed the failure occurs before any page interaction.
- Did not modify browser-service.mjs.
- Reverted an ineffective local configuration experiment.
- Did not alter the Chrome profile or repository files.
Please verify whether desktop build 26.814.5167.0 is incorrectly selecting browser plugin build 26.814.41407.
A corrected compatible browser plugin or an officially supported signed rollback procedure is requested.
21 Comments
I'm at a work stoppage and can not continue working until bug is fixed.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I can reproduce this exact defect on Windows.
Codex desktop: 26.814.5167.0
Bundled browser plugin: 26.814.41407
Platform: Microsoft Windows NT 10.0.22631.0 x64
OpenAI Support case: 13410185
The failure affects both in-app browser and Chrome control and reproduces in brand-new tasks:
Trusted RPC dependency must resolve within a configured trusted code path:
C:\Users\<REDACTED>\.codex\plugins\cache\openai-bundled\browser\26.814.41407\scripts\browser-service.mjs
This currently blocks browser-only OAuth/Clerk verification work.
I can reproduce this exact issue on Windows as well.
Environment:
Exact error:
Trusted RPC dependency must resolve within a configured trusted code path:
.../browser-service.mjs
Behavior:
Troubleshooting already performed:
Important additional observation:
Browser control was working earlier on this same machine and then stopped working. The visible browser itself still functions; only the Codex control/runtime attachment fails.
This currently blocks browser-dependent production work for me in both HighLevel and Replit.
Happy to provide additional diagnostics or logs if useful.
yes, I’m experiencing the same issue as well. It seems like it might have been caused by the latest version? My case 01a01784-61ce-78c2-abfa-094223224177
Another affected Windows user can reproduce this consistently with the same version combination:
26.814.5167.026.814.41407Trusted RPC dependency must resolve within a configured trusted code pathfor the bundledbrowser-service.mjsAdditional troubleshooting performed:
This rules out a stale per-thread runtime and a corrupted local Browser plugin cache for this installation. No browser profile, credentials, or page data were involved.
Restart-persistent workaround and root-cause evidence (Windows, Codex Desktop 26.814.5167.0)
I reproduced the failure across multiple app restarts and found a narrower cause:
NODE_REPL_TRUSTED_CODE_PATHSto the user-level~/.codex/config.tomlunder[shell_environment_policy.set]fixes Browser/Chrome immediately after anode_replreset.A restart-persistent workaround is to put the setting in the trusted project's own
.codex/config.toml, which is a separate config layer and is not rewritten by the desktop global-config generator:Using the parent plugin/runtime directories avoids pinning the workaround to a particular plugin/runtime version.
Verification:
https://example.com/: URL/title/h1/body readback PASSGrouping is not supported by tabs in this window, so I am not counting that run as a page-level Chrome PASSThis is a workaround, not a product fix. The remaining product issue appears to be that the Desktop startup writer does not preserve user-supplied
shell_environment_policy.set.NODE_REPL_TRUSTED_CODE_PATHSvalues.Additional confirmed reproduction on Windows with the same builds and error.
Environment:
OpenAI.Codex_26.814.5167.0_x640.148.0-alpha.1526.814.41407Exact primary error:
Regression observation: browser automation worked with bundled browser component
26.810.52044on the preceding day, then failed after26.814.41407appeared locally. The error occurs before tab discovery or page interaction.Troubleshooting completed without improvement:
Computer Use fallback also fails after detecting the Edge window:
This leaves both browser-control paths unavailable. No plugin files, trust configuration, browser profile, or security settings were manually modified.
Additional reproduction from #39400 with a physical non-system
CODEX_HOME:26.814.5167.026.814.4140710.0.26200.0)CODEX_HOME=D:\CodexHome, a physical ASCII-only directory onD:(not a junction or symlink)CODEX_HOMEboth resolve to that directoryNODE_REPL_TRUSTED_CODE_PATHSincludesD:\CodexHomeNODE_REPL_TRUSTED_SERVICESmapsbrowserto the bundledbrowser-service.mjsbeneath that rootlstat()andrealpath()succeeded for the trusted root, Browser client, and Browser serviceThe runtime still rejected the service with:
This additionally rules out a Unicode profile path, junction canonicalization, simple file readability, and ownership as sufficient explanations. Temporary diagnostic sandbox ACL rules were rolled back afterward.
Closing #39400 as a duplicate so investigation can continue here.
Follow-up: the issue also reproduces with the in-app browser after the user successfully signed in and opened
https://creator.xiaohongshu.com/new/home. The in-app browser UI had one active tab and rendered the signed-in page, but browser-control initialization still failed immediately with the same trusted RPC dependency error before the tab could be inspected. This confirms that a visible/authenticated in-app session does not bypass the runtime failure.GitHub issue #39318 comment
Additional reproduction evidence for the same Windows Browser runtime defect:
019f6962-8ca0-78a2-ba07-ce5e6c6601ad2026-08-19T04:36:44.075000ZUTC /2026-08-19T13:36:44.075000+09:00Asia/Seoul (UTC+09:00)26.814.5167.026.814.41407NOT PERFORMED. No AV or endpoint-security protection was disabled.The user-accessible
$CODEX_HOME/sessions/$CODEX_HOME/archived_sessionsevidence was searched and minimally redacted. The session record retained the fail-closed outcome marker; the nested raw RPC line was not duplicated in the session transcript. The attached excerpt therefore includes that session outcome marker plus the exact redacted key error from the separately verified local diagnostic. Raw session files were not copied or modified.Key error:
I initially opened #39407 before GitHub surfaced the duplicate candidates. I am closing #39407 as a duplicate of this issue and consolidating the additional evidence here.
OPENAI_CODEX_ISSUE_39318_REDACTED_SESSION_EVIDENCE_20260819.zip
I can reproduce the same failure on Windows in a local Codex task.
Error:
Impact: this prevents browser automation needed to update an authenticated web application (PROJECT DESK). The failure occurs before any website access or authentication interaction.
Troubleshooting completed:
Result: the same trusted-path error persists after every step. No browser profile, credentials, project data, or plugin files were manually modified.
Additional independent reproduction on Windows (2026-08-19).
Environment:
Safe test performed:
Exact error (user path redacted):
Sanitized stack:
Observed impact:
The visible Browser UI may still render pages manually; the failure is specifically the Codex-to-browser control runtime.
Additional independent reproduction of the same Windows Browser runtime failure:
26.814.5167.026.814.41407iab), automatic/default browser selection, and Chrome controlExact error (user path redacted):
Additional diagnostic detail: the generated
NODE_REPL_TRUSTED_CODE_PATHSincludesC:\Users\<REDACTED>\.codex, andNODE_REPL_TRUSTED_SERVICESpoints to the exactbrowser-service.mjsbeneath that root, yet initialization still rejects it.The failure occurs before browser selection, tab discovery, navigation, page access, or authentication. It is therefore not website-specific. It currently blocks an authorized authenticated-account maintenance workflow, and switching from Chrome to the built-in Browser does not bypass it.
No cookies, browser profile data, credentials, page contents, or session logs are included in this report. Please prioritize a corrected Windows build or bundled runtime fix.
Additional root-cause evidence from another affected Windows installation:
26.814.5167.026.814.41407browser-service.mjstrusted-path rejection.I inspected the actual environment of the spawned trusted worker process (user path redacted). It receives:
The important mismatch is that
NODE_REPL_TRUSTED_SERVICESpoints to the Browser service under.codex\plugins, while the worker's effectiveNODE_REPL_TRUSTED_CODE_PATHScontains only the bundled runtime'snode_modules. The.codex/Browser plugin root has already been removed before the trusted worker starts.Additional checks:
realpathSync.native()resolves the plugin root, scripts directory, and service file successfully in a comparable Codex sandbox.config.tomlfrom scratch does not change the failure.This narrows the defect to trusted-root filtering/propagation between Desktop configuration/server launch and the trusted worker process, rather than filesystem ACLs, Chrome extension setup, browser discovery, or page access.
Please inspect the Windows trusted-worker launch path that canonicalizes/filters
NODE_REPL_TRUSTED_CODE_PATHS, and why the Browser service remains registered after its containing trusted root is discarded.Independent reproduction on Windows ARM64 with additional package/hash evidence.
Environment:
OpenAI.Codex_26.814.5167.0_arm64__2p2nqsd0c76g026.814.5167.00.148.0-alpha.1526.814.4140754e694a67f9eb156Exact failure, before browser discovery or any site-specific navigation:
Observed hashes:
3B9D8DCC6DC968887E8A969C63DAE6380E3C1C59FF5C474EB32DF08C353DAD87B6FD7F485FDF59CC4A25445479545B24972F6226C79C72AB7BD985D86F0696158E172EC9F458F2E636FC69A1B8C68C217F6BB8D10C41F70A05A0878B73863701The active Browser client hash therefore does not match the last observed allowlisted client hash.
Additional isolation/troubleshooting completed:
NODE_REPL_TRUSTED_BROWSER_CLIENT_SHA256S:NOT SET.NODE_REPL_TRUSTED_BROWSER_CLIENT_SHA256S:NOT SET.%USERPROFILE%/.codex..codexand Browser plugin directories are not reparse points.config.toml, trust/hash, plugin-cache, runtime, credential, repository, or browser-profile edits were made.After the clean Store reinstall, the supported runtime environment did not independently re-expose the allowlist value, but the identical package/plugin/runtime hashes and identical trusted-RPC failure remain.
This appears to be a packaged/runtime trust-configuration or allowlist-alignment regression rather than ordinary local corruption or a site/session issue.
Requested investigation:
26.814.5167.0is expected to ship/use Browser plugin26.814.41407with client SHA2563B9D8D…DAD87.No browser discovery was reached, so no website, authentication session, or page data is involved in the reproduction.
Independent x64 reproduction with the Chrome extension and Native Messaging layer verified healthy:
Environment
OpenAI.Codex 26.814.5167.0(x64)0.146.026.814.41407151.0.7922.1403B9D8DCC6DC968887E8A969C63DAE6380E3C1C59FF5C474EB32DF08C353DAD87B6FD7F485FDF59CC4A25445479545B24972F6226C79C72AB7BD985D86F069615Verified healthy before retry
check-native-host-manifest.js --browser chrome --jsonreturnedcorrect: true.check-extension-installed.js --browser chrome --jsonreturnedinstalled: trueandenabled: true.Following the bundled Chrome troubleshooting procedure, I used
open-chrome-window.js --browser chrometo wake the selected regular Chrome profile and retried browser-client initialization. It still failed before browser discovery or tab listing with:Additional isolation
NODE_REPL_TRUSTED_CODE_PATHSto the.codexroot allowed the same browser runtime to initialize in a standalone diagnostic process, but the desktop app regenerated its configuration on startup and the trusted service launched by Codex continued to reject the path.This reproduction has a fully healthy Chrome Native Messaging layer, so the failure is isolated to the Codex-launched trusted RPC worker/path propagation boundary. It blocks browser automation that depends on an already-authenticated regular Chrome session.
Please provide a corrected Windows package/runtime or a supported repair/rollback path. Reinstalling the Chrome extension is not a meaningful recovery step when both extension and native-host checks already pass.
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/<user>/.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.
Independent reproduction on Windows with the same failure.
Environment:
26.814.5167.00.148.0-alpha.1526.814.4140726.814.41407Additional observations:
@Browserfails during runtime initialization, before tab discovery, with:``
``Trusted RPC dependency must resolve within a configured trusted code path:
file:///%USERPROFILE%/.codex/plugins/cache/openai-bundled/browser/26.814.41407/scripts/browser-service.mjs
@Chromecontrol produces the identical trusted-path error before extension communication.26.810.52044, then began failing when the task loaded26.814.41407..codexdirectory among trusted code paths.This further isolates the defect to trusted-service/runtime initialization rather than browser UI availability, website authentication, tab state, or the Chrome extension handshake.
I maintain WinBridge Recovery: https://github.com/zemeng5208/winbridge-recovery
This report is a plausible match for one specific local failure layer that WinBridge can diagnose: desktop/plugin version drift between the installed Codex build and the cached
openai-bundledBrowser/Chrome plugin tree, including cache/version/lateststate and partial bundled-marketplace staging.In this case, the notable signal is the desktop build
26.814.5167.0loading Browser/Chrome26.814.41407. WinBridge can help verify whether that mismatch is just the normal packaged layout or whether the local plugin cache/latestpointers and bundled marketplace state are stale or partially staged, then rebuild those local pointers/copies from the installed official package when appropriate.Important limitation: if the Browser/Chrome files are already byte-correct and version-consistent with the official package, and Codex is still rejecting
browser-service.mjsbecause the trusted-code-path configuration generated by the current app build does not include that official runtime path, that is an upstream trust-registration/runtime bug. WinBridge cannot fix that product logic and I would not expect a local cache repair to be durable in that case.So the useful diagnostic split is: first verify/cache-repair the local bundled plugin layer; if that layer is healthy and the trusted-path rejection remains, this should stay with upstream Codex.
Please escalate this as a Codex Windows desktop browser-control bug.
Environment
26.814.5167.026.814.41407Error
Browser control fails before tab discovery or page interaction. Edge’s official ChatGPT extension is installed, enabled, and authenticated, and its side panel works, but the Codex desktop-control handshake still produces the same error.
Restarting/reinstalling the desktop app, rebuilding the plugin cache, restoring configuration, and testing new tasks did not resolve it.
This matches issue #39318.
Please provide a corrected signed update or an officially supported rollback procedure.