Windows: Chrome native host file lock prevents bundled-marketplaces rebuild, breaking multiple bundled plugins
Summary
On Windows, after installing the Codex Chrome plugin and enabling the corresponding Chrome browser extension, the Chrome extension can keep the Codex Native Messaging host process running from inside the bundled marketplace/cache tree.
The observed executable is:
%USERPROFILE%\.codex\.tmp\bundled-marketplaces\openai-bundled\plugins\chrome\extension-host\windows\x64\extension-host.exe
Because Windows locks a running executable, Codex may fail to fully delete or rebuild:
%USERPROFILE%\.codex\.tmp\bundled-marketplaces
This can leave the bundled marketplace partially removed or partially regenerated, causing multiple bundled plugins such as browser, chrome, and computer-use to become unavailable.
This is related to #22114 and #25780, but this report highlights the Native Messaging lifecycle problem: manually killing extension-host.exe is not enough while the Chrome extension remains enabled, because Chrome can start the host again.
Environment
- OS: Windows
- Codex App: Windows Store build; package path observed with version
26.527.3686.0 - Codex Chrome plugin installed
- Chrome browser extension installed and enabled
- Chrome extension ID observed in the native host command line:
hehggadaopoacecdllhhajmbjkdcmajg
Observed behavior
A native host process remains running from the Codex bundled marketplace/cache path:
%USERPROFILE%\.codex\.tmp\bundled-marketplaces\openai-bundled\plugins\chrome\extension-host\windows\x64\extension-host.exe
or from the plugin cache path:
%USERPROFILE%\.codex\plugins\cache\openai-bundled\chrome\latest\extension-host\windows\x64\extension-host.exe
The process command line includes the Chrome extension origin:
chrome-extension://hehggadaopoacecdllhhajmbjkdcmajg/
This indicates that it is being launched by Chrome through Native Messaging. If the process is killed manually while the Chrome extension remains enabled, Chrome can automatically start it again.
Impact
When Codex updates, starts, or rebuilds bundled marketplace contents, it attempts to remove or recreate the bundled marketplace directory. If extension-host.exe is still running from inside that tree, Windows prevents complete deletion or replacement.
After this happens, the marketplace can be left incomplete, which prevents multiple bundled plugins from being discovered or loaded. The visible symptom is not only that the Chrome plugin fails, but that several OpenAI-bundled plugins become unavailable, including at least:
browser
chrome
computer-use
Expected behavior
Codex should avoid corrupting the bundled marketplace when the Chrome Native Messaging host is running.
Possible expected behaviors:
- Do not run long-lived native host binaries from a temporary or mutable marketplace/cache directory that may be deleted during updates.
- Before deleting or rebuilding the bundled marketplace, stop or unregister the Chrome Native Messaging host, or prompt the user to fully close Chrome / disable the Codex Chrome extension.
- Use a robust staging plus atomic swap strategy, preserving the previous complete marketplace if deletion or replacement fails.
- If a file lock is detected, report a clear actionable error instead of leaving
bundled-marketplacesin a partially generated state. - Ensure one locked plugin host cannot corrupt the entire
openai-bundledmarketplace and break unrelated bundled plugins.
Workaround
A manual workaround is:
- Disable the Codex Chrome extension in Chrome.
- Fully close Chrome, including background apps.
- Close Codex.
- Kill any remaining
extension-host.exeprocess. - Delete
%USERPROFILE%\.codex\.tmp\bundled-marketplaces. - Restart Codex and let it regenerate the bundled marketplace.
- Re-enable or reinstall the Chrome plugin afterward.
This workaround suggests the failure is strongly related to the Native Messaging host keeping files locked while Codex rebuilds the bundled marketplace.
Related issues:
- #22114
- #25780
- #21670
- #24296
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗