openclaw-quiubo 2.6.1 → 2.6.3

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/dist/index.js CHANGED
@@ -12603,9 +12603,9 @@ var RealtimeGateway = class {
12603
12603
  await this.startPusher();
12604
12604
  } else {
12605
12605
  this.log.info?.("No Pusher config \u2014 using polling only");
12606
- this.startPolling();
12607
- if (this.agentId) this.startHeartbeat();
12608
12606
  }
12607
+ this.startPolling();
12608
+ if (this.agentId) this.startHeartbeat();
12609
12609
  }
12610
12610
  /**
12611
12611
  * Stop the gateway.
@@ -12662,8 +12662,7 @@ var RealtimeGateway = class {
12662
12662
  });
12663
12663
  this.pusherClient.connection.bind("connected", () => {
12664
12664
  this.pusherConnected = true;
12665
- log.info?.("Pusher connected");
12666
- this.stopPolling();
12665
+ log.info?.("Pusher connected (polling continues as safety net)");
12667
12666
  if (this.agentId) this.startHeartbeat();
12668
12667
  });
12669
12668
  this.pusherClient.connection.bind("disconnected", () => {
@@ -12758,6 +12757,10 @@ var RealtimeGateway = class {
12758
12757
  log.info?.(`agent:group-removed for group ${data.groupId}`);
12759
12758
  this.botConfigCache.delete(data.groupId);
12760
12759
  });
12760
+ channel.bind_global((eventName, data) => {
12761
+ if (eventName.startsWith("pusher:") || eventName.startsWith("pusher_")) return;
12762
+ log.info?.(`[pusher:raw] event=${eventName} data=${JSON.stringify(data).slice(0, 300)}`);
12763
+ });
12761
12764
  channel.bind("new-group-message", (data) => {
12762
12765
  log.info?.(`Pusher event: messageId=${data.messageId} groupId=${data.groupId} sender=${data.senderUsername} plaintext=${!!data.plaintext}`);
12763
12766
  if (data.senderId === this.botIdentityId) return;
@@ -12875,7 +12878,7 @@ var RealtimeGateway = class {
12875
12878
  }
12876
12879
  }
12877
12880
  async poll() {
12878
- if (this.polling || this.pusherConnected) return;
12881
+ if (this.polling) return;
12879
12882
  this.polling = true;
12880
12883
  try {
12881
12884
  this.clearStaleSuppression();