@wu529778790/open-im 1.9.4-beta.1 → 1.9.4-beta.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.
@@ -4,7 +4,7 @@
4
4
  import { resolvePlatformAiCommand } from '../config.js';
5
5
  import { AccessControl } from '../access/access-control.js';
6
6
  import { RequestQueue } from '../queue/request-queue.js';
7
- import { sendTextReply, sendErrorReply, sendStreamingReply } from './message-sender.js';
7
+ import { sendTextReply, sendErrorReply, sendStreamingReply, sendStreamingChunk } from './message-sender.js';
8
8
  import { CommandHandler } from '../commands/handler.js';
9
9
  import { getAdapter } from '../adapters/registry.js';
10
10
  import { runAITask } from '../shared/ai-task.js';
@@ -51,7 +51,9 @@ export function setupWorkBuddyHandlers(config, sessionManager) {
51
51
  const client = getCentrifugeClient();
52
52
  if (client)
53
53
  client.setStreamingMode(false);
54
- await sendTextReply(null, chatId, content, msgId);
54
+ // 不再发送 HTTP COPILOT_RESPONSE(无论 end_turn 还是 streaming 都会触发平台显示 "✅ Local Agent task completed")
55
+ // 改用 Centrifuge WebSocket session.update 推送最终内容,避免触发平台的 task completed 指示器
56
+ sendStreamingChunk(null, chatId, content, msgId);
55
57
  },
56
58
  sendError: async (error) => {
57
59
  const client = getCentrifugeClient();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wu529778790/open-im",
3
- "version": "1.9.4-beta.1",
3
+ "version": "1.9.4-beta.3",
4
4
  "description": "Multi-platform IM bridge for AI CLI tools (Claude, Codex, CodeBuddy)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",