[BUG] Claude Code (CLI) connection timeout
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I was using claude-code to refactor a project. Everything was going as expected until a certain point I noticed that the agent's latency to perform simple tasks such as changing the value of a simple ".env" parameter was taking +3min. Even interrupting the stream, when trying again, the latency persisted.
I decided to start the flow over from scratch (opening a new session) and this time it was catastrophic: when I typed “claude” in the terminal, the service simply didn't open.
This was tested via PowerShell on Windows. When trying via WSL2, the result was the same for an installation from scratch with curl -fsSL https://claude.ai/install.sh | bash: when typing "claude" to open and configure the cli tool for the first time, it opens the interface and shows "checking connectivity" over and over again, it simply doesn't work.
My connectivity is stable:
- download: 58.5Mb/s
- upload: 14.2Mb/s
Ping test:
PING www.google.com (142.250.78.100) 56(84) bytes of data.
64 bytes from bog02s17-in-f4.1e100.net (142.250.78.100): icmp_seq=1 ttl=118 time=17.8 ms
64 bytes from bog02s17-in-f4.1e100.net (142.250.78.100): icmp_seq=2 ttl=118 time=31.4 ms
64 bytes from bog02s17-in-f4.1e100.net (142.250.78.100): icmp_seq=3 ttl=118 time=19.0 ms
--- www.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2063ms
rtt min/avg/max/mdev = 17.777/22.725/31.434/6.177 ms
What Should Happen?
The CLI tool should not have latency
Error Messages/Logs
Steps to Reproduce
- have claude code (CLI) installed: https://code.claude.com/docs/en/setup
- open a new terminal and type
claude
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
v2.1.6
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗