@wu529778790/open-im 1.6.7-beta.0 → 1.6.8-beta.0

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.
@@ -198,8 +198,14 @@ export async function updateMessage(chatId, streamId, content, status, note, too
198
198
  }
199
199
  }
200
200
  export async function sendFinalMessages(chatId, streamId, fullContent, note, toolId = 'claude', reqId) {
201
+ const contentToSend = fullContent?.trim() || '(无输出)';
202
+ const reqIdUsed = getReqId(reqId);
203
+ if (!reqIdUsed) {
204
+ log.warn(`sendFinalMessages: no req_id, streamId=${streamId}, contentLen=${contentToSend.length}`);
205
+ }
206
+ log.info(`sendFinalMessages: streamId=${streamId}, contentLen=${contentToSend.length}, reqId=${reqIdUsed ? 'ok' : 'missing'}`);
201
207
  const title = getToolTitle(toolId, 'done');
202
- const parts = splitLongContent(fullContent, MAX_WEWORK_MESSAGE_LENGTH);
208
+ const parts = splitLongContent(contentToSend, MAX_WEWORK_MESSAGE_LENGTH);
203
209
  const finalMessage = formatWeWorkMessage(title, parts[0], 'done', parts.length > 1 ? `内容较长,已分段发送 (1/${parts.length})` : note);
204
210
  try {
205
211
  const state = streamStates.get(streamId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wu529778790/open-im",
3
- "version": "1.6.7-beta.0",
3
+ "version": "1.6.8-beta.0",
4
4
  "description": "Multi-platform IM bridge for AI CLI tools (Claude, Codex, Cursor, CodeBuddy)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",