Codex IDE extension fails to load in VS Code Remote-SSH, while Codex CLI works correctly
What version of the IDE extension are you using?
26.602.71036
What subscription do you have?
ChatGPT Plus
Which IDE are you using?
VS Code
What platform is your computer?
Linux 6.17.0-22-generic x86_64 x86_64
What issue are you seeing?
Hello,
I am experiencing a problem with the Codex IDE extension in Visual Studio Code when using Remote-SSH. I connect to a remote Linux server through VS Code and open my remote workspace there. The Codex CLI works correctly in the remote terminal: I can log in with my ChatGPT account, check the login status, and run simple Codex commands successfully. However, the Codex IDE extension inside VS Code does not load properly. The sidebar/chat interface either stays blank or does not open as expected.
I have already tried reinstalling the Codex extension, clearing Codex configuration files, resetting the remote VS Code server, clearing local VS Code caches, reconnecting through Remote-SSH, and logging in again. The Codex CLI continues to work correctly, but the VS Code Codex IDE extension still fails to load. Because of this, it seems that the issue may be related to the Codex IDE extension, VS Code Remote-SSH, the VS Code extension host, or a compatibility issue with the current VS Code/Node.js environment.
Could someone from the support or engineering team help me understand what is causing this problem and how to fix it? I would like to use Codex directly inside the VS Code IDE with access to my remote workspace, but currently only the terminal version works.
<img width="1921" height="1047" alt="Image" src="https://github.com/user-attachments/assets/d46f367d-e58b-4c4c-8122-6f932f541526" />
What steps can reproduce the bug?
Steps to reproduce:
- Open Visual Studio Code on a local Ubuntu Linux machine.
- Connect to a remote Linux server using VS Code Remote-SSH.
Example with PII redacted:
``bash``
ssh -p 22 <user>@<remote-host>
- Open a remote workspace folder in VS Code.
Example:
``text``
/data/users/<user>
- Install the OpenAI Codex / ChatGPT extension in the remote SSH environment, so that it is enabled on the remote host.
Installed remote extension
- In the remote VS Code terminal, verify that the Codex CLI works:
```bash
cd /data/users/<user>
codex --version
codex login status
codex exec -s read-only --skip-git-repo-check "Responda exatamente: ok"
```
Expected CLI output:
``text``
codex-cli 0.137.0-alpha.4
Logged in using ChatGPT
ok
- Try to open the Codex IDE sidebar/chat in VS Code using the Codex icon or the command palette.
Example:
``text``
Codex: Open Sidebar
- The Codex sidebar does not load correctly. It either remains blank or does not open as expected.
What is the expected behavior?
The Codex IDE sidebar should open normally in VS Code when connected through Remote-SSH.
Since the Codex CLI works correctly in the same remote workspace and is already logged in, I expected the VS Code Codex extension to also load correctly and allow me to use Codex inside the IDE with access to the remote files.
Additional information
_No response_
11 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Did you find a durable fix?
I am still experiencing this issue.
I also am struggling with this issue; the Codex tab or standalone VSCode-integrated window do not work at all for me.
It's kind of ridiculous that OpenAI's product has this issue. I'm just gonna use Codex CLI until then I guess...
I am currently experiencing same issue on a runpod remote machine.
It's been roughly over a month since this issue has been reported with no fix yet. pretty sad.
Very very strange to me why this would be unfixed for this long... All the fixes I've seen had to do with people aewkwardly deleting logs... I just dont' want to deal with that. Thinking about cancelling over this.
YOU HEAR THAT SAM!? CANCELLING!!!!
Content of the Codex windows works on local Windows 11. But once connected to a remote environment using ssh, the Codex window remains blank. Just re-tested. A fundamental limitation blocking me from getting Codex subscription. VSCode remote ssh is a typical setup which works with Claude Code without any issues. Needs to be fixed urgently.
Today, I can use Codex in IDE extension on VS Code Remote-SSH, you guys can check there is any extension update.
<img width="503" height="1079" alt="Image" src="https://github.com/user-attachments/assets/263e942d-f879-403a-a423-7df967cf7a4d" />
Worked for me, and then didn't work for me again.