Skip to content

Codex IDE extension fails to load in VS Code Remote-SSH, while Codex CLI works correctly #27597

Open

Description

@lucastdeoliveira1-bit

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.

Image

What steps can reproduce the bug?

Steps to reproduce:

  1. Open Visual Studio Code on a local Ubuntu Linux machine.

  2. Connect to a remote Linux server using VS Code Remote-SSH.

    Example with PII redacted:

    ssh -p 22 <user>@<remote-host>
  3. Open a remote workspace folder in VS Code.

    Example:

    /data/users/<user>
    
  4. Install the OpenAI Codex / ChatGPT extension in the remote SSH environment, so that it is enabled on the remote host.

    Installed remote extension

  5. In the remote VS Code terminal, verify that the Codex CLI works:

    cd /data/users/<user>
    
    codex --version
    codex login status
    codex exec -s read-only --skip-git-repo-check "Responda exatamente: ok"

    Expected CLI output:

    codex-cli 0.137.0-alpha.4
    Logged in using ChatGPT
    ok
    
  6. Try to open the Codex IDE sidebar/chat in VS Code using the Codex icon or the command palette.

    Example:

    Codex: Open Sidebar
    
  7. 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

Activity

  1. added
    extension
    on Jun 11, 2026
  2. added
    bug
    on Jun 11, 2026
  3. github-actions commented on Jun 11, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. YLMiami commented on Jul 11, 2026

    @YLMiami

    Did you find a durable fix?

  5. hungtrieu07 commented on Jul 13, 2026

    @hungtrieu07

    Did you find a durable fix?

    I am still experiencing this issue.

  6. Velythyl commented on Jul 13, 2026

    @Velythyl

    I also am struggling with this issue; the Codex tab or standalone VSCode-integrated window do not work at all for me.

  7. YLMiami commented on Jul 13, 2026

    @YLMiami

    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...

  8. Adefioye commented on Jul 17, 2026

    @Adefioye

    I am currently experiencing same issue on a runpod remote machine.

  9. Adefioye commented on Jul 17, 2026

    @Adefioye

    It's been roughly over a month since this issue has been reported with no fix yet. pretty sad.

  10. YLMiami commented on Jul 17, 2026

    @YLMiami

    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!!!!

  11. radeksulc commented on Jul 19, 2026

    @radeksulc

    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.

  12. hungtrieu07 commented on Jul 20, 2026

    @hungtrieu07

    Today, I can use Codex in IDE extension on VS Code Remote-SSH, you guys can check there is any extension update.

    Image
  13. YLMiami commented on Jul 20, 2026

    @YLMiami

    Today, I can use Codex in IDE extension on VS Code Remote-SSH, you guys can check there is any extension update.

    Image

    Worked for me, and then didn't work for me again.

  14. Adefioye commented on Jul 21, 2026

    @Adefioye

    Cool. Now working for me too.

  15. Velythyl commented on Jul 21, 2026

    @Velythyl

    Any updates on this issue? I can intermittently access Codex, but then sometimes it just completely fails to work. It makes me unable to work at all, some days, and I have to rely on the codex CLI, which can be quite annoying to use depending on the type of task I am working on that day.

  16. engmubarak48 commented on Jul 21, 2026

    @engmubarak48

    Any updates on this issue? I can intermittently access Codex, but then sometimes it just completely fails to work. It makes me unable to work at all, some days, and I have to rely on the codex CLI, which can be quite annoying to use depending on the type of task I am working on that day.

    same issue

  17. Kristiyan-Ivanov commented on Jul 22, 2026

    @Kristiyan-Ivanov

    So I gathered information from several sources and managed to fix the issue on my side, at least for now.

    What I did:

    1. I removed Copilot and Codex extensions and closed VS Code.
    2. Logged in through another terminal (you need to kill the Codex CLI process if you already have it installed here).
    3. Deleted .copilot, .claude, and .copilot directories (you can also rename them to something like .codex_old if you want, as there are memories and history stored there).
    4. Installed Codex CLI manually.
    5. Then logged in to Codex through the remote VS Code terminal.
    6. Installed the Codex extension and the chat loaded.

    Hope this helps.

  18. YLMiami commented on Jul 23, 2026

    @YLMiami

    So I gathered information from several sources and managed to fix the issue on my side, at least for now.

    What I did:

    1. I removed Copilot and Codex extensions and closed VS Code.
    2. Logged in through another terminal (you need to kill the Codex CLI process if you already have it installed here).
    3. Deleted .copilot, .claude, and .copilot directories (you can also rename them to something like .codex_old if you want, as there are memories and history stored there).
    4. Installed Codex CLI manually.
    5. Then logged in to Codex through the remote VS Code terminal.
    6. Installed the Codex extension and the chat loaded.

    Hope this helps.

    Thanks for compiling the fix. I have gathered pretty much the same thing but it's obviously a pretty awkward workaround on something that should really be working...

  19. askforarun commented on Sep 7, 2026

    @askforarun

    Hi I have been unable to acess codex from my remote desktop

  20. engmubarak48 commented on Sep 7, 2026

    @engmubarak48

    Hi I have been unable to acess codex from my remote desktop

    I fixed this sometime ago via another agent.. i think what was then done was updating the setting.json or some other json file that i dont remember. Also recently ensuring having latest version seems to work, so maybe update and refresh.

  21. didix16 commented on Oct 11, 2026

    @didix16

    26. Hi I have been unable to acess codex from my remote desktop

    Me neither. Is there any workarround? I've tried everything that is said on this thread but nothing works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugextensionremote

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions