CodeTracked since May 19, 2026
Fix coding-agent 429 handling to prevent stream hangs and endless retries
The PR introduces a defensive fetch path for OpenAI responses that enforces a 5-second timeout on non-200 `response.text()` reads and carries `Retry-After` into error text, then updates retry logic so 429 hard-quota cases (usage/balance/quota indicators or long Retry-After >300s) are not auto-retried. It adds regression coverage for hard-limit hangs versus transient recovery behavior.
openai-nodeopenai-completions.tsagent-session.ts429 Too Many Requests