Skip to content

Regression : Codex desktop in-app Browser agent control fails after app update #41764

Closed

Description

@steadeepanda

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?

  1. Install or update the Codex Windows app to version 26.825.6671.0.
  2. Restart Codex.
  3. Open a Codex task that needs to inspect or control a local web application.
  4. Open the Codex in-app Browser panel.
  5. Observe that the in-app Browser panel is visible.
  6. 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"
);
  1. Initialize the Browser runtime:
    const agent = await setupBrowserRuntime();
  2. Attempt to select the in-app Browser:
    const iab = await agent.browsers.get("iab");
  3. Observe the missing-module error for:
    %USERPROFILE%\.codex\plugins\cache\openai-bundled\browser\26.825.51511\scripts\browser-service.mjs
  4. Inspect the Browser cache:
Get-ChildItem `
  -LiteralPath "$env:USERPROFILE\.codex\plugins\cache\openai-bundled\browser" `
  -Force
  1. Observe that only an older Browser service version is present.
  2. 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:

  1. I located the Browser plugin bundled with the current Codex app.
  2. I confirmed that its manifest version was 26.825.51511.
  3. I confirmed that NODE_REPL_TRUSTED_SERVICES referenced the matching versioned cache path.
  4. I confirmed that the expected service file was missing from that path.
  5. 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
  6. I verified that the source and restored files had the same SHA-256 hash:
    20520FED7214C61AAF31456820CD04ACFE8F165497E515E3402617F62D1D71F3
  7. I reset only the Browser-control JavaScript connection.
  8. I ran the supported Browser initialization again.
  9. agent.browsers.get("iab") then succeeded.
  10. 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

  1. added
    app
    on Aug 31, 2026
  2. added
    bug
    windows-os
    on Aug 31, 2026
  3. github-actions commented on Aug 31, 2026

    @github-actions
    Contributor
  4. zemeng5208 commented on Aug 31, 2026

    @zemeng5208

    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_SERVICES points at %USERPROFILE%\.codex\plugins\cache\openai-bundled\browser\26.825.51511\scripts\browser-service.mjs, but only the older 26.825.41651 cache exists. That is exactly the kind of bundled marketplace / plugin cache-version / latest drift 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 Codex 26.825.6671.0 repeatedly 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.

  5. steadeepanda commented on Sep 6, 2026

    @steadeepanda
    Author

    Issue was fixed in the new 0.153.4 release, so i'm closing it.

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

    appbrowserbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions