[BUG] ECONNRESET — fresh sessions drop after a few turns; --resume fails to connect at all — v2.1.201, macOS

Open 💬 0 comments Opened Jul 6, 2026 by Aphillipsk77

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?

Environment:

Claude Code CLI v2.1.201
macOS
No VPN, no proxy, home wifi
Project: local Next.js/Python repo

Symptom 1 — Fresh sessions (claude, no flags):
Connects and works normally for roughly 2–3 exchanges, then every subsequent message fails with:
API Error: Unable to connect to API (ECONNRESET)
Symptom 2 — claude --resume:
Fails immediately, every time, before any message can be sent. Same ECONNRESET error, but occurs at connection/startup rather than mid-session.

Troubleshooting already performed:

Full claude auth logout / claude auth login — no change to either symptom
Confirmed all MCP connectors (Drive, Calendar, Gmail, IBKR) disconnected and re-synced cleanly via claude mcp list
Disabled MCP entirely via --strict-mcp-config --mcp-config '{"mcpServers":{}}' — issue persisted
Full process kill (pkill -f claude) and relaunch — no change
VPN toggled on/off — no change
Wifi reset, router reboot attempted — no change
node -e "https.get('https://api.anthropic.com', ...)" returns clean 404 — confirms basic network path is healthy
Anthropic status page shows all systems operational

What Should Happen?

Expected: Fresh sessions should hold a stable connection; --resume should reconnect and load prior session state.
Actual: Fresh sessions drop after ~2-3 turns; --resume cannot connect at all.

Error Messages/Logs

API Error: Unable to connect to API (ECONNRESET)

Steps to Reproduce

Open claude. That's it.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

v2.1.201

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗