Skip to content

Codex process errored: Codex process is not available #6479

Closed as duplicate

Description

@ofirgaash1

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.

Activity

  1. added
    extension
    on Nov 10, 2025
  2. added
    bug
    windows-os
    on Nov 10, 2025
  3. etraut-openai commented on Nov 11, 2025

    @etraut-openai
    Contributor

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

  4. guarasoft commented on Nov 16, 2025

    @guarasoft

    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
  5. OakerO commented on Nov 20, 2025

    @OakerO

    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

  6. armilancode commented on Dec 14, 2025

    @armilancode

    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.

  7. Cr4nkSt4r commented on Dec 16, 2025

    @Cr4nkSt4r

    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.
  8. Nguyenhieploi commented on Jun 22, 2026

    @Nguyenhieploi

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugextensionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions