-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Add blocking commands back optionally #13972
Description
What variant of Codex are you using?
CLI
What feature would you like to see?
Originally all Codex CLI interactions were blocking, until the optional experimental background tasks feature was added. Since then, this has been made the default, and AFAIK the option to disable has been removed.
This is proving extremely difficult for many of my projects. I have quite a few builds and test suites which take a long time to run, think 10 minutes upwards of a few hours. This never used to be a problem, but these days, the agents constantly poll them. Firstly, this wastes tokens, but secondly, I find they nearly always get impatient and end up self sabotaging, trying stupid tricks to speed up the process, stopping and restarting them. I just need them to be blocked until the process finishes. Its thousands of source files compiling, it just needs to wait.
It would be nice to reintroduce the option to disable background tasks. Or even better, add a filter list of blocking commands, so I could make known long executions like cmake, ctest, waiting for CI through MCPs, block, but preserve the current background task behaviour for other tasks.
Especially with 5.4, it is painful watching Codex constantly fidgeting and compromising long running commands.
Additional information
No response