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
VSCode + Remote SSH + Codex Extension hang at starting #14620
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)
At this point, Codex is effectively unusable for me across multiple environments.
VS Code + Remote SSH
When using the Codex extension over Remote SSH, the extension frequently freezes completely.
I've tried reinstalling, clearing configuration, reconnecting, and various troubleshooting steps, but the behavior persists.
Once it locks up, the extension becomes non-responsive and I have to restart components repeatedly.
Cursor + Remote SSH
After pressing Enter, prompts often take anywhere from 45 seconds to 2 minutes before execution even begins.
After a single successful prompt, the extension typically becomes unusable again.
My current workaround is deleting the .codex folder, closing Cursor, reopening it, and logging in again before I can submit another prompt.
Obviously, this is not a viable workflow.
Local Windows Usage
The same stability problems exist locally.
On a very high-end desktop, Codex regularly locks up every few prompts.
I frequently observe behavior that appears consistent with excessive I/O wait or the extension becoming deadlocked.
The UI becomes unresponsive and requires restarting to recover.
This isn't an isolated environment issue—I'm seeing similar failures across:
VS Code
Cursor
Remote SSH sessions
Local Windows installations
At the moment, reliability is poor enough that the extension cannot be used for day-to-day development work.
Could the team provide:
An update on whether these issues are actively being investigated?
Any known workarounds beyond repeatedly deleting local state and re-authenticating?
Guidance on collecting logs that would actually help identify the root cause?
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.
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
VS Code: 1.126.0
Remote host: Ubuntu 24.04, Alibaba Cloud Singapore region
IPC was also not the root cause. /tmp/codex-ipc/ipc-1001.sock existed, had the correct owner, and was listened to by the VS Code remote extension host:
ls -la /tmp/codex-ipc
ss -xlpn | grep -E 'codex-ipc|ipc-1001'
There were warnings like this:
codex_core_plugins::manifest: ignoring interface.defaultPrompt[0]: prompt must be at most 128 characters
path=/home/<user>/.codex/.tmp/plugins/plugins/ngs-analysis/.codex-plugin/plugin.json
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 Tools while the Codex sidebar was stuck.
The console showed repeated VS Code webview resource loader listener leak warnings:
ERR potential listener LEAK detected
at xle.doReadFileStream
at xle.readFileStream
at s4o (resourceLoading.ts)
at B3e.loadResource (webviewElement.ts)
The listener count kept increasing:
potential listener LEAK detected, having 175 listeners already
potential listener LEAK detected, having 263 listeners already
potential listener LEAK detected, having 351 listeners already
potential listener LEAK detected, having 439 listeners already
potential listener LEAK detected, having 527 listeners already
The stack was consistently in VS Code's webview local resource loading path:
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:
In the affected VS Code window, run:
Developer: Reload Webviews
Then run:
Developer: Reload Window
Then reset VS Code view layout state:
View: Reset View Locations
Then run again:
Developer: Reload Window
Before opening the sidebar, verify the editor-panel path:
Codex: New Codex Agent
This should open a normal editor panel and reach the input box.
Then open the sidebar again:
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:
Moving Codex from secondary sidebar to activity bar by patching extension package.json
Re-authing Codex CLI
Practical workaround
If the sidebar is stuck but the editor panel works, use:
Codex: New Codex Agent
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:
Codex CLI: OK
codex app-server: OK
IPC socket: OK
Codex editor panel webview: OK
Codex sidebar webview: stuck
VS Code webview resource loader: listener leak / stale view state
The effective fix was to reset the VS Code webview and view-layout state:
Activity
Tianyang-Zhang commentedon Mar 13, 2026
I also tried to install older version of codex extension. Its the same.
github-actions commentedon Mar 13, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Tianyang-Zhang commentedon Mar 13, 2026
Not the same issue as above.
zukeru commentedon Jun 22, 2026
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.
zukeru commentedon Jun 22, 2026
initiald0824 commentedon Jun 24, 2026
the same issue
AilvenLIU commentedon Jun 29, 2026
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.Eventually VS Code shows:
VS Code itself is still usable after clicking
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:
In the affected VS Code window, run:
Then run:
Then reset VS Code view layout state:
Then run again:
Before opening the sidebar, verify the editor-panel path:
This should open a normal editor panel and reach the input box.
Then open the sidebar again:
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:
AilvenLIU commentedon Jun 29, 2026
You may try the fix path I just committed.