claude-code - 💡(How to fix) Fix [BUG] Haiku + thinking mode=true causes stream idle timeout (silent hang, not 400 error) on WSL2 [1 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#50739Fetched 2026-04-20 12:14:23
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4

Error Message

  1. 1時間後にAPI Error: Stream idle timeout - partial response receivedで終了

Error Messages/Logs

  1. 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 v2.1.114
  • WSL2 Ubuntu
  • Model: Haiku
  • Thinking mode: true(/configで設定)

症状 400エラーではなく、1時間ちょうどでstream idle timeoutが発生。トークンが一切流れてこないsilent hangになる。

再現手順

  1. /configでthinking mode: trueに設定
  2. Modelをhaikuに設定
  3. コード生成タスクを投げる
  4. 1時間後にAPI Error: Stream idle timeout - partial response receivedで終了

修正 /configでthinking mode: falseに変更 → 即座に解決

既存issueとの違い #11388は400エラーだが、今回はsilent hangになる点が異なる。Haikuがthinkingをサポートしないにもかかわらず、エラーを返さずにタイムアウトまで待ち続ける動作になっている。

What Should Happen?

Haikuはthinkingをサポートしていない。Claude Codeは以下のいずれかの動作をすべき:

  1. 即座に400エラーを返す(issue #11388と同様)
  2. Haikuが選択された場合、自動的にthinking modeを無効にする

現状は1時間のstream idle timeoutまでsilent hangが続く。

Error Messages/Logs

Steps to Reproduce

  1. /config で Model を Haiku に設定
  2. /config で Thinking mode を true に設定
  3. コード生成タスクを投げる(例:「このコードをVLEN=8でvectorizeして」)
  4. トークンが一切流れてこないまま1時間経過
  5. API Error: Stream idle timeout - partial response received で終了

Note: CLAUDE_STREAM_IDLE_TIMEOUT_MS=3600000 を設定していたため1時間でタイムアウト。 デフォルト(90秒)では90秒で発生すると思われる。

Claude Model

Other

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.114 (Claude Code)

Platform

Other

Operating System

Ubuntu/Debian Linux

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

No response

extent analysis

TL;DR

Setting thinking mode to false in the /config resolves the silent hang issue caused by the Haiku model not supporting thinking mode.

Guidance

  • Verify that the Haiku model does not support thinking mode, as this is the likely cause of the silent hang.
  • Try setting thinking mode to false in the /config to see if it resolves the issue, as mentioned in the 修正 section.
  • Consider implementing a check to automatically disable thinking mode when the Haiku model is selected, to prevent similar issues in the future.
  • Review the CLAUDE_STREAM_IDLE_TIMEOUT_MS setting, as it may be contributing to the 1-hour timeout delay.

Notes

The issue seems to be specific to the Haiku model and the thinking mode setting. The provided information suggests that setting thinking mode to false resolves the issue, but it may not be a permanent fix.

Recommendation

Apply workaround: Set thinking mode to false in the /config to resolve the silent hang issue, as this is a straightforward and effective solution based on the provided information.

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] Haiku + thinking mode=true causes stream idle timeout (silent hang, not 400 error) on WSL2 [1 participants]