@ynhcj/xiaoyi-channel 0.0.228-next → 0.0.229-next

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.
@@ -206,6 +206,10 @@ export function createXYReplyDispatcher(params) {
206
206
  // 捕获权威最终文本(canonical,来自最后一条 assistant 消息,
207
207
  // 非流式累计),供 onIdle 拼接最终帧。compaction 通知不是答案
208
208
  // 文本,不能污染 finalReplyText。
209
+ // ⚙️ 前缀是 openclaw 系统消息的稳定标记(infra/system-message.ts
210
+ // SYSTEM_MARK),如 ACP 绑定会话投递的 "Session ids resolved"
211
+ // 诊断通知 —— 它会在同一 run 内尾随真实答案以 kind=final 投递,
212
+ // 若被捕获,最终帧会把客户端气泡里的答案整体替换成通知文本。
209
213
  if (info?.kind === "final" && !payload.isCompactionNotice) {
210
214
  finalReplyText = text;
211
215
  scopedLog().log(`[DELIVER] Captured final reply text, length=${finalReplyText.length}`);
@@ -223,7 +227,7 @@ export function createXYReplyDispatcher(params) {
223
227
  taskId: getActiveTaskId(),
224
228
  messageId: getActiveMessageId(),
225
229
  text,
226
- append: false,
230
+ append: true,
227
231
  final: false,
228
232
  });
229
233
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynhcj/xiaoyi-channel",
3
- "version": "0.0.228-next",
3
+ "version": "0.0.229-next",
4
4
  "description": "OpenClaw Xiaoyi Channel plugin - Xiaoyi A2A protocol integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",