Codex CLI gets stuck running CMDs

Resolved 💬 1 comment Opened Sep 19, 2025 by ecancel Closed Nov 26, 2025

What version of Codex is running?

0.39.0

Which model were you using?

gpt-5-codex-high

What platform is your computer?

macOS Tahoe 26.0

What steps can reproduce the bug?

It happens all the time with npm when it runs commands randomly it just get's stuck running a command. At the moment I had it address some changes to drizzle orm to migrate and it got stuck using bunx, which I was hoping it would not given that my issues where with npm.

What is the expected behavior?

To stop running the command after at least 5 minutes of waiting for a simple drizzle migration command or simple commands in general if there is an error. Given the capabilities I would expect to be able to stop address the issue and then attempt it again.

What do you see instead?

It gets stuck and to test I explained the fix which was in the drizzle.config but it just kept running it immediately even after I told it to first fix it. I could've just do it myself but I wanted to see if it was a bug and apparently it is. It does not seem to have a proper timer when running commands and can just get stuck for over 30mins when the command does not produce anything. Not that big of a deal but it is insanely annoying when trying to let it run agentic tasks.

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗