claude-code - 💡(How to fix) Fix [BUG] API Error: Stream idle timeout - partial response received" on Claude Code Web [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47841Fetched 2026-04-15 06:40:49
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×5commented ×1unlabeled ×1

Error Message

API Error: Stream idle timeout - partial response received

Code Example

API Error: Stream idle timeout - partial response received
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Claude Code Web frequently stops mid-response and shows this error:

API Error: Stream idle timeout - partial response received

The response often starts normally, then stops before completion, and only a partial answer is displayed.

What Should Happen?

Claude Code Web should complete the response normally without stopping mid-stream or showing a timeout error.

Error Messages/Logs

API Error: Stream idle timeout - partial response received

Steps to Reproduce

  1. Open Claude Code Web in the browser.
  2. Start a normal conversation.
  3. Send a prompt that requires a long or multi-step response.
  4. Wait while the answer is streaming.
  5. In some cases, the response stops before completion and the UI shows: "API Error: Stream idle timeout - partial response received"

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

N/A (Claude Code Web)

Claude Code Version

Web version (no local CLI version)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

This issue occurs on Claude Code Web in browser usage, not in local CLI.

Browser: Chrome / ChatGPT Browser-based environment on macOS Connection: stable Frequency: multiple times per day

It seems more common during longer or more complex responses.

extent analysis

TL;DR

The issue can likely be mitigated by adjusting the stream idle timeout setting or optimizing the API response handling to prevent partial responses.

Guidance

  • Verify if the issue is specific to the Sonnet model or if it occurs with other models as well, to determine if the problem is model-specific.
  • Check the Anthropic API documentation for any guidelines on handling stream idle timeouts or optimizing response streaming.
  • Consider implementing a retry mechanism or increasing the timeout threshold to handle longer or more complex responses.
  • Investigate if there are any browser-specific limitations or settings that could be contributing to the issue, such as Chrome's default timeout settings.

Example

No code snippet is provided as the issue does not specify any custom code implementation.

Notes

The issue may be related to the Anthropic API's stream idle timeout settings or the Claude Code Web implementation. Further investigation is needed to determine the root cause.

Recommendation

Apply workaround: Adjust the stream idle timeout setting or implement a retry mechanism to handle longer or more complex responses, as the issue is likely related to the API response handling.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] API Error: Stream idle timeout - partial response received" on Claude Code Web [1 comments, 2 participants]