clawmatrix 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawmatrix",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Decentralized mesh cluster plugin for OpenClaw — inter-gateway communication, model proxy, task handoff, and tool proxy.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -801,6 +801,12 @@ export class PeerManager extends EventEmitter<PeerManagerEvents> {
801
801
  const channelCount = this.router.getChannelCount(nodeId);
802
802
  debug("peer", `completePeerJoin(${nodeId}): additional channel added (total=${channelCount})`);
803
803
  audit("channel_add", { nodeId, detail: `channels=${channelCount}` });
804
+ // If the peer reconnected after a grace period, its client-side state
805
+ // may have been reset (e.g. iOS app restart). Send peer_sync so the
806
+ // reconnecting node re-discovers other peers in the cluster.
807
+ if (wasInGrace) {
808
+ this.sendPeerSync(conn);
809
+ }
804
810
  return;
805
811
  }
806
812