Stop hook fed Codex CLI help text as prompts every turn, timing out all tests

ChemicalExcellent463 · reddit · 2026-12-07

A post-mortem of an agent orchestration bug: Codex tests kept timing out because an older CLI lacked messaging commands, so a command that should print the agent's address printed help text with exit code 0. The Stop hook accepted it as an address, then fetch also returned help text, feeding it back as the next prompt every turn.

The fix: accept only a one-line address and only continue when fetch output contains a line starting with "Card: ". The author notes this is just a format check for known junk and asks how others detect agents stuck on non-work input before runs time out.

Original post →

More from coding & agent

coding & agent channel →