codex icon indicating copy to clipboard operation
codex copied to clipboard

🩹 Codex VS Code Extension becomes all blank

Open tradingfuturo opened this issue 10 months ago • 19 comments

What version of Codex is running?

v0.87.0

What subscription do you have?

Business

Which model were you using?

all of them

What platform is your computer?

Windows 11

What terminal emulator and version are you using (if applicable)?

Visual Studio Code

What issue are you seeing?

Sometimes the extension becomes all blank. It keeps working on the background and even completes according to codex cli history. But becomes impossible to use the extension back again without restarting visual studio code.

What steps can reproduce the bug?

No idea, just working out of the blues it enters that broken state. check the attached screenshot.

What is the expected behavior?

Keep rendering the interface properly.

Additional information

Image

tradingfuturo avatar Jan 21 '26 17:01 tradingfuturo

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #2895
  • #2571

Powered by Codex Action

github-actions[bot] avatar Jan 21 '26 17:01 github-actions[bot]

Thanks for the bug report. When this happens, please do the following:

  1. Restart the extension
  2. Find the session that was running at the time you experienced the bug
  3. Use the /feedback slash command to upload logs and session details
  4. Copy the thread ID and post it to this issue

This will allow us to diagnose the problem based on the session details.

etraut-openai avatar Jan 21 '26 17:01 etraut-openai

I was not using it due to instability (went back to cli), but I switched to trigger the bug. The extension is far better to work than console. Here is the thread ID: 019be379-6935-76d2-abe1-8ab2826026f7

tradingfuturo avatar Jan 22 '26 10:01 tradingfuturo

This appears to occur when some console command is executed by Codex. Just a hint. I have not tracked exactly when it happens, but the information could be of help to track the issue. Maybe some unhandled exception that happens and bubbles up manifesting in the GUI. Under the hood it keeps working and completes the task. Only VS extension gets trashed. What I am doing when it happens is that I check with CLI is the task completed and restart VS Code.

tradingfuturo avatar Jan 22 '26 16:01 tradingfuturo

I am experiencing this as well quite often

WhammyLeaf avatar Feb 10 '26 14:02 WhammyLeaf

I am also experiencing this in June. This is extremely frustrating and basically makes Codex unusable for an undefined time.

tiapac avatar Jun 09 '26 05:06 tiapac

@etraut-openai, is this an example of the same problem?

Image

I don't know where one would enter /feedback, to confirm. Regardless, this probably duplicates what issues/8197 describes.

My Environment

  • Version: 26.5616.30709
    VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=openai.chatgpt
    
  • Version: 1.126.0-insider
    Commit: 226cd5d573076e1d3b260d21409538fbc67cb059
    Date: 2026-06-16T21:33:37-07:00
    Electron: 42.2.0
    ElectronBuildId: 14159160
    Chromium: 148.0.7778.97
    Node.js: 24.15.0
    V8: 14.8.178.14-electron.0
    OS: Linux x64 7.0.12-201.fc44.x86_64
    

0009-0009-1013-986X avatar Jun 18 '26 20:06 0009-0009-1013-986X

I am also experiencing this in July!

Code: Version: 1.126.0 Commit: 7e7950df89d055b5a378379db9ee14290772148a Date: 2026-06-23T01:46:13Z Electron: 42.2.0 ElectronBuildId: 14159160 Chromium: 148.0.7778.97 Node.js: 24.15.0 V8: 14.8.178.14-electron.0 OS: Linux x64 7.0.0-27-generic

Codex: Version 26.623.81905

EDIT: clearing the extension/vs code cache fixed the issue

danailvidev avatar Jul 02 '26 09:07 danailvidev

Same.. strange thing that for me it started appearing recently

yaronelh avatar Jul 02 '26 12:07 yaronelh

same, i've tried to delete ~/.codex/logs_2.sqlite* and relaunch vscode, sometimes it works but soon it's gonna be blank again...

thinszx avatar Jul 03 '26 07:07 thinszx

I was having that issue in linux ubunutu, but maybe applicable for windows.

After reinstalling vscode and all of codex with all cache clearing, it still didn't work, so after an hour of debugging with Fable and failing and then another hour of debugging with codex cli, I managed to fix it, quoting what it outputted:

Codex VS Code Blank Screen

Date: 2026-07-08

Symptom

The OpenAI Codex VS Code extension opened to a blank dark webview with only the OpenAI logo visible. The Codex panel also showed an odd horizontal scrollbar at the bottom. This happened on a fresh VS Code install with only [email protected] installed.

What Was Ruled Out

  • VS Code extension conflicts: code --list-extensions --show-versions showed only [email protected].
  • Codex CLI/auth failure: the bundled CLI at /home/th/.vscode/extensions/openai.chatgpt-26.623.141536-linux-x64/bin/linux-x86_64/codex started successfully outside the VS Code webview and reported idle.
  • Official Codex docs did not document this exact blank-logo webview state.
  • The extension host did start Codex successfully:
    • Activating Codex extension
    • [CodexMcpConnection] Spawning codex app-server
    • [CodexMcpConnection] Initialize received id=1

Root Cause

This was a VS Code/Electron rendering issue, not a Codex account or extension-state issue.

The running VS Code process was using the Wayland/Chromium GPU rendering path. After forcing software rendering, the Codex webview loaded normally. The key observed change after restart was that VS Code launched with flags like:

  • --use-gl=disabled
  • --disable-gpu-compositing

The warning about ~/.codex/.tmp/plugins/plugins/ngs-analysis/.codex-plugin/plugin.json was unrelated. It was only a plugin manifest validation warning and did not prevent the Codex app server from initializing.

Fix

Edit /home/th/.vscode/argv.json and enable hardware acceleration disablement:

{
  "disable-hardware-acceleration": true,
  "ozone-platform": "x11",
  "enable-crash-reporter": true,
  "crash-reporter-id": "321b7146-3f89-42a7-97e2-25f1a4e35f72"
}

Then fully restart VS Code.

The important setting was:

"disable-hardware-acceleration": true

"ozone-platform": "x11" was also added as a Wayland workaround attempt, but the process list still showed --ozone-platform=wayland; the confirmed effective part was GPU/software rendering disablement.

Verification

After restart, the Codex panel loaded instead of staying on the blank logo screen. Fresh logs still showed the extension and app-server initializing, but the webview rendered correctly.

Rollback

If this causes unrelated VS Code rendering or performance problems, revert /home/th/.vscode/argv.json by commenting out or removing:

"disable-hardware-acceleration": true,
"ozone-platform": "x11",

Then restart VS Code.

timohuovinen avatar Jul 08 '26 10:07 timohuovinen

this issue still happens after adding "disable-hardware-acceleration": true,

RolandGao avatar Jul 13 '26 22:07 RolandGao

although clicking the codex icon and clicking "move to" secondary side bar worked for me

RolandGao avatar Jul 13 '26 22:07 RolandGao

Same issue here

Image

howienguyen avatar Jul 15 '26 07:07 howienguyen

Got the issue again, here's some more details for Ubuntu, hopefully it's helpful to someone

Add this to ~/.vscode/argv.json:

{
  "disable-hardware-acceleration": true
}

Add this to VS Code’s settings.json:

{
  "window.restoreWindows": "one"
}

Then fully quit all VS Code windows and reopen a single workspace.

The first setting avoids the Electron/Wayland GPU rendering issue. The second prevents multiple restored windows from initializing Codex concurrently after an extension update.

timohuovinen avatar Jul 15 '26 12:07 timohuovinen

Same issue here. Blank gray screen, and agent keeps running in the background. Windows 11.

AmitTzah avatar Aug 04 '26 19:08 AmitTzah

Same issue in Oct 2026.

Codex Version: 26.1007.21434 VS Code Version:

Version: 1.142.0
Commit: 6d62b1d5dace93a33b3a6d3eca1317bd5e15bcb1
Date: 2026-10-15T03:02:17Z
Electron: 43.7.7
ElectronBuildId: 15553055
Chromium: 150.0.7871.250
Node.js: 24.21.0
V8: 15.0.245.31-electron.0
@github/copilot: 1.0.95-0.unstable.r38345923974.g3754b70
@github/copilot-sdk: 1.0.19.38345923974.g3754b70
OS: Linux x64 6.8.0-147-generic

OS:

Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.5 LTS
Release:	24.04
Codename:	noble

Image

kartikeyporwal avatar Oct 30 '26 11:10 kartikeyporwal

Seems to be filewatch timeout

timohuovinen avatar Nov 16 '26 11:11 timohuovinen

Specs

  • OS: Ubuntu 26.04, Linux x64
  • Hardware: 16 CPU threads, NVMe SSD
  • VS Code: 1.141.0
  • Codex extension: 26.1021.22027 and 26.1111.21308

Cause: the 30 s renderer watchdog in the extension host.

In out/extension.js, initializeWebview starts a 30,000 ms timer that only renderer_ready from the webview stops. On timeout it replaces webview.html with a static "Codex could not start" page and never retries. For me that page shows as a plain grey panel with no text.

The webview loads about 3,000 modules at startup, which does not reliably fit inside the timeout.

Workaround: Developer: Reload Window when the CPU is idle.

P.S. Developer: Reload Webviews does not help, because it reloads the replacement page.

timohuovinen avatar Nov 17 '26 10:11 timohuovinen