squad-openclaw 2026.2.1811 → 2026.2.1813

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.
Files changed (2) hide show
  1. package/dist/index.js +21 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1290,6 +1290,18 @@ var RelayClient = class {
1290
1290
  return;
1291
1291
  }
1292
1292
  this.injectDeviceIdentity(conn, msg);
1293
+ if (conn.localWs.readyState === NodeWebSocket.CONNECTING) {
1294
+ conn.localWs.once("open", () => {
1295
+ conn.localWs.send(JSON.stringify(msg));
1296
+ });
1297
+ } else {
1298
+ conn.localWs.send(JSON.stringify(msg));
1299
+ }
1300
+ return;
1301
+ }
1302
+ if (!conn.connectHandshakeComplete) {
1303
+ conn.pendingMessages.push(msg);
1304
+ return;
1293
1305
  }
1294
1306
  if (conn.localWs.readyState === NodeWebSocket.CONNECTING) {
1295
1307
  conn.localWs.once("open", () => {
@@ -1339,7 +1351,8 @@ var RelayClient = class {
1339
1351
  e2e: null,
1340
1352
  connectHandshakeComplete: false,
1341
1353
  challengeNonce: null,
1342
- pendingConnect: null
1354
+ pendingConnect: null,
1355
+ pendingMessages: []
1343
1356
  };
1344
1357
  this.userConnections.set(userId, conn);
1345
1358
  localWs.on("open", () => {
@@ -1392,6 +1405,13 @@ var RelayClient = class {
1392
1405
  }
1393
1406
  if (parsed.type === "res" && parsed.id === "connect-1" && parsed.ok) {
1394
1407
  conn.connectHandshakeComplete = true;
1408
+ if (conn.pendingMessages.length > 0) {
1409
+ console.log(`[relay-client] Flushing ${conn.pendingMessages.length} buffered messages for ${userId}`);
1410
+ for (const queued of conn.pendingMessages) {
1411
+ conn.localWs.send(JSON.stringify(queued));
1412
+ }
1413
+ conn.pendingMessages = [];
1414
+ }
1395
1415
  }
1396
1416
  let innerMsg = msg;
1397
1417
  if (conn.e2e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squad-openclaw",
3
- "version": "2026.2.1811",
3
+ "version": "2026.2.1813",
4
4
  "description": "Entity registry, filesystem tools, and version management plugin for OpenClaw gateway",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",