i m connecting codex in vs but this error is showing “The extension could not start its user interface” how it solved
Hi, welcome to the community!
This appears to be a known issue with the Codex VS Code extension, and several similar reports have already been filed in the official OpenAI Codex GitHub repository.
If you’re using extension version 26.1021.22027, a confirmed workaround reported by multiple users is to roll back to version 26.1007.21434.
You can try running:
code --install-extension OpenAI.chatgpt@26.1007.21434 --force
Then completely restart VS Code.
Related reports:
This is a temporary workaround, not an official permanent fix.
Could you share your operating system, VS Code version, and Codex extension version? That would help confirm whether you’re experiencing the same issue.
Thank You ! now its working .
It is working now, thanks!
Hi everyone, I found a workaround for the “Codex could not start its user interface” error on Windows.
Creating a temporary VS Code profile and rolling back from 26.1021.22027 to 26.1007.21434 did not resolve it for me. However, launching VS Code with this command worked:
code --disable-gpu
To make this setting persistent:
-
Press
Ctrl + Shift + P. -
Run Preferences: Configure Runtime Arguments.
-
Add this property inside the existing braces in
argv.json, preserving the other settings:
"disable-hardware-acceleration": true
- Save the file, close all VS Code windows, and reopen VS Code normally.
This suggests a graphics acceleration issue in my setup. I confirmed the workaround with Codex 26.1007.21434; I haven’t yet verified it with the latest version.
Hope this helps anyone experiencing the same problem!
Thanks for sharing this workaround and for testing multiple approaches!
It’s interesting that disabling GPU acceleration resolved the issue when switching profiles and rolling back Codex did not. This could be a useful clue for narrowing down the root cause.
Have you had a chance to test the workaround with the latest Codex version? Also, could you share your GPU model and graphics driver version?
These details might help determine whether the issue is related to a specific graphics driver, VS Code/Electron, or the Codex extension itself.
Thanks again for sharing your findings!