IDE Extension in GitHub codespace crashes the codespace
Open 💬 4 comments Opened Jun 12, 2026 by robswc
What version of the IDE extension are you using?
26.5609.30741
What subscription do you have?
Plus
Which IDE are you using?
VS Code
What platform is your computer?
_No response_
What issue are you seeing?
After installing the Codex Extension (26.5609.30741), and opening the Codex sidebar, the codespace freezes/crashes and requires a restart.
What steps can reproduce the bug?
Create a new default codespace
Install Codex
Open Codex
What is the expected behavior?
Not crashing
Additional information
_No response_
4 Comments
Was just facing this issue and then it was fixed. What I did:
Open the codespace
If the agent tab chosen is Codex, quickly switch to the default chat tab
Wait for some time
Switch to Codex
It'll hang for some time. I then opened a new tab in the browser to search for the issue and found this thread, when I went back to the codespace tab, found Codex has opened
I opened issue #28280, because I did not find this issue initially. I copy my bug report here to add some screenshots and the log output. The workaround of @eladdad did not work for me; the panel never recovered and started to show the login dialog.
What version of the IDE extension are you using?
26.5609.30741
What subscription do you have?
ChatGPT Plus
Which IDE are you using?
VS Code Insiders
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
When I open the Codex panel, the panel only shows an icon but does not load the content of the panel:
<img width="462" height="749" alt="Empty Codex panel" src="https://github.com/user-attachments/assets/a05f21e1-f87e-4fdd-a4a9-7bf6d2607cbe" />
After a while, the following message appears:
<img width="450" height="149" alt="Warning dialog with the title 'The window is not responding' and the description 'You can reopen or close the window or keep waiting'." src="https://github.com/user-attachments/assets/0aad383e-b542-488e-afda-1560a6f7b7ae" />
The output of the extensions gives the following log:
What steps can reproduce the bug?
Based on the feedback of other bugs, I tried installing older versions as well as the release version. Furthermore, I renamed the ".codex" folder in the "Users" folder, so that it gets recreated. Both approaches did not fix the issue for me.
What is the expected behavior?
Codex panel loads correctly allowing me to login
Additional information
_No response_
I can confirm the same issue with code-server and the Codex IDE extension.
My environment:
openai.chatgpt-26.616.32156-linux-x64/config/extensions/openai.chatgpt-26.616.32156-linux-x64I applied the workaround described in this issue and it fixed the freeze.
The concrete fixes were:
out/extension.jsto avoid directnavigatorchecks in the Node extension host context.The problematic checks looked like:
``
js
``typeof navigator<"u"
Replacing them with:
``
js
``false
prevented the
PendingMigrationError: navigator is now a global in nodejsissue.The generated webview entry file under:
``
text
``webview/assets/index-*.js
contained a very large Vite preload list using
__vite__mapDeps([...]), which caused the Codex sidebar to eagerly preload hundreds of JS/CSS chunks when the sidebar iframe mounted.Reducing that preload list so that only CSS chunks are preloaded fixed the freeze.
modulepreloadlinks from:``
text
``webview/index.html
After applying these changes and restarting the code-server container, the Codex sidebar loads normally in desktop Chromium browsers and the code-server UI no longer freezes.
So the root cause appears to be two separate compatibility issues:
navigatorin a Node extension host environment under code-serverThe second issue, the excessive webview preload list, seems to be the actual cause of the hard browser freeze in my setup.
A proper fix would probably be to make the Codex webview preload behavior more code-server-friendly, e.g. avoid eagerly preloading all JS chunks and only preload critical CSS/assets.
code --disable-gpualso works.