Claude Code: Doctor Command Now Tests API Connectivity

Claude CodeView original changelog

The claude doctor command gained an API connectivity section. It reports whether the API can be reached, with the HTTP status or the error, or explains why no test was run. This gives users a quick first step when sessions fail behind proxies or firewalls.

Key Takeaways

  • claude doctor now includes an API connectivity section.
  • Failures show the HTTP status or error text instead of leaving users guessing.
  • When no test runs, the report explains why it was skipped.
  • A silent reply during thinking is retried once instead of failing the turn.
  • MCP tool calls no longer hang for up to 30 minutes on malformed local or WebSocket replies.
  • Esc and Stop respond sooner when a network or cloud file stalls during a read.

A connectivity check in claude doctor

Claude Code 2.1.331 adds an API connectivity section to claude doctor. The section reports whether the API can be reached. When a request fails, it shows the HTTP status or the error text. When no test was made, it says why.

Why it matters

Connection trouble is a common cause of confusing failures, especially behind corporate proxies, VPNs or custom gateways. Before this change, users had to guess whether the cause was credentials, network, or the service. The doctor output now answers that question in one place, which shortens the path to a useful bug report or a fix on the network side.

Related reliability fixes

The same release retries a request once when a reply goes silent while Claude is still thinking, a failure that hit cloud sessions and long replies. It also stops MCP tool calls from hanging for up to 30 minutes on certain malformed replies from a local or WebSocket server, and makes Esc and Stop respond promptly when a network or cloud file Claude is reading stalls.