VSCode + Remote SSH + Codex Extension hang at starting
What version of the IDE extension are you using?
26.311.21342
What subscription do you have?
ChatGPT Plus
Which IDE are you using?
VS Code
What platform is your computer?
local MacOS, remote Ubuntu 22.04.4 LTS
What issue are you seeing?
<img width="1512" height="950" alt="Image" src="https://github.com/user-attachments/assets/92bdb2f9-3b7d-4166-a38a-51dfa57f368c" />
As showing in the right hand side of the picture, the Codex box hang there forever. It was working few days ago, but now doesn't work anymore and always hanging.
Remote codex CLI login fine, works fine. Just the IDE extension not working. Notice that the remote home dir is NFS, there was issues but I worked around it by symlink the ~/.codex to a local path.
The remote-ssh extension doesn't have any update in 3 month, and all other remote-ssh features works fine so I don't think the probblem is on remote-ssh side.
What steps can reproduce the bug?
Install remote-ssh extention on VSCode. SSH to a remote host, install codex extension on remote. Then codex hang there forever.
What is the expected behavior?
Codex extension should either show the login page, or directly authenticated(if already login on remote)
Additional information
Let me know if any more info is needed.
8 Comments
I also tried to install older version of codex extension. Its the same.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Not the same issue as above.
Has there been any progress on this issue?
At this point, Codex is effectively unusable for me across multiple environments.
VS Code + Remote SSH
Cursor + Remote SSH
.codexfolder, closing Cursor, reopening it, and logging in again before I can submit another prompt.Local Windows Usage
This isn't an isolated environment issue—I'm seeing similar failures across:
At the moment, reliability is poor enough that the extension cannot be used for day-to-day development work.
Could the team provide:
I don't mean this disrespectfully, but it's surprising to see such severe stability issues persist across multiple platforms and environments. I'd be happy to help gather diagnostics if there's a path toward identifying what's causing these freezes.
<img width="1248" height="503" alt="Image" src="https://github.com/user-attachments/assets/0f6eb636-7262-4b44-904f-604d6e716eaf" />5 minutes later still hasn't done anything.
the same issue
Diagnosis and workaround for Codex VS Code sidebar hang in Remote-SSH / local VS Code
I hit a similar issue where the Codex VS Code extension sidebar did not load, while the Codex CLI worked normally from both the VS Code integrated terminal and a normal SSH/iTerm session.
Environment
1.126.0openai.chatgpt-26.5623.61825-linux-x64Codex: Open Codex Sidebaropens the Codex sidebar, but the UI never finishes loading.``
text
``The window is not responding
You can reopen or close the window or keep waiting
Keep Waiting.codexCLI works normally in terminal.Codex: New Codex Agentmay still work, while the sidebar remains stuck.Important observations
The Codex extension backend was not the root cause. The app-server started normally:
The
codex app-serverprocess was alive:IPC was also not the root cause.
/tmp/codex-ipc/ipc-1001.sockexisted, had the correct owner, and was listened to by the VS Code remote extension host:There were warnings like this:
However, this did not appear to be the direct cause. Removing plugin cache / catalog did not fix the sidebar issue.
Claude Code was also not the root cause. I disabled Claude Code, killed stale Claude processes, restarted the extension host, and the Codex sidebar issue still reproduced.
Actual failure pattern
The decisive signal came from
Developer: Open Webview Developer Toolswhile the Codex sidebar was stuck.The console showed repeated VS Code webview resource loader listener leak warnings:
The listener count kept increasing:
The stack was consistently in VS Code's webview local resource loading path:
The repeated resources were Codex extension webview chunks such as:
This suggests the issue is not Codex CLI, auth, remote networking, IPC, or
codex app-server. It is more likely a corrupted/stale VS Code webview/sidebar view state or webview resource loader state for the Codex sidebar.Working recovery sequence
The recovery that worked was:
``
text
``Developer: Reload Webviews
``
text
``Developer: Reload Window
``
text
``View: Reset View Locations
``
text
``Developer: Reload Window
``
text
``Codex: New Codex Agent
This should open a normal editor panel and reach the input box.
``
text
``Codex: Open Codex Sidebar
After this sequence, the Codex sidebar recovered.
The same sequence also fixed the local VS Code sidebar after the Remote-SSH instance had been fixed. This indicates the local and remote VS Code Codex states are independent:
What did not fix it
The following did not solve the issue by itself:
codex app-server/tmp/codex-ipc~/.codex/.tmp/plugins~/.codex/cache/remote_plugin_catalogpackage.jsonPractical workaround
If the sidebar is stuck but the editor panel works, use:
as a temporary workaround.
Avoid repeatedly opening the broken sidebar, because it can trigger repeated webview local resource loads and eventually VS Code's renderer watchdog.
Summary
The failure mode appears to be:
The effective fix was to reset the VS Code webview and view-layout state:
You may try the fix path I just committed.