Repository navigation
Description
Summary
This is a VS Code platform bug, but Codex can and should defend against it — and**
right now it is silently eating a whole cluster of your "blank panel / stuck on
**logo" reports.
I was able to nail down the root cause on the Codex extension, so I am reporting it
here as well as upstream:
After
openai.chatgptupdates in place, VS Code's on-disk webview
service-worker cache keeps resolvingwebview/assets/*.jsagainst the previous
extension directory — which VS Code itself deletes on the next start. Every chunk
fails withnet::ERR_FAILED, the React app never mounts, and the panel shows
nothing but the OpenAI logo. Because the cache lives on disk, this survives a panel
reload, a window reload, a VS Code restart and a full machine reboot.
Upstream report (root cause, full evidence): https://github.com/microsoft/vscode/issues/325767
I only have a workaround, not a fix — see below. But the mitigation I am asking
for here is cheap and lives entirely on your side.
Why this is your problem too
The fix belongs to VS Code, but the last time this exact mechanism was reported
against an extension (anthropics/claude-code#13130 — same bug, different vendor) it
was closed as not planned and nothing happened. Meanwhile these are all still open
in this tracker, all with the same symptom and no root cause found:
- VS Code extension: Codex panel blank unless VS Code is started with --disable-extension <anything> #32388 — Linux, VS Code 1.128.0, extension 26.707.41301: that is the
exact VS Code + extension version pair I reproduced this on. The reporter's
accidental workaround (code --disable-extension <anything>) is consistent with a
cache/startup-state artifact rather than an extension conflict. - Codex extension stuck on loading/logo screen after VS Code update on Windows #15975 — "stuck on loading/logo screen after VS Code update", no maintainer response.
- Codex panel empty in VS Code #28280 — "Codex panel empty in VS Code".
I would bet a good share of these are one bug.
What I ask for
- Force a window reload after an in-place update. The extension knows its own
version. If the running version differs from the version the webview was built
against, prompt for (or force) Reload Window rather than rendering into a resource
map that can no longer resolve. This alone would make the panel immune, regardless of
what VS Code does. - Version-stamp the webview asset URLs. If the asset URLs carried the extension
version, a stale service-worker entry could not silently shadow the new build. - Detect and surface it. If the webview's asset fetches fail, say so in the panel
("the extension was updated — reload the window") instead of showing a logo forever.
The current failure mode is undiagnosable for a normal user: every log is green.
Evidence
Environment: Debian 12 (bookworm), kernel 6.1.0-50, x64 · VS Code 1.128.0
(fc3def6774c76082adf699d366f31a557ce5573f) · openai.chatgpt 26.707.71524
(previously 26.707.41301, before that 26.707.31428) · ChatGPT sign-in,codex login status green throughout.
1. VS Code deletes the old extension dir the cache still points at —~/.config/Code/logs/20260714T120150/sharedprocess.log:
2026-07-14 12:01:55.024 [info] Marked extension as removed openai.chatgpt-26.707.41301-linux-x64
2026-07-14 12:01:56.557 [info] Deleted marked for removal extension from disk openai.chatgpt /home/tg/.vscode/extensions/openai.chatgpt-26.707.41301-linux-x64
Only the new directory remains, and there is no stale openai.chatgpt entry in.obsolete — so this is not the "old folders left behind" theory fromanthropics/claude-code#13130. Cleanup is clean; the cache is simply never told.
2. The cache predates the new extension. mtimes in the broken state:
2026-07-14 09:45:41 ~/.vscode/extensions/openai.chatgpt-26.707.71524-linux-x64 <- new extension
2026-07-12 16:17:52 ~/.config/Code/Service Worker <- built while 41301 was live
2026-07-12 16:17:49 ~/.config/Code/{Cache,Code Cache,CachedData,GPUCache}
3. The Codex backend is completely healthy — it is purely the webview.window1/exthost/openai.chatgpt/Codex.log from the broken session:
2026-07-14 12:01:54.428 [info] Activating Codex extension
2026-07-14 12:01:54.428 [info] [CodexMcpConnection] Spawning codex app-server
2026-07-14 12:01:56.106 [info] [CodexMcpConnection] Initialize received id=1
renderer.log and exthost.log: no errors at all. This is the trap. Everyone
debugging this — including me, the first time — goes after the app-server or the
auth, because that is where you would look. Both are fine. My id_token had been
expired for days and it was still irrelevant.
4. The only place the error appears — Developer: Open Webview Developer Tools → Console:
Failed to load resource: net::ERR_FAILED .../webview/assets/<chunk>.js
…for chunks that exist on disk under the new extension path.
Full disclosure: that console capture is from the first occurrence (2026-07-12). On
the second (2026-07-14) I went straight to the fix and did not re-open DevTools; all
other evidence above is from 2026-07-14.
Workaround for anyone landing here
Delete VS Code's caches with VS Code shut down (pure caches — settings and
extensions are untouched, VS Code rebuilds them):
pkill -TERM -f '/usr/share/code/code' # and wait for it to actually exit
rm -rf ~/.config/Code/{"Service Worker",Cache,"Code Cache",GPUCache,CachedData}
rm -rf /tmp/codex-ipc
code2 / 2 successful. What does not work: reloading the panel, Reload Window,
restarting VS Code, rebooting, killing the app-server, re-authenticating.
Diagnosis shortcut, faster than opening DevTools: if~/.vscode/extensions/openai.chatgpt-* is newer than~/.config/Code/Service Worker, you have this bug.
Activity
github-actions commentedon Jul 14, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
LeoKrashkar commentedon Jul 14, 2026
Thank you so much for this workaround. I tried everything before.
initiatione commentedon Jul 17, 2026
Additional Linux/Wayland data point for the same Webview bootstrap/cache failure.
Environment:
125df4672b8a6a34975303c6b0baa124e560a4f7, Electron 42.6.0)[email protected]Observed behavior:
Initialize received id=1.[startup][renderer] app routes mountedor[statsig-refresh-diagnostics] ready provider mounted.webview-not-ready.codex doctor --summary,codex debug models, and an app-serversend-message-v2test all pass, so authentication, model catalog, network reachability, and the backend are healthy.CodeWindow: renderer process gone (reason: clean-exit, code: <unknown>); the extension host then exits with code 0 because the renderer closed its MessagePort.doReadFileStream/loadResource).Workarounds tested:
openai.chatgptin an isolated profile keeps the renderer stable.clean-exitwindow termination.This appears to be an overlap between the VS Code 1.129 renderer regression and the Codex Webview's failed/stale local-resource bootstrap. Related reports: #33521 (Linux renderer termination with
26.707.91948) and #32530 (Linux local Webview assets failing withnet::ERR_FAILED).dbt1 commentedon Jul 17, 2026
Confirmed root cause on my setup: renderer crashes with SIGBUS when VS Code runs with
--disable-gpu(SwiftShader path)Similar symptom class as this issue, but on my machine the Codex webview doesn't just get stuck — it hard-crashes the VS Code renderer process the moment the Codex panel opens.
Environment
openai.chatgpt26.707.91948, bundledcodex-cli0.144.5Symptom / logs
CodeWindow: renderer process gone (reason: crashed, code: 135)→ exit code 135 = 128 + 7 = SIGBUS.--type=rendererprocess (signal 7, BUS).potential listener LEAK detectedin the webview resource loader./dev/shm16 GB (1% used), home partition 332 GB free, no kernel I/O / MCE / hardware errors.Root cause
My VS Code launcher was started with
--disable-gpu(a workaround for older unrelated crashes). That forces the WebGL/canvas-heavy Codex webview (--max-active-webgl-contexts=32) onto SwiftShader (software GL), which reproducibly faults with SIGBUS in the renderer.Fix / workaround
Removing
--disable-gpu(letting the real GPU handle rendering) resolves it completely — Codex opens without crashing:Suggestion: the extension might guard against the software-GL renderer, or avoid requiring WebGL contexts for the panel, so users running
--disable-gpu(common on Linux to avoid other GPU crashes) don't hit a hard renderer crash.