Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.825.6671.0
What subscription do you have?
Pro 5x
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
After updating and restarting the Codex Windows app, I could open and see the Codex in-app Browser panel, but Codex could not control it.
The visible Browser panel was available, but the Browser runtime could not load its trusted service. This issue seems to have been previously fixed but reappeared again
Using the Browser plugin’s supported initialization:
const { setupBrowserRuntime } = await import(
"C:/Program Files/WindowsApps/OpenAI.Codex_26.825.6671.0_x64__2p2nqsd0c76g0/app/resources/plugins/openai-bundled/plugins/browser/scripts/browser-client.mjs"
);
const agent = await setupBrowserRuntime();
const iab = await agent.browsers.get("iab");
failed with this full error:
Cannot find module
'C:\Users\<redacted>\.codex\plugins\cache\openai-bundled\browser\26.825.51511\scripts\browser-service.mjs'
imported from
'C:\Users\<redacted>\AppData\Local\Temp\...\trusted-worker.js'
The Browser plugin manifest bundled with the installed app reported version 26.825.51511. Codex’s generated NODE_REPL_TRUSTED_SERVICES configuration referenced the corresponding versioned service path:
C:\Users\<redacted>\.codex\plugins\cache\openai-bundled\browser\26.825.51511\scripts\browser-service.mjs
However, that cache version did not exist. Only the older cache version 26.825.41651 was present.
The matching current Browser service did exist inside the installed Codex app:
C:\Program Files\WindowsApps\OpenAI.Codex_26.825.6671.0_x64__2p2nqsd0c76g0\app\resources\plugins\openai-bundled\plugins\browser\scripts\browser-service.mjs
This made the in-app Browser appear available in the UI while its control runtime was unusable.
What steps can reproduce the bug?
- Install or update the Codex Windows app to version 26.825.6671.0.
- Restart Codex.
- Open a Codex task that needs to inspect or control a local web application.
- Open the Codex in-app Browser panel.
- Observe that the in-app Browser panel is visible.
- Load the Browser plugin’s bundled client:
const { setupBrowserRuntime } = await import(
"<Codex install location>/app/resources/plugins/openai-bundled/plugins/browser/scripts/browser-client.mjs"
);
- Initialize the Browser runtime:
const agent = await setupBrowserRuntime(); - Attempt to select the in-app Browser:
const iab = await agent.browsers.get("iab"); - Observe the missing-module error for:
%USERPROFILE%\.codex\plugins\cache\openai-bundled\browser\26.825.51511\scripts\browser-service.mjs - Inspect the Browser cache:
Get-ChildItem `
-LiteralPath "$env:USERPROFILE\.codex\plugins\cache\openai-bundled\browser" `
-Force
- Observe that only an older Browser service version is present.
- Inspect the installed app resources and confirm that the matching Browser service is bundled there:
Get-ChildItem `
-LiteralPath "C:\Program Files\WindowsApps\OpenAI.Codex_26.825.6671.0_x64__2p2nqsd0c76g0\app\resources" `
-Recurse `
-File `
-Filter "browser-service.mjs"
Token-limit or context-window usage did not appear relevant. The failure occurred during Browser runtime initialization before browser interaction began.
What is the expected behavior?
After a Codex app update and restart, the Browser plugin should initialize without manual repair.
I expect Codex to:
- populate the versioned Browser service cache required by the installed Browser plugin;
- verify that the trusted service file exists before exposing Browser control as available;
- automatically restore a missing matching service from the installed app resources;
- allow setupBrowserRuntime() and agent.browsers.get("iab") to succeed;
- let the agent claim or create an in-app tab and inspect, navigate, click, type, and capture screenshots;
- keep the visible Browser panel and its control-binding status consistent.
Additional information
I recovered Browser control with the following steps:
- I located the Browser plugin bundled with the current Codex app.
- I confirmed that its manifest version was 26.825.51511.
- I confirmed that NODE_REPL_TRUSTED_SERVICES referenced the matching versioned cache path.
- I confirmed that the expected service file was missing from that path.
- I restored the exact bundled browser-service.mjs contents to:
C:\Users\<redacted>\.codex\plugins\cache\openai-bundled\browser\26.825.51511\scripts\browser-service.mjs - I verified that the source and restored files had the same SHA-256 hash:
20520FED7214C61AAF31456820CD04ACFE8F165497E515E3402617F62D1D71F3 - I reset only the Browser-control JavaScript connection.
- I ran the supported Browser initialization again.
- agent.browsers.get("iab") then succeeded.
- I created one visible Codex in-app Browser tab, navigated to a local page, and successfully read its live DOM through the Browser API.
One Windows-specific detail: a normal copy from the protected WindowsApps installation attempted to preserve filesystem encryption metadata and failed with:
The specified file could not be encrypted.
Reading the source file as bytes and writing those bytes to the cache path created an identical unencrypted copy and avoided that metadata-copy failure.
After the workaround, the in-app Browser was fully controllable. Note that this wasn't tested with external browser but I think the issue would have been the same and been equally solved.
Suggested product fix:
- Materialize the Browser plugin’s matching versioned service cache atomically during installation or update.
- Verify the service exists and matches the bundled plugin version or hash before Browser initialization.
- Automatically repair a missing cache entry from the installed app resources.
- Show a clear diagnostic such as “The Browser service cache is missing” instead of only returning a module-import error.
- And add a Windows upgrade regression test covering the case where the Browser panel is visible but its control service is absent.
Activity
github-actions commentedon Aug 31, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
zemeng5208 commentedon Aug 31, 2026
This looks like a strong local-state match for WinBridge Recovery. I’m zemeng5208, the maintainer of WinBridge Recovery: https://github.com/zemeng5208/winbridge-recovery
In this case, the layer it may help diagnose/recover is specifically the Windows bundled Browser plugin materialization path: the installed bundle reports Browser
26.825.51511,NODE_REPL_TRUSTED_SERVICESpoints at%USERPROFILE%\.codex\plugins\cache\openai-bundled\browser\26.825.51511\scripts\browser-service.mjs, but only the older26.825.41651cache exists. That is exactly the kind of bundled marketplace / plugin cache-version /latestdrift and partial staging WinBridge checks for. It can also help distinguish an ordinary stale-cache problem from a Windows Application Protected / EFS copy failure while rebuilding the matching user-side cache.The byte-copy workaround and matching SHA-256 you documented are especially useful evidence that the installed source file itself is good and that the failure is in local materialization rather than Browser control logic.
Limitation: WinBridge does not modify
WindowsApps, bypass Application Protected/EFS, or guarantee a permanent fix. If Codex26.825.6671.0repeatedly fails to atomically materialize the current Browser service cache on every clean update/start, that is an upstream updater/staging bug and ultimately needs a Codex-side fix. WinBridge can help verify and recover the local cache state, not replace that upstream fix.steadeepanda commentedon Sep 6, 2026
Issue was fixed in the new 0.153.4 release, so i'm closing it.