Skip to content

telepathy 0.11.2

Choose a tag to compare

@Winterrks Winterrks released this 01 Nov 22:38
· 6 commits to main since this release

telepathy 0.11.2

Upgrade: npm install -g telepathy-cli && telepathy setup, then telepathy bridge stop && telepathy bridge start on each device. It is the last bridge restart you do by hand.

The bridge restarts itself into updates

A running bridge used to keep its old code until someone restarted it. Now it notices when the telepathy it runs from is replaced (by auto-update, telepathy update, or npm install -g telepathy-cli) and restarts into the new version. Deliveries in flight finish first, and if the new bridge does not start, the old one keeps running.

Your devices update together

Bridges tell each other which version they run and which one is installed. When one device has a newer version, the others check for updates at once instead of at their next daily check; what they install comes from npm and GitHub, never from the other device. A bridge with a new version waits until the devices it reaches have it too, and then they all restart at one moment they agree on, so an update that changes how bridges talk doesn't leave them unable to reach each other. Between two Macs over Tailscale, both restarted 177 ms apart, 45 seconds after the first one was updated.

A device with auto-update off isn't waited for, and the wait ends after 10 minutes (TELEPATHY_BRIDGE_RESTART_WAIT_MS).

A device on a version this one can't talk to stays listed

It used to disappear from the list. Now telepathy bridge status shows it with its version and which side updates, the older side updates toward it, a message to it says why it can't go through, and pairing waits until both match.

Also

  • The bridge runs the daily update check itself, so a device where no new session starts still updates.
  • The npm update of the telepathy command no longer depends on GitHub: a failed GitHub version check used to skip it.
  • telepathy bridge status shows the bridge's version, each device's version when it differs, a restart it is waiting for, and one that failed.