Skip to content

[Windows] Chrome plugin installed and extension detected, but Native Messaging Host is never installed #43849

Open

Description

@dylanyongxin-sys

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

26.901.6511.0

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Windows 11 x64

What issue are you seeing?

Summary

On Windows, the Codex Chrome plugin is installed and enabled, and the official Chrome extension is correctly detected in the selected Chrome profile.

However, the required Native Messaging Host registration is missing.

As a result, Codex cannot communicate with existing Chrome tabs and reports that the Chrome/browser connection bridge is unavailable.

The native host executable itself exists inside the bundled Chrome plugin, but both the Native Messaging Host manifest and the corresponding Windows registry entry are missing.

Following the documented recovery procedure by removing and reinstalling chrome@openai-bundled through the official Codex plugin CLI does not restore the Native Messaging Host registration.


Environment

OS

Windows 11 x64

Codex Windows app package

OpenAI.Codex_26.901.6511.0_x64__2p2nqsd0c76g0

Primary runtime plugins

26.905.11957

Bundled plugins

browser@openai-bundled
installed, enabled
version: 26.623.141536

chrome@openai-bundled
installed, enabled
version: 26.623.141536

computer-use@openai-bundled
installed, enabled
version: 26.623.141536

Google Chrome

C:\Program Files\Google\Chrome\Application\chrome.exe

Selected Chrome profile

Default

Chrome extension ID

hehggadaopoacecdllhhajmbjkdcmajg

Chrome extension diagnostics

The bundled Chrome diagnostics confirm that Chrome is running successfully.

chrome-is-running.js succeeds with:

ExitCode: 0

check-extension-installed.js also succeeds.

The extension is reported as:

installed: true
registered: true
enabled: true
selected: true

with:

ExitCode: 0

The official Chrome extension is therefore installed and enabled in the selected Chrome profile.


Native Messaging Host diagnostics

Using the diagnostic script bundled with the installed chrome@openai-bundled plugin:

node scripts/check-native-host-manifest.js --json

returns:

{
  "manifestPath": "C:\\Users\\<USER>\\AppData\\Local\\OpenAI\\extension\\com.openai.codexextension.json",
  "registryKey": "HKCU\\Software\\Google\\Chrome\\NativeMessagingHosts\\com.openai.codexextension",
  "registryManifestPath": null,
  "expectedHostName": "com.openai.codexextension",
  "expectedExtensionId": "hehggadaopoacecdllhhajmbjkdcmajg",
  "expectedOrigin": "chrome-extension://hehggadaopoacecdllhhajmbjkdcmajg/",
  "exists": false,
  "correct": false,
  "problem": "Windows native host registry key does not exist: HKCU\\Software\\Google\\Chrome\\NativeMessagingHosts\\com.openai.codexextension; Native host manifest does not exist: C:\\Users\\<USER>\\AppData\\Local\\OpenAI\\extension\\com.openai.codexextension.json"
}

The diagnostic exits with:

ExitCode: 1

Direct Windows checks confirm that this is not merely a diagnostic/parser issue.

Registry check

reg.exe query "HKCU\Software\Google\Chrome\NativeMessagingHosts\com.openai.codexextension" /ve

Result:

ERROR: The system was unable to find the specified registry key or value.

Manifest check

Expected manifest:

C:\Users\<USER>\AppData\Local\OpenAI\extension\com.openai.codexextension.json

Result:

Exists = False

Native host executable is present

The actual native host executable exists inside the bundled Chrome plugin:

...\openai-bundled\plugins\chrome\extension-host\windows\x64\extension-host.exe

Therefore, the native host executable itself is present, while the manifest/registry registration required for Chrome Native Messaging is missing.


Reinstalling the bundled Chrome plugin does not restore the registration

I completely closed the Codex desktop app and used the official Codex plugin CLI.

First:

codex.cmd plugin remove chrome@openai-bundled --json

Result:

{
  "pluginId": "chrome@openai-bundled",
  "name": "chrome",
  "marketplaceName": "openai-bundled"
}

Then:

codex.cmd plugin add chrome@openai-bundled --json

Result:

{
  "pluginId": "chrome@openai-bundled",
  "name": "chrome",
  "marketplaceName": "openai-bundled",
  "version": "26.623.141536",
  "installedPath": "C:\\Users\\<USER>\\.codex\\plugins\\cache\\openai-bundled\\chrome\\26.623.141536",
  "authPolicy": "ON_INSTALL"
}

The plugin is subsequently reported as:

chrome@openai-bundled
installed, enabled
26.623.141536

However, after reinstalling it:

  • The Native Messaging registry key is still missing.
  • com.openai.codexextension.json is still missing.
  • check-native-host-manifest.js --json still returns ExitCode 1.

Opening the selected Chrome profile also does not fix it

The bundled diagnostic command:

open-chrome-window.js --browser chrome --dry-run --json

correctly identifies the installed Chrome browser and selected profile:

{
  "browserFamily": "chrome",
  "browserName": "Google Chrome",
  "platform": "win32",
  "dryRun": true,
  "profileDirectory": "Default",
  "command": "cmd.exe",
  "args": [
    "/d",
    "/s",
    "/c",
    "start",
    "\"\"",
    "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
    "--profile-directory=Default",
    "--new-window",
    "about:blank"
  ]
}

I then ran the corresponding non-dry-run command, waited, and retried the Chrome browser connection.

The connection still failed.

Codex reports messages equivalent to:

Unable to read the current Chrome tabs because the browser connection service/bridge is unavailable.

Steps to reproduce

  1. Launch the Codex desktop app on Windows 11.

  2. Install and enable the official Codex/ChatGPT Chrome extension in Google Chrome.

  3. Verify that Chrome is running and that the extension is correctly detected.

    check-extension-installed.js reports that the extension is installed, registered, enabled, and selected, with ExitCode 0.

  4. Run the bundled Native Messaging Host diagnostic:

    node scripts/check-native-host-manifest.js --json
  5. The diagnostic returns ExitCode 1 and reports that both of the following are missing:

    C:\Users\<USER>\AppData\Local\OpenAI\extension\com.openai.codexextension.json
    
    HKCU\Software\Google\Chrome\NativeMessagingHosts\com.openai.codexextension
    
  6. Verify that the native host executable itself exists:

    ...\openai-bundled\plugins\chrome\extension-host\windows\x64\extension-host.exe
    
  7. Completely close the Codex desktop app.

  8. Remove and reinstall the bundled Chrome plugin:

    codex.cmd plugin remove chrome@openai-bundled --json
    codex.cmd plugin add chrome@openai-bundled --json
  9. Verify that chrome@openai-bundled is installed and enabled.

  10. Check the Native Messaging Host again.

    The manifest file and registry key are still not created, and check-native-host-manifest.js --json still returns ExitCode 1.

  11. Open the Chrome window/profile selected by the bundled diagnostic and retry a Chrome-backed Codex task, such as asking Codex to list the currently open Chrome tabs.

  12. Codex still cannot communicate with Chrome and reports that the browser connection service/bridge is unavailable.


Bundled troubleshooting guidance

The Chrome plugin's own docs/chrome-troubleshooting.md states:

"Do not install or repair the native host yourself. If native host setup appears broken, tell the user to reinstall the Chrome plugin from the Codex plugin UI."

It also states:

"Never import or run scripts/installManifest.mjs yourself."

Therefore, I did NOT manually run installManifest.mjs, manually create the Native Messaging Host manifest, or manually create the NativeMessagingHosts registry key.

Instead, I followed the documented recovery direction by removing and reinstalling the Chrome plugin through the official Codex plugin CLI.

This did not restore the Native Messaging Host registration.


Expected behavior

Following the documented recovery procedure (reinstalling the Chrome plugin) should restore the required Native Messaging Host registration, or otherwise trigger the supported setup flow that restores it.

After successful Chrome integration setup, the required Native Messaging Host manifest and Windows registration should be present and valid, and Codex should be able to communicate with the installed Chrome extension and access the selected Chrome profile.


Actual behavior

The Chrome extension and bundled Chrome plugin are both installed and detected successfully.

The native extension-host.exe executable is also present.

However, the Native Messaging Host manifest and corresponding Windows registry registration are missing and are not restored after reinstalling the bundled Chrome plugin.

Consequently, Codex cannot establish the Chrome extension/native-host bridge.


Additional observation

The bundled marketplace is resolved from:

C:\Users\<USER>\.codex\.tmp\bundled-marketplaces\openai-bundled

The bundled browser/chrome/computer-use plugins are reported as:

26.623.141536

while the Windows Codex app package is:

26.901.6511.0

and the primary-runtime plugins are:

26.905.11957

I do not know whether these independent version numbers are expected, so I am including them only as diagnostic information rather than assuming that the version difference is the cause.


Request

Could you please investigate why the Windows Chrome integration/native-host setup path does not create or restore the com.openai.codexextension Native Messaging Host registration in this configuration?

It would also be useful to clarify the supported recovery procedure when the bundled troubleshooting documentation says to reinstall the Chrome plugin from the Codex plugin UI, but the current Codex UI does not expose a reinstall action for the bundled Chrome plugin.

What steps can reproduce the bug?

  1. Launch the Codex desktop app on Windows 11.

  2. Install and enable the official Codex Chrome extension in Google Chrome.

  3. Verify that Chrome is running and that the extension is correctly detected by running the bundled diagnostics:

    node scripts/chrome-is-running.js --check
    node scripts/check-extension-installed.js --json

    chrome-is-running.js exits with code 0.

    check-extension-installed.js reports that the extension is installed, registered, enabled, and selected, and also exits with code 0.

  4. Run the bundled Native Messaging Host diagnostic:

    node scripts/check-native-host-manifest.js --json
  5. The diagnostic exits with code 1 and reports that both of the following are missing:

    C:\Users\<USER>\AppData\Local\OpenAI\extension\com.openai.codexextension.json
    
    HKCU\Software\Google\Chrome\NativeMessagingHosts\com.openai.codexextension
    
  6. Verify that the native host executable itself exists:

    ...\openai-bundled\plugins\chrome\extension-host\windows\x64\extension-host.exe
    
  7. Completely close the Codex desktop app.

  8. Remove and reinstall the official bundled Chrome plugin using:

    codex.cmd plugin remove chrome@openai-bundled --json
    codex.cmd plugin add chrome@openai-bundled --json
  9. Verify that chrome@openai-bundled is installed and enabled.

  10. Run the Native Messaging Host diagnostic again:

    node scripts/check-native-host-manifest.js --json

    The manifest file and registry key are still not created, and the diagnostic still exits with code 1.

  11. Open the selected Chrome profile using the bundled helper:

    node scripts/open-chrome-window.js

    Wait a few seconds, then retry a Chrome-backed Codex task, such as asking Codex to list the currently open Chrome tabs.

  12. Codex still cannot communicate with Chrome and reports that the browser connection service/bridge is unavailable.

Note

I did not manually run scripts/installManifest.mjs, manually create the Native Messaging Host manifest, or manually create the Windows registry entry because the bundled Codex troubleshooting documentation explicitly instructs users not to install or repair the native host manually.

What is the expected behavior?

Reinstalling chrome@openai-bundled should install and register the required Windows Native Messaging Host, creating:

C:\Users\<USER>\AppData\Local\OpenAI\extension\com.openai.codexextension.json

and:

HKCU\Software\Google\Chrome\NativeMessagingHosts\com.openai.codexextension

Codex should then be able to communicate with the installed Chrome extension and access the selected Chrome profile.

Additional information

No response

Activity

  1. added
    app
    on Sep 8, 2026
  2. added
    bug
    windows-os
    skills
    on Sep 8, 2026
  3. dylanyongxin-sys commented on Sep 10, 2026

    @dylanyongxin-sys
    Author

    Hi, just following up on this issue.

    I reviewed the potential duplicates suggested above. #43056 involves an existing but stale Native Messaging Host manifest, whereas in this case both the manifest and the Windows registry entry are completely missing and are not recreated after reinstalling the bundled Chrome plugin.

    Could a maintainer please confirm whether this is a known issue or whether any additional diagnostics would be helpful? I’m happy to provide further logs or test a proposed fix.

  4. AC707 commented on Sep 13, 2026

    @AC707

    Additional Windows reproduction on a newer build, submitted with user authorization and sanitized for privacy.

    Environment

    • Windows 11 Home China 25H2, build 26200.9445, x64
    • Codex Desktop AppX: 26.908.4834.0
    • Codex CLI: 0.154.0-alpha.6.2
    • Bundled Browser/Chrome plugin runtime observed: 26.908.40834
    • Google Chrome: 153.0.8010.37
    • ChatGPT/Codex Chrome extension: 1.26.901.11451

    Local usernames, project/workspace paths, task/session IDs, browsing history, private URLs, cookies, tokens, account identifiers, and full raw logs are intentionally omitted.

    Reproduction / observed behavior

    1. Start Codex Desktop locally on Windows and ensure Chrome is running with the official ChatGPT/Codex Chrome extension installed and enabled.
    2. Browser discovery succeeds. The Chrome backend is reported as family=chrome, type=extension.
    3. The Browser RPC object can be selected/bound.
    4. chrome.tabs.list() (and the equivalent open-tabs call) fails before any tab can be enumerated with:
    Error: nodeRepl.fetch request failed
    

    The error has no deeper cause (null/undefined in the observed runtime).

    Native Messaging diagnostics

    Read-only checks show that the required Chrome Native Messaging registration is absent.

    Missing registry entries:

    HKCU\Software\Google\Chrome\NativeMessagingHosts\com.openai.codexextension
    HKLM\Software\Google\Chrome\NativeMessagingHosts\com.openai.codexextension
    HKLM\Software\WOW6432Node\Google\Chrome\NativeMessagingHosts\com.openai.codexextension
    

    Expected manifest is also missing:

    %LOCALAPPDATA%\OpenAI\extension\com.openai.codexextension.json
    

    At the same time, the bundled native-host executable exists in the installed Chrome plugin runtime, the current latest plugin junction resolves to the installed plugin version, and the OpenAI Authenticode signature on the native host is valid.

    This leaves the installation in an internally inconsistent state: Chrome/extension discovery works and the native-host binary is present, but the Native Messaging manifest/registry registration required to bridge the extension to Codex is missing.

    Layer isolation

    Observed state:

    Browser Discovery: PASS
    Browser RPC: FAIL at first tab-level request
    Native Messaging: FAIL — registration/manifest missing
    Tab Discovery: FAIL (blocked by upstream Native Messaging failure)
    CDP Session: not established
    

    No page content or tab title can be read because the failure occurs before a CDP session is established.

    Checks that did NOT show the older failure signatures

    The current logs did not show:

    • Trusted RPC dependency must resolve within a configured trusted code path
    • admin-enforced policy could not be verified
    • Chrome native host is out of date
    • no browser found
    • browser plugin initialization failed

    CODEX_CLI_PATH was not set in the inspected current process/user environment.

    Recovery attempts / constraints

    • App/browser are already on current versions available to this machine.
    • Full application/browser restarts and a fresh Codex task reproduce the same failure.
    • No manual registry key was created.
    • No manifest was fabricated.
    • No unsupported native-host installer script was run.
    • No cookies, credentials, security settings, or browser profile data were modified.

    Expected behavior

    Codex Desktop should reconcile/install the Chrome Native Messaging host automatically when the bundled Chrome integration is present, creating a valid manifest and registry entry before reporting the Chrome backend as usable.

    If that setup step fails, the product should report an actionable native-host registration error rather than allowing browser discovery to succeed and surfacing only the generic nodeRepl.fetch request failed on the first tab RPC.

    Related symptom

    This reproduction also matches the tab-level RPC symptom tracked in #44697 (nodeRepl.fetch request failed after Chrome discovery), but here the concrete local abnormality is that the Native Messaging host registration and manifest are missing.

    No claim is made that the recent Windows update is causal; only the observed OS build is reported.

  5. Sensen-zs commented on Oct 7, 2026

    @Sensen-zs

    Additional reproduction on Windows Codex Desktop 26.1002.7124.0.

    Chrome / Browser integration previously recovered temporarily, but failed again following desktop updates. Reinstalling the integrations through Codex Settings and restarting did not restore connectivity.

    Read-only diagnostics on October 8, 2026 found:

    • The installed desktop package contains Browser / Chrome plugins 26.1002.52244.
    • The active local bundled marketplace still contains 26.928.21956, with a bundle identity different from the installed package.
    • NODE_REPL_TRUSTED_SERVICES still references:
      %USERPROFILE%\.codex\plugins\cache\openai-bundled\browser\26.928.21956\scripts\browser-service.mjs
    • Both Browser and Chrome cache directories lack latest.
    • The ordinary HKCU Chrome NativeMessagingHosts registration for com.openai.codexextension is absent.
    • A residual registration exists under:
      HKCU\Software\WOW6432Node\Google\Chrome\NativeMessagingHosts\com.openai.codexextension
    • That registration points to:
      %LOCALAPPDATA%\OpenAI\extension\com.openai.codexextension.json
    • The referenced JSON file does not exist.

    These are direct registry/filesystem findings, not solely a result from the bundled manifest checker.

    This installation has a history of manual troubleshooting, including cache and registration changes. It is not a clean-install reproduction. No repair or environment modification was performed during this investigation.

    The findings suggest inconsistent update/reconciliation state, but do not establish the complete causal chain or prove an encrypted-copy/file-lock failure.

    Related reports: #47443 for stale bundled marketplace/runtime versions, and #42520 for update-time activation and registration drift.

    Feedback ID:
    01a0ced4-25ae-7932-aa18-6639e39f989b

    The in-app feedback submission includes diagnostic and browser logs. Private paths, browsing content and credentials are intentionally omitted here.

    Could maintainers confirm whether a supported fix has shipped, identify the Windows desktop build containing it, and explain whether existing broken installations should reconcile automatically?

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

    appbrowserbugskillswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions