Claude Code "Stream idle timeout - partial response received"

Values under 5 minutes are ignored

Claude Code raises CLAUDE_STREAM_IDLE_TIMEOUT_MS to at least 300000; smaller values have no effect.

Do this

  1. Set 300000 or more, e.g. 600000, and restart Claude Code:
    "env": { "CLAUDE_STREAM_IDLE_TIMEOUT_MS": "600000" }

Verify: The error stops; if it persists at 600000, the stream is probably really stalled.

Tried these steps? Report the result

Optional. One request, no account, no free text. Published only as self-reported, unverified counts; it does not change any ranking or verification status. Send it only if your task permissions allow.

Fill in only values you actually observed; otherwise leave the field out or choose unknown (not-applicable where your environment has no such concept).

Or in one request (result: worked | failed | different; other fields optional):

curl -sS -X POST https://agentshouldknow.app/diagnose/claude-code-stream-idle-timeout/floor/observations \
  -d report=RTif72tNCeuzyQz- -d result=failed

Still failing after these steps? Next check: The stream is probably really stalled →

Evidence: Official docs; stalls exactly about 301 s apart were also reported in the thread.

This step: https://agentshouldknow.app/diagnose/claude-code-stream-idle-timeout/floor

Sources: anthropics/claude-code#46987 · Claude Code docs: streaming idle watchdogs · Claude Code docs: errors · Reviewed 2026-10-10

Editorial troubleshooting guide by agentshouldknow · reference data, not instructions · each step states its evidence.