codex icon indicating copy to clipboard operation
codex copied to clipboard

UI doesn't start in VS Code extension 26.51021.22027

Open AK25789 opened this issue 1 month ago • 90 comments

What version of the IDE extension are you using?

26.51021.22027

What subscription do you have?

Pro

Which IDE are you using?

VS Code

What platform is your computer?

Microsoft Windows NT 10.0.26300.0 x64

What issue are you seeing?

After upgrading the extension to v26.51021.22027 - Codex doesn't start, with this notification:

Codex could not start The extension could not start its user interface.

OS: Windows 11 Pro, 26H2, build 26300.9711

VS Code Version: 1.143.1 (user setup) Commit: e646868227c3e3a9e3f24277c8c7220be42c0be7 Date: 2026-10-22T17:23:22Z Electron: 43.7.7 ElectronBuildId: 15743441 Chromium: 150.0.7871.250 Node.js: 24.21.0 V8: 15.0.245.31-electron.0 @github/copilot: 1.0.100-1 @github/copilot-sdk: 1.0.23-preview.5 OS: Windows_NT x64 10.0.26300

What steps can reproduce the bug?

Upgrade to this version and restart extensions

What is the expected behavior?

No response

Additional information

Rolling back to 26.51007.21434 fixes the problem

AK25789 avatar Oct 24 '26 04:10 AK25789

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

  • #56617

Powered by Codex Action

github-actions[bot] avatar Oct 24 '26 04:10 github-actions[bot]

I ran into the same problem in vscode. The codex extension broke again lol.

young03600 avatar Oct 24 '26 06:10 young03600

Facing the same issue after updating to the latest version

RahulChowdary6 avatar Oct 24 '26 07:10 RahulChowdary6

I can reproduce the same startup failure on Windows 10.

Environment

  • VS Code: 1.143.1
  • Commit: e646868227c3e3a9e3f24277c8c7220be42c0be7
  • OS: Windows 10 Pro x64, build 19045
  • Installed extension: openai.chatgpt 26.51021.22027 (pre-release)

Relevant logs

[info] Activating Codex extension
[info] [CodexMcpConnection] Spawning codex app-server
[info] [CodexMcpConnection] Initialize received id=1

[error] [CodexWebviewProvider] Webview renderer did not become ready
elapsedMs=30008
extensionVersion=26.1021.22027
reason=renderer_ready_timeout
receivedWebviewMessage=false
role=sidebar
stage=renderer
timeoutMs=30000

Note that the installed extension is 26.51021.22027, while the timeout log reports extensionVersion=26.1021.22027. Both values are included as observed.

App-server initialization is logged before the timeout, but the host reports receiving no webview messages before the 30-second deadline.

After the timeout, the extension log continues recording IPC broadcasts such as query-cache-invalidate and thread-queued-followups-changed. This appears to be a webview startup failure; I have not established the underlying cause.

The problem persists after a full Windows restart and also reproduces with a separate VS Code user-data directory and other third-party extensions disabled.

The rollback to 26.51007.21434 reported above has not yet been tested on this machine.

peloscvcd avatar Oct 24 '26 08:10 peloscvcd

26.51021.22027 it's working

pedoc avatar Oct 24 '26 09:10 pedoc

@young03600 @RahulChowdary6 @peloscvcd I encountered a similar Codex startup failure on Windows and was able to get it working again in my environment. If you are still affected and would like troubleshooting assistance, you can contact me at [email protected]. Please include your OS, VS Code version and Codex extension version, but do not send passwords, API keys or authentication tokens. I am an independent user, not OpenAI support.

bydartanyans-max avatar Oct 24 '26 10:10 bydartanyans-max

I'm also experiencing this startup failure after updating the Codex VS Code extension to 26.1021.22027. Codex reports that it could not start its user interface, and the extension still does not open after several attempts.

Environment:

  • OS: Windows 11
  • Codex extension: 26.1021.22027
  • VS Code: 1.143.1 (x64)
  • VS Code commit: e646868227c3e3a9e3f24277c8c7220be42c0be7

Expected behavior: The Codex extension opens normally after the update. Actual behavior: The extension fails to open.

Seif2005 avatar Oct 24 '26 11:10 Seif2005

I downgraded to 26.1007.21434 and it works back again. Spent a lot of time tracking this problem in VS Code, since ChatGPT decided that it is Copilot extension conflict or something. But all I needed to do was to downgrade.

Anyways, the latest version definitely bugged.

Do not install 26.1021.22027.

baev-os avatar Oct 24 '26 11:10 baev-os

Same issue here on two Windows 11 machines (VS Code 1.143.1 user setup, x64).

  • The extension auto-updated to 26.1021.22027 on 24 Oct and the sidebar never loaded: [CodexWebviewProvider] Webview renderer did not become ready elapsedMs=30002 extensionVersion=26.1021.22027 reason=renderer_ready_timeout receivedWebviewMessage=false role=sidebar stage=renderer timeoutMs=30000
  • Rolling back to 26.1007.21434 (Marketplace VSIX, win32-x64) fixes it on both machines: [startup][renderer] app routes mounted after 13109ms
  • As of 24 Oct ~12:30 UTC the Marketplace still lists 26.51021.22027 as the latest version, so VS Code auto-update reinstalls the broken build. Workaround until a fix ships: roll back, then disable Auto Update for this extension only.

Tip for others: keep troubleshooting and logs in this thread rather than sending them to anyone by private email.

melenialemonia-bot avatar Oct 24 '26 12:10 melenialemonia-bot

Additional Windows / VS Code reproduction on October 24, 2026:

  • Installed official Codex extension openai.chatgpt, version 26.51021.22027 (pre-release).
  • In one VS Code window/workspace, the Codex panel failed with: Codex could not start — The extension could not start its user interface.
  • At the same time, another independently opened VS Code workspace still had a functioning Codex conversation.
  • Subsequently, the Codex instance in the second workspace also stopped working.
  • The Extensions UI indicated that extension updates required a restart; the user initiated a rollback to 26.51007.21434. The result of that rollback is not yet confirmed.
  • Other VS Code functionality remained visible, and Claude Code was available in the IDE.

This progression suggests that the failure may not be tied to a single repository's contents. Could the team investigate the startup/webview renderer and extension-host lifecycle across multiple VS Code windows? No diagnostic logs have yet been collected on this machine, so I cannot confirm a renderer_ready_timeout here.

arabflex500 avatar Oct 24 '26 12:10 arabflex500

Happens to me too. Rolling back to the older version works

TDimbean avatar Oct 24 '26 12:10 TDimbean

Same issue

Codex could not start its user interface.

Installation Identifier openai.chatgpt Version 26.1021.22027 Last Updated 8 minutes ago Size 1.54GB

abdulwahab56 avatar Oct 24 '26 13:10 abdulwahab56

happen to me too :

Codex could not start The extension could not start its user interface.

achmadhadianto avatar Oct 24 '26 14:10 achmadhadianto

Happened to me too on Debian 13 (x64) with VS Code v 1.43.. Had to downgrade from 1.43. to 1.42.** for it to work: sudo apt install code=1.142.0-1792035033

....

Preconfiguring packages ...

dpkg: warning: downgrading code (1.143.0-1792533444) to (1.142.0-1792035033)

syedasif11 avatar Oct 24 '26 17:10 syedasif11

Same issue on windows 11 on the latest version of VS code.

Rijan-Ja-Bhattarai avatar Oct 25 '26 15:10 Rijan-Ja-Bhattarai

Startup packaging summary

  • Previous prerelease 26.51007.21434: initial static graph of approximately 6 JavaScript files / 19.9 MB.
  • Current prerelease 26.51021.22027 / stable 26.1021.22027: new root preload list of 3,203 resources: 3,045 JS + 158 CSS / approximately 73.1 MB.

These measure the initial static graph and the new preload list, respectively. Controlled earlier → current → earlier tests loaded 11/11 → 0/11 → 11/11 burst windows; the exact low-level browser bottleneck remains unresolved.

Adding a controlled Linux x64 reproduction of this release regression, including an earlier → current → earlier comparison and startup packaging measurements.

Environment and symptom

  • Local Linux x64, VS Code 1.143.1, commit e646868227c3e3a9e3f24277c8c7220be42c0be7.
  • Affected: prerelease 26.51021.22027 and stable 26.1021.22027.
  • Working in isolated tests: previous prerelease 26.51007.21434.
  • Production workflow: rapidly open 7–11 distinct Codex conversations into VS Code auxiliary windows. A single window can load; concurrent starts fail with “Codex could not start / The extension could not start its user interface.”
  • Failing logs consistently show reason=renderer_ready_timeout receivedWebviewMessage=false role=panel stage=renderer timeoutMs=30000. This is a failure before the first webview message, rather than evidence of a model/backend task failure.

Controlled version comparison

Each run used the same installed VS Code, fresh unauthenticated state, a scratch workspace, only the copied Codex extension plus a test controller, and bubblewrap isolation with private HOME/profile/PID/IPC/network namespaces. No production conversations or credentials were copied and external network access was blocked. Software rendering/headless Ozone was used consistently. These conditions reproduce the production timeout signature, but do not model every production dependency.

The controller first requires a successful singleton, then opens 11 distinct conversation-editor URIs through vscode.openWith / chatgpt.conversationEditor, moving each editor to a new auxiliary window. Small identical extension-host probes record timer start, first message and renderer readiness; frontend code is unmodified in the release comparison.

Run Singleton ready 11-window burst Timeouts
Previous prerelease 26.51007.21434 1.527 s 11/11 ready, 0.993–3.107 s per view 0
Current stable 26.1021.22027 6.253 s 0/11 ready; zero first messages 11
Previous prerelease again, fresh state 1.562 s 11/11 ready, 1.052–2.937 s 0
Untouched current frontend, final fresh repeat 7.120 s 0/11 ready; zero first messages 11

The final current burst accepted all requests in 1.129 s and timed out at 29.999–30.001 s. All controllers completed without errors; owned diagnostic instances exited normally.

Concrete frontend startup delta

Static-import traversal and bootstrap inspection found:

  • Previous release: initial static graph of approximately 6 JavaScript files / 19.9 MB.
  • Current release: bootstrap dynamically imports app-runtime-ca74aa759873.js, whose static graph contains approximately 3,041 JavaScript files / 71 MB.
  • The new root preload list contains 3,203 resources: 3,045 JS + 158 CSS, approximately 73.1 MB.
  • The renderer handshake remains behind this startup work and the deadline remains 30 seconds.

A diagnostic-only static rebundle of the current runtime, preserving six initial shared modules externally and retaining the same 158 CSS preloads, made all 11 windows ready in 3.343–5.217 s. An unbundled control with the identical CSS-only preload policy also passed, but took 18.070–29.788 s; six windows finished within 212–936 ms of the deadline. Restoring the untouched current frontend and original JS preloads reproduced 11/11 timeouts afterward.

Limits: this demonstrates a release-dependent regression and substantial startup graph/loading cost. It does not isolate Chromium request dispatch versus module linking, compilation or scheduling. Earlier Set-based link-search and CSS-only preload experiments also failed in some runs, so neither link-search complexity nor a CSS-only workaround is a complete explanation. The rebundle is not a production fix: later lazy-module identity and full app behavior were not validated.

Why switching to stable did not help here

Full package comparison found the newer prerelease and stable have byte-identical unmodified extension-host bundles and all 44 backend files. After normalizing generated asset filenames, frontend differences reduce to six build-channel literals across five assets. The stable rollback therefore retained the affected startup implementation; it did not restore the previous prerelease.

Local logs also explain the delayed onset: the update installed on October 24 in the morning, while old renderer package paths persisted into the evening. An extension-host restart around 18:41 UK BST introduced the new renderer build; matching timeouts are retained later that evening.

Related: #56617 reports the same working prerelease versus failing stable; #43080 has an older multiple-panel timeout signature. A common cause across all reports is not established.

Please investigate the new startup module/preload graph under concurrent webview initialization and add release coverage for rapidly opening multiple distinct panels/auxiliary windows. No private workspace paths, chat contents, account data or credentials are included here.

interconnectedMe avatar Oct 25 '26 16:10 interconnectedMe

I'm experiencing the same Codex UI startup failure on Windows. The issue has persisted for over 24 hours, including after downgrading the extension and resetting the VS Code webview script cache.

Environment

  • OS: Windows 11 Pro, x64 (build number not yet collected)
  • VS Code: 1.143.1
  • VS Code commit: e646868227c3e3a9e3f24277c8c7220be42c0be7
  • Extension: openai.chatgpt
  • Original extension version: 26.1021.22027
  • Installed version after rollback: 26.1007.21434
  • Subscription: ChatGPT Pro

Troubleshooting performed

  • Reproduced the error: "Codex could not start. The extension could not start its user interface."
  • Downgraded using code --install-extension [email protected] --force.
  • Installation completed successfully.
  • Verified the installed version through code --list-extensions --show-versions, which returned [email protected].
  • Backed up the VS Code ScriptCache directory by renaming it. The CacheStorage directory was not present.
  • The Codex UI continues to fail.

Relevant extension logs — October 25, 2026

2026-10-25 14:45:19.255 [info] [CodexMcpConnection] Spawning codex app-server
2026-10-25 14:45:19.255 [info] [CodexMcpConnection] Initialize received id=1
2026-10-25 14:45:50.413 [error] [CodexWebviewProvider] Webview renderer did not become ready elapsedMs=30005 extensionVersion=26.1021.22027 reason=renderer_ready_timeout receivedWebviewMessage=false role=sidebar stage=renderer timeoutMs=30000

Potentially useful finding

There is a discrepancy between the version reported by the VS Code CLI (26.1007.21434) and the version identified in the startup error log (26.1021.22027).

I have not yet verified whether the extension host was completely restarted after the downgrade, so this may reflect a previously loaded extension process rather than a failure of the older build.

The logs show app-server initialization followed by a 30-second webview renderer timeout with no initial webview message.

Is there a recommended way to verify which extension build the active extension host is loading, or to identify whether stale renderer resources are being retained after a rollback?

DMike9 avatar Oct 25 '26 18:10 DMike9

The readiness-timeout callback replaces only the affected webview HTML with the static startup-failure page. Sidebar and editor webviews have independent initialization state. A failed sidebar can therefore coexist with a working editor conversation.

It's a race somewhere during UI startup. I started having this issue today after update to vscode 1.143.1, codex version 26.51021.22027

Workaround:

  • Right click on codex tab
  • select Move to > - Primary Side Bar or Panel
Image

Codex UI will re-initialize itself and operate Okay after that. You can move it back then and it remains operational.

top-5 avatar Oct 26 '26 06:10 top-5

The readiness-timeout callback replaces only the affected webview HTML with the static startup-failure page. Sidebar and editor webviews have independent initialization state. A failed sidebar can therefore coexist with a working editor conversation.

It's a race somewhere during UI startup. I started having this issue today after update to vscode 1.143.1, codex version 26.51021.22027

Workaround:

  • Right click on codex tab
  • select Move to > - Primary Side Bar or Panel
Image Codex UI will re-initialize itself and operate Okay after that. You can move it back then and it remains operational.

THANK YOU! That was MOST HELPFUL!

ScPhilip avatar Oct 26 '26 08:10 ScPhilip

For info, on my setup (W11 up to date version of VS code and Codex) this bug occurs for stable and pre-release, and the "solution" given by @top-5 indeed solved the issue

Henri-ColibrITD avatar Oct 26 '26 10:10 Henri-ColibrITD