Claude Code: Stream idle timeout / no chunks. Fix the watchdog, then retry
Stream idle timeout means no chunks reached Claude Code’s watchdog, so update Claude Code, set the timeout env vars the error names, then retry. Short answer: 5 steps. 1) Match the exact message before changing settings; 2) Retry once, then check status if every request fails; 3) Update Claude Code past the idle-timeout fixes; 4) Tune first-byte and request waits for proxies that buffer streams; 5) If the turn already printed partial output, continue—don’t resubmit tools.
Last updated: · This page is the decision checklist; the tools list for “Fix Claude Code Stream idle timeout / no chunks” is a separate URL.
How do I fix the idle watchdog, then retry, when Claude Code hits a stream idle timeout?
Match the exact message before changing settings
Confirm you see `API Error: Stream idle timeout - no chunks received`. Claude Code’s error index maps that line to Streaming idle watchdogs (and, behind a Claude apps gateway, long-thinking proxy timeouts). Docs: https://code.claude.com/docs/en/errors
Retry once, then check status if every request fails
Send the message again (for a long prompt, `try again` is enough). If every model call fails the same way, check https://status.claude.com/ for Anthropic API incidents before assuming your laptop is the cause.
Update Claude Code past the idle-timeout fixes
On versions before v2.1.328, slow networks/proxies often need a raised `API_TIMEOUT_MS`; if timeouts continue, update to v2.1.328 or later and set any variable the next timeout message names. If you can’t update, set `API_FORCE_IDLE_TIMEOUT=0` as the documented older-version workaround.
Tune first-byte and request waits for proxies that buffer streams
If a proxy or gateway holds responses until they complete, raise `API_TIMEOUT_MS` (default request wait is 10 minutes / 600000 ms for headers on each attempt). For unanswered streaming starts, also set `CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS` (v2.1.242+) so the first attempt waits long enough—see No response from API on the same error page.
If the turn already printed partial output, continue—don’t resubmit tools
Related mid-stream cuts (`The response stopped arriving`, connection lost mid-response) keep completed blocks and may say the response is incomplete. In an interactive session reply `continue` so Claude resumes from the last completed block instead of re-running the same tool calls.
Which tools are best to fix Claude Code Stream idle timeout / no chunks?
Claude Code error reference
Maps Stream idle timeout - no chunks received to streaming idle watchdogs and documents timeout env vars.
Claude status
Rule out Anthropic API incidents before changing local timeout settings.
Claude Code overview
Install/update path so you’re on a build with the current timeout behavior.
Anthropic API errors
Underlying HTTP/API error shapes when the idle cut maps to a provider failure.
Open: 1 spot per week
One labeled sponsor for this topic each week; this week's spot is open. See open weeks →
All tools for “Fix Claude Code Stream idle timeout / no chunks” →
Related fixes
- Stop a Cursor agent loopHow to fix a Cursor agent loop (same edit, or work after Stop)Fix →
- Claude Code vs Codex vs Cursor ~$20 plansClaude Code vs Codex vs Cursor $20 plan limits: how to pick without burning the weekFix →
- Scan a vibe-coded app for leaked API keysCheck a vibe-coded app for leaked API keys before you share itFix →
- Add an MCP server to Claude Code, Cursor, or CodexHow to add an MCP server to Claude Code, Cursor, or CodexFix →
See also AI tools launched today on the daily board.
NewAIToolsToday Daily
Top 3 AI launches, one model or news item that matters, and one simple fix. A 5-minute read, every weekday.