CODEX immediately closes several seconds after starting

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

What version of the Codex App are you using (From “About Codex” dialog)?

latest

What subscription do you have?

plus

What platform is your computer?

Windows 11

What issue are you seeing?

CODEX immediately closes several seconds after starting. just started today (3/30/26). No indication in logs why it closed. Was developing an app for several hours last night.

What steps can reproduce the bug?

Start CODEX, several seconds later it closes. No errors, nothing in log indicating why.

What is the expected behavior?

It doesn't close.

Additional information

Further debug. I have been working on a project/thread in PlayGround for a week. If I move this project/thread folder out of the PlayGround folder then codex seems to start fine. This project has a lot of code in it, but why would codex close because this project is in the playground folder??

Further debug (2). If I move the .git to .git-bak or similar. Codex starts. This seems to be choking on the .git repository somehow. My git diff --cached doesn't show anythign so this is different from other issues people saw.

(3): when I ran " git ls-files --others --exclude-standard | head -200", it showed quite a few files, including some .wav files. I added those to the .git repository and now codex runs fine. Seems like we a codex git bug where it gets confused on uncommitted files of certain types. Please fix.

(4) the problem is now back. I had to do the "git ls-files" to fix the items not committed. This was just a few .cs text files. I committed them and now codex works again. PLEASE FIX the CODEX .git repository code.

View original on GitHub ↗

7 Comments

github-actions[bot] contributor · 3 months ago

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

  • #16240
  • #14461
  • #14700
  • #16169

Powered by Codex Action

retrocoderz · 3 months ago

I have wsl enabled, and wsl distros are installed (and working).

etraut-openai contributor · 3 months ago

We haven't released a new version in the last few days, so this must be related to some configuration change on your system.

retrocoderz · 3 months ago
We haven't released a new version in the last few days, so this must be related to some configuration change on your system.

Thanks, yes I found codex and see it hasn't updated since Mar 27th. I was working on an app yesterday for most of the day. Codex was 100% stable. The only major config change I made was to give codex full access. Maybe codex munged its own file.

Sebjugate · 3 months ago

I had this issue after I committed some files to git on a project I was working on. Fortunately, I didn't have any history in git, so I just deleted my .git folder and Codex started working again.

Edit: I see some others mentioning large repos. In my case, it was not a particularly large project. Only about 30 files.

retrocoderz · 3 months ago
I had this issue after I committed some files to git on a project I was working on. Fortunately, I didn't have any history in git, so I just deleted my .git folder and Codex started working again. Edit: I see some others mentioning large repos. In my case, it was not a particularly large project. Only about 30 files.

Same, my repo is fairly small. Maybe 60 files or so. I found ignoring libraries, and checking in changed files helps codex not crash.

Joeyzest · 3 months ago
I had this issue after I committed some files to git on a project I was working on. Fortunately, I didn't have any history in git, so I just deleted my .git folder and Codex started working again. Edit: I see some others mentioning large repos. In my case, it was not a particularly large project. Only about 30 files.

That makes sense, the only thing what I did was “git” before codex crashing…