Codex Windows app started crashing consistently

Codex app started crashing during agent reasoning/chain of thought 4 times in a row with the restart, update codex, view config.toml as option in the popup that accompanies the crash. restarting doesn’t fix. it happens as soon as the agent runs a command.

I am having the same issue. I was able to use Codex fine yesterday, but this afternoon it started crashing and causing extreme lag when running on my computer. Even with no active sessions, it is making my computer unusable.

@stevensweden4
@djahn

Welcome to the forum!

You are welcome to discuss Codex issues here. However, the official place to report and track them is the OpenAI Codex GitHub issue tracker.

I asked ChatGPT to look for the closest related issue, and it identified:

which might be the cause; personally I find the issue a nice jumping off point to look for others.

If that issue matches your problem, consider adding a :+1: reaction on the GitHub issue itself—not only on this forum topic. Reactions on GitHub can help the developers gauge the number of affected users.

If it does not describe the same problem, search the existing Codex issues for a closer match. If you cannot find one, open a new issue and include as much relevant detail as possible.

it’s not my cpu is completely fine, i have no ui freeze, and no kernelbase crashes

UPDATE: The cause is a Codex-on-Windows command-console bug—not your Python code and not a corrupted task.

codex.exe repeatedly exits with 3221225786, which is Windows 0xC000013A (STATUS_CONTROL_C_EXIT). In other words, the Codex app-server receives a Ctrl+C console-control event while pytest is running.

Ouch!

I did a manual quick search of the Codex issues using is:issue state:open 3221225786 windows and quickly found

Same advice as before, enter a new issue if you think your issue is new or different and upvote the issues using :+1: reaction.


Also consider

  • using the Codex /feedback command in a Codex prompt
  • starting codex with the doctor option when starting Codex from the command line

this can’t possibly be the fix: I’ve applied the fix in [config.toml (line 14)](/C:/Users/omar_/.codex/config.toml:14):

[features]
unified_exec = false

Your config had explicitly enabled the PTY-backed execution backend. Official OpenAI documentation says unified_exec is disabled by default on Windows—which strongly confirms that overriding it was the problem.