You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Found an issue with the latest update about IDE extension: IPC socket dir /tmp/codex-ipc is not user-namespaced — EACCES on shared multi-user hosts (HPC login nodes) #27650
The thing is that I cannot open my codex extension on my Cursor while connected with our university's cluster.
On a shared multi-user Linux host (university HPC login node, RHEL 9), the Codex IDE extension fails to start: the panel never connects, and the extension log spams once per second:
[error] [IpcRouterManager] Server error errorCode=EACCES
errorMessage="listen EACCES: permission denied /tmp/codex-ipc/ipc-.sock"
at cg.startRouterIfNeeded (.../openai.chatgpt-26.602.71036-linux-x64/out/extension.js)
at async pl.connect (...)
I then checked with Claude code, here is the summary:
Root cause
IpcRouterManager binds its socket under a fixed shared path os.tmpdir()/codex-ipc/ (extension.js: path.join(os.tmpdir(), "codex-ipc"), created with default 0755 perms). On a multi-user machine, whichever user runs Codex first owns /tmp/codex-ipc; every other user then gets EACCES forever and the extension is unusable for them. On our cluster the directory was created by another user weeks ago, so the extension is permanently broken for everyone else on that node.
This regressed in the extension update 26.601.20914 → 26.602.71036 (codex-cli 0.137.0-alpha.4): 26.601 had no IpcRouterManager and worked fine in the same environment (VS Code/Cursor Remote-SSH into the cluster).
Expected behavior
The IPC directory should be per-user, e.g. $XDG_RUNTIME_DIR/codex-ipc, os.tmpdir()/codex-ipc-$UID with 0700 perms, or under $CODEX_HOME. Also, a fatal bind failure should surface as a user-visible error instead of a silent 1/s retry loop.
Workaround
Setting TMPDIR to a per-user directory (e.g. /tmp/$USER) before the remote server starts fixes it, since the path is derived from os.tmpdir().
I checked the open-source side for the matching IPC path. One detail worth calling out: the current TUI client already namespaces the socket filename by UID, but it still uses a shared parent directory.
So the Rust/TUI side avoids direct filename collision with ipc-$uid.sock, but the parent remains os.tmpdir()/codex-ipc / /tmp/codex-ipc. On a shared host, if that parent directory was created by another user with ordinary 0755 permissions, other users still cannot create their own per-UID socket inside it. That matches the reported EACCES even if socket names are unique.
The fix should therefore user-namespace the directory, not only the socket filename. Safer options would be something like:
$XDG_RUNTIME_DIR/codex-ipc/ when available;
otherwise /tmp/codex-ipc-$UID/ with 0700 permissions;
or another per-user runtime dir under Codex home if appropriate for Remote-SSH.
It would also be useful for both sides of the IPC contract to use the same path resolver so the extension/server and CLI/TUI cannot drift.
Suggested regression coverage:
Unit-test the Unix resolver to ensure it never returns a socket path under a shared non-user-namespaced parent like /tmp/codex-ipc/ipc-*.
Test the fallback when XDG_RUNTIME_DIR is unset.
If the extension has a parallel JS resolver, add the same test there so the extension and Rust client agree.
Surface a user-visible startup error when binding the IPC socket fails with EACCES, rather than retrying silently once per second.
This is high impact for shared Linux/Remote-SSH/HPC environments because one stale directory owned by another user can make the extension unusable for every later user on the node.
Thanks for tracing the shared IPC directory and checking the TUI-side filename. Closing as a duplicate of #17765: user-specific socket names do not help if the parent /tmp/codex-ipc is owned by another user. That tracker covers the same EACCES startup failure and should include the Cursor/Remote-SSH case.
Activity
github-actions commentedon Jun 11, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
wgu9 commentedon Jun 15, 2026
I checked the open-source side for the matching IPC path. One detail worth calling out: the current TUI client already namespaces the socket filename by UID, but it still uses a shared parent directory.
Relevant code:
codex-rs/tui/src/ide_context/ipc.rsdefault_ipc_socket_path()on Unix returns:So the Rust/TUI side avoids direct filename collision with
ipc-$uid.sock, but the parent remainsos.tmpdir()/codex-ipc//tmp/codex-ipc. On a shared host, if that parent directory was created by another user with ordinary0755permissions, other users still cannot create their own per-UID socket inside it. That matches the reportedEACCESeven if socket names are unique.The fix should therefore user-namespace the directory, not only the socket filename. Safer options would be something like:
$XDG_RUNTIME_DIR/codex-ipc/when available;/tmp/codex-ipc-$UID/with0700permissions;It would also be useful for both sides of the IPC contract to use the same path resolver so the extension/server and CLI/TUI cannot drift.
Suggested regression coverage:
/tmp/codex-ipc/ipc-*.XDG_RUNTIME_DIRis unset.EACCES, rather than retrying silently once per second.This is high impact for shared Linux/Remote-SSH/HPC environments because one stale directory owned by another user can make the extension unusable for every later user on the node.
etraut-openai commentedon Oct 13, 2026
(response from codex)
Thanks for tracing the shared IPC directory and checking the TUI-side filename. Closing as a duplicate of #17765: user-specific socket names do not help if the parent /tmp/codex-ipc is owned by another user. That tracker covers the same EACCES startup failure and should include the Cursor/Remote-SSH case.