[Bug] Anthropic API Error: Stream idle timeout - partial response received
Status Open
Reported on v2.1.100
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 15 comments · opened Apr 14, 2026
Bug Description
Ultraplan keeps breaking ffs... As per claude code web/desktop: "API Error: Stream idle timeout - partial response received". Twice in a row, after burning a hell lot of tokens.
Environment Info
- Platform: darwin
- Terminal: tmux
- Version: 2.1.100
- Feedback ID: c426a803-5e38-40aa-9e6e-01c8376e78c5
Errors
[{"error":"MaxFileReadTokenExceededError: File content (11292 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at xz7 (/$bunfs/root/src/entrypoints/cli.js:4358:12671)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T17:26:39.038Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: Request failed with status code 429\n at VB1 (/$bunfs/root/src/entrypoints/cli.js:2808:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T19:27:23.281Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: Request failed with status code 429\n at VB1 (/$bunfs/root/src/entrypoints/cli.js:2808:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T19:27:23.281Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/nagawa/projects/nag4voice.\n at call (/$bunfs/root/src/entrypoints/cli.js:4367:7632)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T19:32:42.209Z"},{"error":"MaxFileReadTokenExceededError: File content (10363 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at xz7 (/$bunfs/root/src/entrypoints/cli.js:4358:12671)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T01:44:07.486Z"}]
15 Comments
the same error: API Error: Stream idle timeout - partial response received
+1 API Error: Stream idle timeout - partial response received
I’ve experienced this error multiple times over the last couple of hours on macOS using the Claude app (Max plan).
An example output returned below:
**Yes, still working. The stream timed out after my last tool result. I have all three exploration agents' findings and have verified the critical files (vouchers schema, checkout route). I'm now ready to move into the Design phase.
Let me continue by launching the Plan agent to design the implementation.
API Error: Stream idle timeout - partial response received**
We are drowning in this error. No VPN. Latest Claude App in Code Web mode.
<img width="1415" height="1443" alt="Image" src="https://github.com/user-attachments/assets/cc117453-80bd-4aef-a44a-de99be715ae7" />
Same here, no VPN or anything: plain environment using Opus 4.7 (1m context).
Tried deleting the session and starting over: same result.
Happens for me during planning of a large task - though it fails after my initial prompt (just a single message from me, few minutes of work from agent, then failure).
Same failure mode:
custom CLAUDE.md, context at roughly 33% of the window.
from scratch as a handoff for a new session.
then began the Write call.
response received` before the write completed in the UI.
over 2 consecutive days. All failed at roughly the same point.
Reducing the scope of the write did not help.
completed — consistent with this being a keep-alive / heartbeat
gap between tool-result-accepted and the next assistant token,
not a model or tool-execution issue.
Workarounds suggested by support (manual chunking of the write,
raising
CLAUDE_STREAM_IDLE_TIMEOUT_MS) do not apply to the Cloud/ browser surface. Confirmation that a fix is in progress for this
specific surface would be appreciated.
API Error: Stream idle timeout - partial response received
Tried to restart Ultraplan in 3 different sessions, hit the error every time. On one session, I prompted to "Continue" a few times, only to be met with the error minutes after each "Continue".
womp womp.
I'm getting API Error: Stream idle timeout - partial response received constantly in the iOS app working on code in a GitHub repo. I can kick start the session again sometimes but it often grinds to a halt soon again. Wasted time and tokens, to the point where it gets unusable,
Found a fix for the
API Error: Stream idle timeout - partial response receivederror. Adding one line to a config file resolves it for me. Full details below.The fix
Open
~/.claude/settings.jsonand add this to the"env"section (create the section if it doesn't exist):Then quit and restart Claude Code. That number is 30 minutes in milliseconds, replacing a hidden 90-second default that the client uses before assuming the connection has gone idle.
When I was hitting it
What didn't work
remoteControlAtStartup: false) — same failure on local CLIHow I tracked it down
The timing. Opened the session log and measured every timeout. They all fired between 90.0 and 91.7 seconds after the previous message — eight in a row. That's not random — it's a 90-second clock running out.
The binary. The
claude.exebinary referencesCLAUDE_STREAM_IDLE_TIMEOUT_MSin two places. The one my stream hits defaults to 90 seconds with no minimum, so raising the env var directly raises the ceiling. The variable is real and load-bearing — it's just not in the official env-vars reference, so nobody knew it was the lever.Confirmation it actually works
After setting the env var to 1,800,000 and restarting:
Suggestion for Anthropic
This variable is real and important but undocumented — please either add it to the env-vars reference page or raise the default. Opus 4.7 with thinking + large context easily goes silent for over 90 seconds while preparing a big tool call, and most users have no way to know what's wrong or how to fix it.
Cross-ref: #25979 (main tracking issue), #33949 (technical deep-dive).
The same issue
same issue here.
Never have this kind of error before claude 4.7 rolling out.
UPDATE: This was actually an issue on my end, not Claude Code. I have an automatic ISP failover system between two providers, and a bug in my routing webhook was flushing connection tracking (conntrack) every 5 minutes — which killed all active TCP streams including the API connection to Anthropic.
Maybe claude team can't ship a fix for this issue because they themselves encounter this issue when using claude to fix claude