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.
More from coding & agent
- Developer: Codex Harness Buggier Than Claude Code, Randomly Logs Me Out — emax · 2026-12-07
- Building 30+ Shareable Miniature Snow Globe Cities with Claude — dreamwieber · 2026-12-07
- Latent Space's Case for AI Systems Engineering: Four Bounds for Diagnosing Agent Failures — Latent Space · 2026-12-07
- Open-source D&D 5e CRPG lets humans and AI agents play together as a research environment — max_paperclips · 2026-12-07
- Lawyer: Harvey's legal features are irreplaceable by frontier platforms now — matt_slotnick · 2026-12-07
- Mainframe demoed: a design canvas layered on top of your real codebase — vinvan · 2026-12-07