Streaming connection drops mid-response with 0 tokens received
Resolved 💬 3 comments Opened Jan 27, 2026 by fortytwode Closed Jan 31, 2026
Description
Claude Code frequently gets stuck mid-response, showing "Dilly-dallying" with 0 tokens received even after a partial response has been displayed. The response cuts off mid-sentence and no further tokens arrive.
Environment
- Claude Code version: 2.1.15
- OS: macOS Sequoia (Darwin 25.2.0)
- Node.js: v20.17.0
Steps to Reproduce
- Start a Claude Code session
- Send a message (even short ones with 2-3 message context)
- Observe response getting cut off mid-sentence
- Status shows:
Dilly-dallying… (esc to interrupt · Xm Xs · ↓ 0 tokens)
Expected Behavior
Response should complete fully or provide a clear error if the connection fails.
Actual Behavior
- Response starts normally
- Gets cut off mid-sentence (e.g., "For example, I" then stops)
- Status shows 0 tokens being received
- Session hangs indefinitely unless manually interrupted with
esc
Additional Context
- Happens frequently, not a one-off
- Network connection is stable (no VPN, wired/WiFi both affected)
- Happens with short contexts (2-3 messages), not just long conversations
- Only workaround is pressing
escto interrupt and retry
Screenshot
The status bar shows the issue clearly - response started but connection appears to have dropped silently without triggering an error state.
---
Reported via Claude Code
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗