Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.222 Home All releases olderv2.1.221 v2.1.223newer

Heartbeat-failure streak detection in the CCR client

Under the hood
Useful2 Signal0
Elsewhere

Dropped connections are detected by counting repeated heartbeat failures instead of reacting to one.

What

Failed heartbeat POSTs are no longer fire-and-forget; the client tracks a failure streak and reports it upward once it is long enough to matter.

Details
  • a set of statuses is ignored outright
  • checks isReadStreamRecentlyAlive() before counting, then increments consecutiveHeartbeatFailures
  • fires onHeartbeatLost only once the streak passes both a count and a duration threshold
  • a successful heartbeat calls resetHeartbeatStreak()
  • the onHeartbeatLost handler is only installed when selfHealHeartbeats is on
Evidence

this.onHeartbeatLost?.()

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.222 →