[Bug Solved & Solution] VS Code codex extension blank sidebar in Remote SSH on version 26.707.91948
What version of the IDE extension are you using?
26.707.91948
What subscription do you have?
Pro Max
Which IDE are you using?
VS Code
What platform is your computer?
_No response_
What issue are you seeing?
After updating the VS Code Codex extension to openai.chatgpt 26.707.91948, the Codex sidebar shows a blank panel when used in a VS Code Remote SSH window.
What steps can reproduce the bug?
- Open a project using VS Code Remote SSH.
- Install or update the Codex VS Code extension to 26.707.91948 on the remote SSH side.
- Open the Codex sidebar.
- Observe that the sidebar is blank.
What is the expected behavior?
_No response_
Additional information
Solution
I reproduced this with VS Code Remote-SSH and openai.chatgpt 26.707.91948.
The failure is caused by the bundled Zod v4 environment check accessing navigator inside the Node.js remote extension host:
typeof navigator !== "undefined"
This triggers VS Code’s PendingMigrationError and can leave the Codex webview blank or unresponsive.
Immediate workaround
Create ~/.vscode-server/data/Machine/settings.json on the remote host:
~~~json
{
"extensions.supportNodeGlobalNavigator": true
}
~~~
Then run Developer: Reload Window. Setting this only in the local VS Code user settings did not fix the remote extension host.
Required source fix
The extension/dependency should detect Node before accessing navigator:
~~~ts
const isNode =
typeof process === "object" && process?.versions?.node;
if (
!isNode &&
typeof navigator !== "undefined" &&
navigator?.userAgent?.includes("Cloudflare")
) {
return false;
}
~~~
After applying the remote setting, the unmodified official extension loaded normally and the Codex webview mounted successfully.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗