Ubuntu 24.04, VS Code 1.125.1, Codex 26.616.51431. failed to load codex chat ...
Open 💬 5 comments Opened Jun 21, 2026 by qjdykhvftb-ops
Ubuntu 24.04, VS Code 1.125.1, Codex 26.616.51431. The extension preloads 1,410 webview assets, exceeding VS Code’s inherited 1,024 open-file limit. Assets fail with net::ERR_FAILED,
> leaving the petal loader indefinitely. Raising ulimit -n to 65536 fixes it; routes mount in ~4.5 seconds.
5 Comments
Additional verified diagnostics
Environment
1.125.1openai.chatgpt@26.616.51431codex-cli 0.142.0-alpha.6RLIMIT_NOFILE:1024 / 1048576webview/assetsdirectory:1410Observed failure
The Codex backend was healthy:
codex app-serverremained running, authentication was valid, andcodex doctorreported working WebSocket connectivity. The sidebar stayed on the static petal/terminal startup loader because its module graph did not finish loading.Chrome DevTools Protocol inspection of the Codex webview captured this uncaught exception:
Dozens of existing, readable local assets failed concurrently, including JS and CSS files:
At the same time, VS Code's renderer log reported:
The files existed, were owned by the user, had mode
0644, and were on a normal local ext4 filesystem. This was not a missing-file, extension-signature, OAuth, network-connectivity, or Codex app-server problem.Controlled comparison
With the unmodified extension and the inherited soft limit of
1024, repeated clean-profile launches remained on the startup loader and never loggedapp routes mounted.Launching the same VS Code and extension builds with:
caused the main and extension-host processes to inherit
65536 / 65536. The same clean-profile test then succeeded consistently and logged:Suggested fix
Please avoid eagerly preloading enough webview chunks to exhaust a common Linux desktop soft file-descriptor limit of 1024. Limiting asset-load concurrency, reducing the generated chunk/preload count, and handling preload failures without aborting application startup would make the extension robust without requiring users to modify their VS Code launcher.
I can reproduce the same failure on a current Linux build even though VS Code's inherited open-file limit is 1,073,741,816, so this does not appear to require the 1,024 FD limit described in the original report.
Environment:
26.707.41301(linux-x64)1.128.0Linux 6.14.0-37-generic x86_64codex-cli 0.144.0-alpha.4Max open files: soft/hard1073741816Symptoms and diagnostics:
codex app-server, receives initialize requestid=1, and establishes its HTTPS connection. The backend is healthy.NetworkError: Failed to execute 'put' on 'Cache': Cache.put() encountered a network errorfile+.vscode-resource.vscode-cdn.netassets failing withnet::ERR_FAILED.Error: Unable to preload CSS for .../generated-image-preview-Dzsr8GQ_.css26.707.31123to26.707.41301, because the update replaced the workaround below.Confirmed workaround:
In
webview/assets/preload-helper-CQB7nEpd.js, retain CSS preload links but skip eager JavaScriptmodulepreloadlinks:JavaScript still loads through normal ES module imports. After this one-line behavioral change and a webview-cache reset, the complete Tasks/composer UI mounts reliably and the startup loader disappears. The same workaround has fixed two consecutive extension builds here (
26.707.31123and26.707.41301).This suggests the large eager preload burst itself can overwhelm or race VS Code's webview/service-worker resource transport independently of the process FD limit. Reducing/limiting JS preloads, or making CSS preload failures non-fatal, would make startup robust.
Same issue reproducing for me also.
Couple of days back i installed fresh ubuntu 24.
I tried installing codex extension in VSCode, after installing it results in loading screen and won't allow us to login/use.
Please fix this issue soon 🙏
@qjdykhvftb-ops @etegan I have a solution guys. Open your repo folder/workspace from ubuntu terminal. It works.
Thank me later.
setting a higher ulimit fixes for me, ubuntu 26.04, but still annoying as heck to diagnose this.