@qihoo/tuitui-openclaw-channel 1.0.8 → 1.0.9

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/package.json +1 -1
  2. package/src/channel.ts +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qihoo/tuitui-openclaw-channel",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "maintainers": [
5
5
  {
6
6
  "name": "huzunjie",
package/src/channel.ts CHANGED
@@ -592,6 +592,8 @@ export function createTuiTuiChannelPlugin(apiRuntime: any) {
592
592
  Surface: CHANNEL_ID,
593
593
  Provider: CHANNEL_ID,
594
594
  SenderName: msgUname || String(senderId),
595
+ MsgUname: msgUname,
596
+ UserAccount: userAccount,
595
597
  };
596
598
 
597
599
  // Add group-specific fields
@@ -666,7 +668,7 @@ export function createTuiTuiChannelPlugin(apiRuntime: any) {
666
668
  _sendMsg = defSendMsg;
667
669
  if (!abortSignal?.aborted) {
668
670
  log?.warn?.(`[${CHANNEL_ID}] WebSocket Restart`);
669
- startWebSocket(); // 重启
671
+ setTimeout(startWebSocket, 10e3); // 10秒后尝试重启
670
672
  }
671
673
  };
672
674
  ws.on('close', () => {