codex icon indicating copy to clipboard operation
codex copied to clipboard

Codex process errored: Codex process is not available

Open ofirgaash1 opened this issue 1 year ago • 7 comments

What version of the VS Code extension are you using?

0.4.38 Last Updated 1 day ago

What subscription do you have?

standard

Which IDE are you using?

VS code

What platform is your computer?

Microsoft Windows NT 10.0.27982.0 x64

What issue are you seeing?

An error has occurred Codex crashed with the following error:

Codex process errored: Codex process is not available Some things to try:

Check your config.toml for invalid settings Check your settings to disable running in WSL if you are seeing compatibility issues Try downloading a different version of the extension Click reload to restart the Codex extension, or visit our documentation for additional help.

Open Config.toml Reload

Image

What steps can reproduce the bug?

I clicked "run in WSL", then this happened, and that's the situation for the last couple of days.

The config file is empty.

What is the expected behavior?

No response

Additional information

Reloading doesn't solve it.

Re-installing the extension doesn't solve it.

Reboot doesnt help either.

ofirgaash1 avatar Nov 10 '25 23:11 ofirgaash1

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

  • #6435
  • #6304
  • #6192
  • #6062

Powered by Codex Action

github-actions[bot] avatar Nov 10 '25 23:11 github-actions[bot]

Thanks for the bug report. It looks like this is already being tracked in #6435. Closing to reduce duplication.

etraut-openai avatar Nov 11 '25 00:11 etraut-openai

Same issue here on Windows 11 Pro. Clean install, no extensions, no WSL, fully updated VSCode.

Codex fails to start its local binary and instantly returns: “Codex process errored: Codex process is not available”.

Worked fine until last update.

Image

guarasoft avatar Nov 16 '25 19:11 guarasoft

It works for me when I enable WSL option but I get this error if I DISABLE wsl.

Okay, found the issue. This stuff seems really poorly tested. I tried to execute the codex.exe manually and got DLL error. I installed the runtimes and it works now. See here https://learn.microsoft.com/en-us/answers/questions/4269238/vcruntime140-dll-and-msvcp140-dll-missing-in-windo

OakerO avatar Nov 20 '25 13:11 OakerO

Try this: Open an old ( or a fresh/new ) conversation. Does that work? If yes: Your previous conversation crashed ( happend with me, it even crashed my windows 11 trying to run some powershell scripts ). This conversation can't be opened anymore for some reason and you have to start a new one. I hope they fix these untested situations in the future. I've just lost so much progress in that conversation.

armilancode avatar Dec 14 '25 09:12 armilancode

Your previous conversation crashed ( happend with me, it even crashed my windows 11 trying to run some powershell scripts ). This conversation can't be opened anymore for some reason and you have to start a new one. I hope they fix these untested situations in the future. I've just lost so much progress in that conversation.

  1. Go into your .codex folder
  2. Go into the sessions folder
  3. Look for that chats rollout .jsonl file (rollout-<year>-<month>-<day>T<hour>-<minute>-<second>-<codex_session_hash>.jsonl)
  4. Remove some lines at the end of the file but it should still be valid json.
  • like delete such a whole block or some more blocks (depending on if it's working after only one block delete or not):
{"timestamp":"<redacted>","type":"turn_context","payload":{"cwd":"<redacted>","approval_policy":"on-request","sandbox_policy":{"type":"workspace-write","writable_roots":"<redacted>"},"model":"gpt-5.1","effort":"high","summary":"auto"}}
  1. Restart your codex instance if still one open (restart VS Code for example)
  2. Continue with your conversation, just a few messages back in.

Cr4nkSt4r avatar Dec 16 '25 14:12 Cr4nkSt4r

I was able to fix this issue by downgrading the Codex VS Code extension to version 26.609.30741.

After installing that version and restarting VS Code, Codex worked again without the Codex process is not available / state db discrepancy error.

Nguyenhieploi avatar Jun 22 '26 01:06 Nguyenhieploi