Skip to content

Panel stuck on the logo after an in-place extension update: stale VS Code webview service-worker cache (root cause + workaround; likely explains #15975 / #28280 / #32388) #33032

Closed

Description

@dbt1

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.chatgpt updates in place, VS Code's on-disk webview
service-worker cache keeps resolving webview/assets/*.js against the previous
extension directory — which VS Code itself deletes on the next start. Every chunk
fails with net::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:

I would bet a good share of these are one bug.

What I ask for

  1. 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.
  2. 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.
  3. 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 from
anthropics/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
code

2 / 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

  1. added
    bug
    extension
    on Jul 14, 2026
  2. LeoKrashkar commented on Jul 14, 2026

    @LeoKrashkar

    Thank you so much for this workaround. I tried everything before.

  3. initiatione commented on Jul 17, 2026

    @initiatione

    Additional Linux/Wayland data point for the same Webview bootstrap/cache failure.

    Environment:

    • Ubuntu 24.04.4 LTS, GNOME Wayland, NVIDIA graphics
    • VS Code 1.129.0 (125df4672b8a6a34975303c6b0baa124e560a4f7, Electron 42.6.0)
    • [email protected]
    • Codex CLI 0.144.5

    Observed behavior:

    • The Codex app-server starts and logs Initialize received id=1.
    • The Webview never emits [startup][renderer] app routes mounted or [statsig-refresh-diagnostics] ready provider mounted.
    • The Webview inspector classifies the session as webview-not-ready.
    • codex doctor --summary, codex debug models, and an app-server send-message-v2 test all pass, so authentication, model catalog, network reachability, and the backend are healthy.
    • In failing 1.129 sessions, VS Code reports CodeWindow: renderer process gone (reason: clean-exit, code: <unknown>); the extension host then exits with code 0 because the renderer closed its MessagePort.
    • The renderer log shows repeated listener-leak warnings in VS Code's local resource-loading path (doReadFileStream / loadResource).

    Workarounds tested:

    • Disabling openai.chatgpt in an isolated profile keeps the renderer stable.
    • Downgrading VS Code from 1.129.0 to 1.128.0 stops the clean-exit window termination.
    • Rebuilding the VS Code Webview/Chromium caches using the documented cache-repair script allows the Codex panel to recover without changing authentication, Codex configuration, or project files.

    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 with net::ERR_FAILED).

  4. dbt1 commented on Jul 17, 2026

    @dbt1
    Author

    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

    • OS: Debian 13 (trixie), kernel 6.12.95, x86_64
    • Session: Wayland / KDE Plasma
    • GPU: AMD Radeon RX 6600 (amdgpu, Mesa 25.0.7)
    • VS Code: 1.129.0 (deb)
    • Extension: openai.chatgpt 26.707.91948, bundled codex-cli 0.144.5

    Symptom / logs

    • On opening the Codex view: CodeWindow: renderer process gone (reason: crashed, code: 135) → exit code 135 = 128 + 7 = SIGBUS.
    • Coredump confirms the crash is in the --type=renderer process (signal 7, BUS).
    • Extension host log right before the crash:
      Activating Codex extension
      [CodexMcpConnection] Spawning codex app-server
      
      plus repeated potential listener LEAK detected in the webview resource loader.
    • Environment was healthy — ruled out the usual SIGBUS causes: /dev/shm 16 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:

    # crashes:
    /usr/share/code/code --disable-gpu --ozone-platform=x11
    # works:
    /usr/share/code/code --ozone-platform=x11

    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.

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

    bugextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions