codex icon indicating copy to clipboard operation
codex copied to clipboard

Codex can't run commands longer than 1 second

Open srogatch opened this issue 1 year ago • 4 comments

Codex used to run tests for me and check their results. But not anymore: now it says there's the CLI harness that aborts long-running commands, longer than 1 second. Please, confirm if there's indeed such a timeout in Codex CLI.

srogatch avatar Nov 20 '25 03:11 srogatch

Which model do you use and could you try whether this also is a problem with the new background terminal feature which you can enable in /experimental?

tibo-openai avatar Dec 31 '25 17:12 tibo-openai

It's not reproducible for me in Codex v0.77.0 . The tool waits for like half-an-hour long commands without issues.

srogatch avatar Dec 31 '25 18:12 srogatch

I wanted codex to wait for 15 minutes using a sleep command to gain back control and continue working. I tried with and without the background terminal and it cannot wait more than 10 seconds.

I'm using 5.2 codex model on medium effort. Using codex 0.77 as well

sharno avatar Dec 31 '25 19:12 sharno

Found the issue, seems that tool calls by default timeout after 10 seconds. The model has to call the tool with a timeout_ms parameter to be able to let the command finish

Image

melsharnou-chwy avatar Jan 01 '26 05:01 melsharnou-chwy