Skip to content

VS Code: Codex panel crashes / reload-loops when Amazon Q extension is enabled (Windows) #30830

Description

@Metrotechs

Bug: Codex VS Code extension shows blank/stuck panel after every auto-update (Windows)

Summary

On Windows, every time the ChatGPT/Codex VS Code extension auto-updates, the Codex
panel comes up blank / stuck and the extension is unusable until it is manually
uninstalled and reinstalled. This has now reproduced across two consecutive updates.

Environment

  • OS: Windows 11 Home, build 26200
  • VS Code: 1.126.0 (commit 7e7950df89d055b5a378379db9ee14290772148a), x64
  • Extension: openai.chatgpt
  • Affected versions observed: 26.623.70822, 26.623.81905 (both broke on update)
  • Auth mode: chatgpt (login stored in ~/.codex/auth.json, valid throughout)

Symptom

  • Codex webview panel renders blank / never becomes interactive.
  • Extension host repeatedly re-activates the extension shortly after startup.
  • App routes take abnormally long to mount and the delay grows across updates:
    ~8.4s on 6/29, then ~18.6s on 7/1.
  • The codex.exe app-server process is not running after the panel fails to load.

Reproduction

  1. Have the extension installed and working.
  2. Let VS Code auto-update the extension to a new build (happened 6/29 and again 7/1).
  3. Open the Codex panel -> blank / stuck.

Root cause (suspected)

The auto-update is applied while the previous build's codex.exe app-server is still
running and holding a file lock. Evidence: attempting to remove the old extension
folder after update fails with:

Access to the path 'codex.exe' is denied.

This leaves the extension in a half-updated state (new webview assets, old locked
binary / stale state), producing the blank panel.

Log evidence (from %APPDATA%\Code\logs...\openai.chatgpt\Codex.log)

  • Repeated "Activating Codex extension" within the same minute (re-activation loop).
  • "[startup][renderer] app routes mounted after 18640ms" (18.6s; was 8362ms previously).
  • Request failed method=fs/readFile error "The system cannot find the path specified.
    (os error 3)" on every startup.
  • "Statsig: error while bootstrapping post-login client error={}"
  • "[desktop-notifications][unhandled-rejection] {"value":{}...}"

Workaround that reliably fixes it

  1. code --uninstall-extension openai.chatgpt
  2. code --install-extension openai.chatgpt --force
  3. Command Palette -> "Developer: Reload Window"

After this the panel renders normally — until the next auto-update, which reintroduces
the problem.

Suggested fix

Ensure the codex.exe app-server is fully terminated before the extension update is
applied / on extension deactivation, so updates don't land over a locked binary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    app-serverIssues involving app server protocol or interfacesbugSomething isn't workingextensionIssues related to the VS Code extensionwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions