[Windows] Browser/Chrome plugin fails trusted RPC dependency path validation
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
Summary
On Codex for Windows, the Browser/Chrome runtime fails before it can connect to the Chrome extension with:
Trusted RPC dependency must resolve within a configured trusted code path: file:///C:/Users/xiaoyu/.codex/plugins/cache/openai-bundled/browser/26.814.41407/scripts/browser-service.mjs
Environment
- Windows 11 Professional 10.0.26200, x64
- Codex desktop app:
26.814.5167.0 - Codex CLI:
0.148.0-alpha.15 - Browser/Chrome bundled plugins:
26.814.41407 - Chrome extension updated/reinstalled
Impact
Codex cannot initialize the Browser or Chrome browser runtime. The failure occurs before the Chrome extension handshake, so browser control is unavailable.
Reproduction
- Enable the bundled Browser and Chrome plugins in Codex on Windows.
- Install/update the Chrome extension through Settings → Computer use.
- Attempt to connect to Chrome.
- Browser runtime initialization immediately fails with the trusted RPC dependency error above.
Troubleshooting already attempted
- Updated, removed, and reinstalled the Chrome extension
- Fully restarted Chrome and Codex
- Reset the Windows Codex app data
- Removed and regenerated Browser/Chrome plugin caches
- Verified directory junctions and file hashes
- Confirmed no
Zone.Identifier/Mark-of-the-Web stream on the service files - Regenerated the
node_replconfiguration inconfig.toml - Set exact
NODE_REPL_TRUSTED_CODE_PATHS - Tested both
elevatedandunelevatedWindows sandbox modes - Tested
node_replwith--disable-sandbox
Additional diagnostics
NODE_REPL_TRUSTED_CODE_PATHSincludesC:\Users\xiaoyu\.codex.NODE_REPL_TRUSTED_SERVICESpoints to the existingbrowser-service.mjsbeneath that directory.- The referenced file exists and is readable.
- Reproducing the exact path-containment implementation from the installed
node_repl.exewith the configured roots returnstrue. - Starting the same
node_repl.exeindependently with the same trusted-path variables, but without the Codex sandbox-launch environment, successfully importsbrowser-client.mjsand initializessetupBrowserRuntime(). This indicates that the trusted roots are lost or inaccessible specifically in the trusted-service subprocess launched by Codex. - Browser diagnostics found an additional native-host installation failure:
- Manifest exists:
C:\Users\xiaoyu\AppData\Local\OpenAI\extension\com.openai.codexextension.json - Missing registry key:
HKCU\Software\Google\Chrome\NativeMessagingHosts\com.openai.codexextension check-native-host-manifest.js --browser chrome --jsonreportscorrect: false
- Manifest exists:
- Chrome is installed at
C:\Program Files\Google\Chrome\Application\chrome.exe. check-extension-installed.jsreports that the expected Chrome user-data directory is unavailable.- The same Codex version may work on other Windows machines, suggesting installation/registration and trusted-service environment edge cases rather than a simple version mismatch.
Request
Please investigate:
- Windows path canonicalization/containment and environment propagation for trusted RPC service subprocesses in
node_repl. - Why the Browser plugin installation can leave the native-host manifest file present but omit the required HKCU NativeMessagingHosts registry key.
- A supported repair/re-registration flow when the bundled Browser plugin cannot be uninstalled from the plugin UI.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the trusted-service subprocess around node_repl.exe, NODE_REPL_TRUSTED_CODE_PATHS, and the browser-service.mjs/browser-client.mjs entry points; compare it with the independently working launch. Then inspect check-native-host-manifest.js, check-extension-installed.js, and the plugin installation flow. Done means the Windows environment and missing HKCU registry registration have a reproducible diagnosis and a supported repair or re-registration path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, rust
- Domain
- desktop, operating-systems, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100