[Bug] Claude Code CLI responses extremely slow (2+ minutes latency)
Bug Description
Title: Claude Code extremely slow response time (2+ minutes for simple prompts)
Description:
Simple prompts like "hi" take ~2 minutes to get a response in Claude Code. This started recently with no changes to my setup.
Claude.ai (web) and Claude app work fine, normal speed
Only Claude Code is affected
Network test: curl to api.anthropic.com shows dns 0.2ms, connect 1.4ms, first_byte 3.3s — connection itself is fine
Windows 11, Clash Verge proxy (unchanged config)
Not a context/skill overload issue — happens even with a fresh claude session and a single "hi"
Behavior: either responds very slowly or hangs, no middle ground
Claude Code version: v2.1.96
Environment Info
- Platform: win32
- Terminal: WezTerm
- Version: 2.1.96
- Feedback ID: 087d2f3a-2459-4616-8a6c-f3f19f12111e
Errors
[{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:484:14)\n at Socket.emit (node:events:518:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2026-04-08T14:06:58.583Z"},{"error":"Error: 1P event logging: 2 events failed to export (code=ECONNRESET, Client network socket disconnected before secure TLS connection was established)\n at fh1.queueFailedEvents (file:///C:/Users/ADMIN/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n at async fh1.doExport (file:///C:/Users/ADMIN/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:1465)","timestamp":"2026-04-08T14:09:26.679Z"},{"error":"Error: {\"stack\":\"Error: Failed to export 2 events (code=ECONNRESET, Client network socket disconnected before secure TLS connection was established)\\n at fh1.doExport (file:///C:/Users/ADMIN/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:1640)\",\"message\":\"Failed to export 2 events (code=ECONNRESET, Client network socket disconnected before secure TLS connection was established)\",\"name\":\"Error\"}\n at zn1.error (file:///C:/Users/ADMIN/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2085:4342)\n at EE1.error (file:///C:/Users/ADMIN/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:491:10505)\n at file:///C:/Users/ADMIN/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:491:36851\n at w9_ (file:///C:/Users/ADMIN/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:491:37397)\n at file:///C:/Users/ADMIN/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:492:24943","timestamp":"2026-04-08T14:09:26.680Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:484:14)\n at Socket.emit (node:events:518:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)\n at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)","timestamp":"2026-04-08T14:23:53.492Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:484:14)\n at Socket.emit (node:events:518:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)\n at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)","timestamp":"2026-04-08T14:24:25.845Z"},{"error":"Error: 1P event logging: 4 events failed to export (code=ECONNRESET, Client network socket disconnected before secure TLS connection was established)\n at fh1.queueFailedEvents (file:///C:/Users/ADMIN/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n at async fh1.doExport (file:///C:/Users/ADMIN/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:1465)","timestamp":"2026-04-08T14:24:38.977Z"},{"error":"Error: {\"stack\":\"Error: Failed to export 4 events (code=ECONNRESET, Client network socket disconnected before secure TLS connection was established)\\n at fh1.doExport (file:///C:/Users/ADMIN/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:1640)\",\"message\":\"Failed to export 4 events (code=ECONNRESET, Client network socket disconnected before secure TLS connection was established)\",\"name\":\"Error\"}\n at zn1.error (file:///C:/Users/ADMIN/AppData/Roaming/npm/node_modules/…
Note: Content was truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗