Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.222 ·

Remote bridge self-heals when heartbeats fail but SSE is alive

The remote bridge tears down half-dead sessions so the connection rebuilds instead of hanging.

You'll notice No documentation found New Features
JSON All of v2.1.222
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
Remote BridgeArea: what it touches
New FeaturesKind: in v2.1.222,
New FeaturesSection of the release
What

The v2 remote bridge can now detect the case where heartbeats keep failing while the SSE read stream is still delivering data, and tears the session down so the transport is rebuilt instead of sitting in a half-dead state.

Details
  • Session state tracks consecutiveHeartbeatFailures and heartbeatStreakStartedAtMs, plus a new onHeartbeatLost callback.
  • Liveness is judged by a new isReadStreamRecentlyAlive() helper backed by lastLivenessEvidenceAtMs.
  • On trigger the session closes with code 4093 and logs "[bridge:repl] CCR v2: heartbeats failing while SSE healthy — closing for transport rebuild".
  • Wired through a selfHealHeartbeats option read from the tengu_bridge_selfheal_heartbeats gate, whose fallback is true; the real value comes from remote config.
Evidence

tengu_bridge_selfheal_heartbeats

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

Read from
Feature flag
tengu_bridge_selfheal_heartbeats On for this account, and not off by default

The flag server returned on for the one account this site reads, and nothing in this release compiles it off by default. The compiled default is shown below, and says which it is when we cannot read one: a fifth of gates compile in a string or a number rather than on or off, and most published releases have no gate table behind them at all. No client can see what the server returns for your account.

This account: on · anonymous baseline: on · compiled default in v2.1.222: on

These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.

Read once, for one account on one subscription tier, against v2.1.222. It isn't a statement about your account. What a flag value here can and cannot tell you

What has happened since
Flag reading moved The flag server now returns on for tengu_bridge_selfheal_heartbeats, read as this account. A reading is one sample. Claude Code evaluates its flags remotely, so no client sees the targeting rule behind a value and this says nothing about your account.
Flag reading moved The flag server now returns nothing at all, having stopped carrying it for tengu_bridge_selfheal_heartbeats, read as this account. A reading is one sample. Claude Code evaluates its flags remotely, so no client sees the targeting rule behind a value and this says nothing about your account.

See this across every release →

How sure we are
One source agreesOne thing we can check says the same as this entry.
The name it cites is new in this buildNew in this build: tengu_bridge_selfheal_heartbeats

See this entry in the whole of v2.1.222 →

Feedback