Skip to content

CODEX immediately closes several seconds after starting #16269

Open

Description

@retrocoderz

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.

Activity

  1. added
    app
    on Mar 30, 2026
  2. added
    bug
    windows-os
    on Mar 30, 2026
  3. retrocoderz commented on Mar 30, 2026

    @retrocoderz
    Author

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

  4. etraut-openai commented on Mar 30, 2026

    @etraut-openai
    Contributor

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

  5. retrocoderz commented on Mar 30, 2026

    @retrocoderz
    Author

    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.

  6. Sebjugate commented on Apr 5, 2026

    @Sebjugate

    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.

  7. retrocoderz commented on Apr 5, 2026

    @retrocoderz
    Author

    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.

  8. Joeyzest commented on Apr 8, 2026

    @Joeyzest

    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…

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

    appbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions