Codex cannot be opened in VScode

Open 💬 6 comments Opened Apr 10, 2026 by j1018y
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the IDE extension are you using?

1.115.0

What subscription do you have?

Plus

Which IDE are you using?

VS Code

What platform is your computer?

Linux x86_64

What issue are you seeing?

The codex extension is stuck in this scene and cannot be opened for the remote server im working on, while it can work correctly when i work in local workspace.
The error is shown below.

<img width="558" height="1315" alt="Image" src="https://github.com/user-attachments/assets/40de0c83-742b-42dd-8073-42d876e9748a" />

<img width="1557" height="331" alt="Image" src="https://github.com/user-attachments/assets/f44c726d-0132-4768-ae05-7d006857531e" />

What steps can reproduce the bug?

Open the remote VS code server with my Linux and VS code environment version.

What is the expected behavior?

It should show up the conversations I've previously started.

Additional information

_No response_

View original on GitHub ↗

6 Comments

github-actions[bot] contributor · 3 months ago

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

  • #15994
  • #16341
  • #16830

Powered by Codex Action

j1018y · 3 months ago

still not solved w relevant issue solution

JuanmaDiazRivas · 2 months ago

Same problem here

zhang-glitch · 2 months ago

Ctrl+Shift+POutput: Show Output Channels → 选择 Codex 相关通道,查看日志信息,复制给AI

如果是Codex process is not available这个错误,需要安装https://aka.ms/vs/17/release/vc_redist.x64.exe,即可使用

MNIKIEMA · 1 month ago

+1

Oxados · 10 days ago

I've hit the same / a similar issue.

Depending on the Linux environment, the desktop entry may call /usr/share/code/code directly, whose zygote processes could inherit RLIMIT_NOFILE=1024. The Codex webview preloads enough resources concurrently to hit that limit and stall during startup.

Starting through /usr/bin/code may raise the zygotes' soft RLIMIT_NOFILE limit to the hard limit (524288 on that system), which their renderer children inherit.

Environment

| Component | Version |
| --- | --- |
| Platform | Raspberry Pi 5 (aarch64) |
| OS | Debian-based, kernel 6.12.34+rpt-rpi-2712 |
| Desktop / Session | XFCE, X11 over XRDP |
| xfce4 | 4.20.1 |
| xfce4-session | 4.20.4-1 |
| xfce4-panel | 4.20.7-2 |
| xfwm4 | 4.20.0-1 |
| xfdesktop4 | 4.20.2-2 |
| xrdp | 0.10.6-1 |
| xorgxrdp | 1:0.10.5-2 |
| VS Code | 1.128.0 |
| Codex extension | 26.707.31428-linux-arm64 |

Trace

BEFORE

  PID   TIME COMMAND
  754   0:00 /usr/sbin/xrdp-sesman --nodaemon
  996   0:00  \_ xrdp-sesexec
 1049  15:02      \_ /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
 1063   1:25      \_ xfce4-session
 1124   0:00      |   \_ /usr/bin/ssh-agent x-session-manager
 1169   1:41      |   \_ xfwm4
 1210   3:32      |   \_ xfce4-panel
 1248   0:02      |   |   \_ /usr/lib/aarch64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/aarch64-linux-gnu/xfce4/panel/plugins/libwhiskermenu.so
53651   0:09      |   |   |   \_ /usr/share/code/code
53660   0:00      |   |   |       \_ /usr/share/code/code --type=zygote --no-zygote-sandbox
53663   0:00      |   |   |       \_ /usr/share/code/code --type=zygote
53666   0:00      |   |   |       |   \_ /usr/share/code/code --type=zygote
53877   0:01      |   |   |       |   \_ /home/*redacted*/.vscode/extensions/openai.chatgpt-26.707.31428-linux-arm64/bin/linux-aarch64/codex
$ for pid in 754 996 1049 1063 1124 1169 1210 1248 53651 53660 53663 53666 53877; do printf '%s ' "$pid"; rg 'open files' /proc/$pid/limits; done

754 9:Max open files            1024                 524288               files     
996 9:Max open files            1024                 524288               files     
1049 9:Max open files            1024                 524288               files     
1063 9:Max open files            1024                 524288               files     
1124 9:Max open files            1024                 524288               files     
1169 9:Max open files            1024                 524288               files        
1210 9:Max open files            1024                 524288               files     
1248 9:Max open files            1024                 524288               files     
53651 9:Max open files            524288               524288               files     
53660 9:Max open files            1024                 524288               files     
53663 9:Max open files            1024                 524288               files     
53666 9:Max open files            1024                 524288               files     
53877 9:Max open files            524288               524288               files

---

AFTER

  PID   TIME COMMAND
  754   0:00 /usr/sbin/xrdp-sesman --nodaemon
  996   0:00  \_ xrdp-sesexec
 1049  18:36      \_ /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
 1063   1:26      \_ xfce4-session
 1124   0:00      |   \_ /usr/bin/ssh-agent x-session-manager
 1169   1:46      |   \_ xfwm4
 1203   0:02      |   \_ xfsettingsd
 1210   3:36      |   \_ xfce4-panel
...
67356   0:07 /usr/share/code/code
67359   0:00  \_ /usr/share/code/code --type=zygote --no-zygote-sandbox
67360   0:00  \_ /usr/share/code/code --type=zygote
67362   0:00  |   \_ /usr/share/code/code --type=zygote
67541   0:05  |   \_ /home/*redacted*/.vscode/extensions/openai.chatgpt-26.707.31428-linux-arm64/bin/linux-aarch64/codex
$ for pid in 754 996 1049 1063 1124 1169 1210 67356 67359 67360 67362 67541; do printf '%s ' "$pid"; rg 'open files' /proc/$pid/limits; done

754 9:Max open files            1024                 524288               files     
996 9:Max open files            1024                 524288               files     
1049 9:Max open files            1024                 524288               files     
1063 9:Max open files            1024                 524288               files     
1124 9:Max open files            1024                 524288               files     
1169 9:Max open files            1024                 524288               files     
1210 9:Max open files            1024                 524288               files     
67356 9:Max open files            524288               524288               files     
67359 9:Max open files            524288               524288               files     
67360 9:Max open files            524288               524288               files     
67362 9:Max open files            524288               524288               files     
67541 9:Max open files            524288               524288               files

Workaround

$ mkdir -p ~/.local/share/applications; cp /usr/share/applications/code.desktop ~/.local/share/applications/code.desktop
::: ~/.local/share/applications/code.desktop
...
ln  5: -Exec=/usr/share/code/code %F
ln  5: +Exec=/usr/bin/code %F
...
ln 27: -Exec=/usr/share/code/code --new-window %F
ln 27: +Exec=/usr/bin/code --new-window %F
...
:::
$ command -v update-desktop-database >/dev/null && update-desktop-database ~/.local/share/applications || true; command -v desktop-file-validate >/dev/null && desktop-file-validate ~/.local/share/applications/code.desktop || true