Follow Discord
Sweep 30 Oct 2026 · 01:02Z Build v2.1.314 532 read Stable v2.1.308 Latest v2.1.314 Next v2.1.314 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.314 ·

Lost API connections are now labelled by cause

API errors gain the kinds connection_failed, stream_idle_timeout and computer_slept, so a dropped connection says why it was lost

Group of 2 You'll notice Improvements
JSON All of v2.1.314
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
AgentsArea: what it touches
ImprovementsKind: in v2.1.314,
ImprovementsSection of the release

What

The list of error kinds Claude Code can report for a failed request to the API now includes three more:

  • connection_failed: the network connection failed.
  • stream_idle_timeout: Claude Code's own idle timer gave up waiting for the reply to continue.
  • computer_slept: the connection dropped because the computer went to sleep.

When the connection to the API is lost, the error now carries one of these as its apiError field, either computer_slept or connection_failed. A suspended stream (StreamSuspended) is never labelled connection_failed. The message you see, "Connection to the API was lost", is unchanged. Before, this error had no apiError field.

Why

Programs built on Claude Code through the SDK can tell a sleeping computer apart from a network failure or a timeout, and react to each differently.

See this entry in the whole of v2.1.314 →

Feedback