@ynhcj/xiaoyi-channel 0.0.218-next → 0.0.219-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.
@@ -142,7 +142,10 @@ export function createXYReplyDispatcher(params) {
142
142
  // ── append: false streaming state ─────────────────────────────
143
143
  // Instead of computing deltas, we always send the full text with
144
144
  // append: false. Model-call boundaries are detected via startsWith.
145
- let crossTurnPrefix = sessionFullTextMap.get(sessionId) ?? "";
145
+ // crossTurnPrefix: 仅在 steer 时继承上一轮内容,新消息从空开始。
146
+ let crossTurnPrefix = steerState.steered
147
+ ? (sessionFullTextMap.get(sessionId) ?? "")
148
+ : "";
146
149
  let prevModelText = ""; // completed model calls within this turn
147
150
  let currentModelText = ""; // current model call's full accumulated text
148
151
  // ──────────────────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynhcj/xiaoyi-channel",
3
- "version": "0.0.218-next",
3
+ "version": "0.0.219-next",
4
4
  "description": "OpenClaw Xiaoyi Channel plugin - Xiaoyi A2A protocol integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",