Codex VS Code extension hangs on loading screen in Remote-SSH, while Codex CLI works
What version of the IDE extension are you using?
26.707.41301
What subscription do you have?
ChatGPT Business
Which IDE are you using?
Visual Studio Code with Remote-SSH
What platform is your computer?
"$([Environment]::OSVersion | ForEach-Object VersionString) $(if ([Environment]::Is64BitOperatingSystem) { "x64" } else { "x86" })" Remote host: Ubuntu 22.04 x86_64, shared multi-user Linux server
What issue are you seeing?
The Codex IDE extension does not become usable when VS Code is connected to a Linux server through Remote-SSH.
The Codex CLI works correctly in the remote terminal, but the IDE sidebar remains stuck on the Codex loading logo, or partially renders with a disabled prompt box. Codex Settings also hangs.
The remote Codex CLI is installed and authenticated:
codex --version
codex-cli 0.144.1
codex login status
Logged in using ChatGPT
The Codex executable is available to the VS Code remote extension host through PATH.
The extension backend appears to start successfully:
Activating Codex extension
[CodexMcpConnection] Spawning codex app-server
[IpcRouter] I am the router
[CodexMcpConnection] Initialize received id=1
However, the sidebar remains stuck and cannot accept input.
Earlier, the extension failed with:
listen EACCES: permission denied /tmp/codex-ipc/ipc-<UID>.sock
This is a shared multi-user server, and /tmp/codex-ipc had been created by another user with permissions that did not allow my account to create a socket.
I configured user-private temporary directories through TMPDIR, TMP, and TEMP and restarted the VS Code Remote server. The EACCES error disappeared, but the Codex sidebar still hangs.
A later log also showed:
Request failed
method=fs/readFile
message="No such file or directory (os error 2)"
Other non-fatal-looking warnings include:
WARNING: failed to clean up stale arg0 temp dirs: Resource busy (os error 16)
Codex could not find bubblewrap on PATH.
Codex will use the bundled bubblewrap in the meantime.
All usernames, hostnames, home directories, workspace paths, UIDs, and internal group names have been redacted.
What steps can reproduce the bug?
- Use VS Code on a Windows computer.
- Connect to a shared Ubuntu 22.04 server using the VS Code Remote-SSH extension.
- Install the official Codex IDE extension on the remote SSH host.
- Install and authenticate the Codex CLI on the remote server.
- Confirm that the CLI works:
- codex --version
- codex login status
- codex
- Confirm that the remote VS Code extension host PATH contains the Codex executable directory.
- Open the Codex sidebar in the Remote-SSH VS Code window.
- Observe that the sidebar remains on the loading logo, or renders a disabled prompt box.
- Open Codex Settings and observe that it also hangs.
The issue persists after:
- reinstalling the extension on the remote host
- switching between stable and pre-release extension versions
- installing an older extension version
- reloading the VS Code window
- restarting the extension host
- killing and restarting the VS Code Remote server
- confirming CLI authentication
- confirming the remote extension host PATH
- confirming that ~/.codex/config.toml is valid
- configuring private TMPDIR, TMP, and TEMP directories
What is the expected behavior?
The Codex sidebar should initialize fully inside the VS Code Remote-SSH workspace and allow me to enter prompts, interact with the remote repository, and open Codex Settings.
The IDE extension should work when the Codex CLI is installed, available on the remote extension-host PATH, and authenticated.
Additional information
The CLI works correctly on the same remote server and in the same workspace.
The configuration file is minimal and valid:
model = "gpt-5.6-luna"
model_reasoning_effort = "low"
[projects."<REMOTE_WORKSPACE_PATH>"]
trust_level = "trusted"
The remote extension host PATH contains:
<USER_HOME>/.local/bin
The Codex executable resolves correctly through a symlink to the standalone Codex installation.
The app server reaches:
[CodexMcpConnection] Initialize received id=1
but the IDE UI remains unusable.
This appears specific to the IDE extension under Remote-SSH on a shared multi-user Linux server.
I can provide:
- a screenshot of the stuck sidebar
- complete redacted Codex Output logs
- exact VS Code version
- exact extension version
- redacted output of ls -ld /tmp/codex-ipc
<img width="202" height="511" alt="Image" src="https://github.com/user-attachments/assets/bb1eac8a-7022-410c-a5a7-7945e2d571fb" />
11 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
@dramarazad-debug hi, we had a similar situation arise at our org too. quick context: this is on CentOS, multi-user shared box, several people using codex/vscode-server on the same machine. don't know what your output for the extension was but in our case the codex extension output was:
this reflected that the folder was created by a different user than the one we were logged in as, which didn't give us the write access the extension needed to set up its IPC. confirmed this with
ls -la /tmp/codex-ipc:so the folder and socket were both owned by a different user (
xk4j9zq), not us.to fix this we first tried allowing everyone to write to the folder by changing
/tmp/codex-ipcto1777 root:root, but this only fixes the immediate EACCES for the user, the underlying issue is still there since the old socket/folder is still owned by whoever created it first.then we moved forward, and got this in the output, which matches your given output.
what actually worked was killing off
codex/vscode-serverprocesses for our own user, since there was a stale process from my user.but yeah the underlying issue still persists imo, feels like these perms shouldn't be broken like this in the first place, or there should at least be a proper workaround/cleanup instead of having to chmod
/tmpor kill processes manually. anyone know if there's a real fix planned for this?Same issue here.
I'm experiencing the same issue with the latest Codex extension.
Environment
aarch64)Behavior
Additional observations
If there's anything else I can provide (logs, diagnostics, or additional environment information), I'd be happy to help.
---
Same issue here on Remote SSH on Linux. After some time, I get an error from VSCode: "The window is not responding". I have tried switching to an older version of the Codex extension, without success.
The problem got solved by launching VS code with the --disable-gpu.
I hope openAI or VScode will resolve this issue soon.
NOT solved.
I've been having this issue on and off for several weeks - likely an IPC socket race because I have multiple VS Code windows pointing to the same server.
But now it's unusable entirely.
I encountered the same Codex VS Code Remote-SSH issue on a shared multi-user Linux HPC cluster. The Codex backend initialized successfully, but the IDE sidebar remained stuck loading and unusable.
The underlying problem in my case was the shared
/tmp/codex-ipcdirectory. Running:showed that the directory had been created by another user and was not writable by my account:
I fixed the issue by creating a private temporary directory in my home directory:
I then added the following environment variables to
~/.bashrc:After sourcing the updated configuration:
I restarted the VS Code Remote server:
So the working fix was to redirect
TMPDIR,TMP, andTEMPaway from the shared system/tmpdirectory to a private user-owned temporary director.Same issue here.... Very often stuck on load.
Same here
set
ulimit -n 10000https://github.com/openai/codex/issues/32530#issuecomment-5012908167
This worked consistently for me
I think I solved the problem. When I started from the GNOME it wasn't working, but it was working from the terminal. My finding was; *.desktop files redirects to /usr/share/code/code, but 'which code' outputs /usr/bin/code. So, I created .desktop files for my user to also persist this fix between updates.
My OS is Ubuntu 24.04 LTS. I used codex to solve the problem and summarize it:
VSCODE_CODEX_FIX.md