A missing one-line config fix cost $2.79 and left AI coding agents silently timing out
A developer running an AI-assisted coding loop discovered that background agent tasks were being silently terminated after a default 600-second timeout, with no warning surfaced to the parent process. The issue caused two separate failed runs across the same project, wasting a combined $3.60 and completing zero tickets. The root cause was a missing environment variable, CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS, which must be set to zero to disable the default ten-minute ceiling designed for one-off queries rather than extended coding loops. A one-line fix resolved the problem, and the next run successfully completed ten tickets the same morning. However, the author notes that of eleven loop scripts across their projects, only one now carries the fix, highlighting how even trivial patches fail to propagate across repositories without a deliberate process.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in