claw-subagent-service 0.0.117 → 0.0.118
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.
package/package.json
CHANGED
|
@@ -472,7 +472,12 @@ class MessageHandler {
|
|
|
472
472
|
typingTimer = null;
|
|
473
473
|
}
|
|
474
474
|
|
|
475
|
-
|
|
475
|
+
// 只有非取消错误才发送错误提示
|
|
476
|
+
if (err.message !== 'canceled') {
|
|
477
|
+
await this._sendStreamChunk(fromUserId, targetId, conversationType, '抱歉,AI 响应出现错误,请稍后重试。', streamId, true, true, 1);
|
|
478
|
+
} else {
|
|
479
|
+
this.log?.info(`[MessageHandler] 请求被取消,不发送错误提示消息`);
|
|
480
|
+
}
|
|
476
481
|
|
|
477
482
|
// 错误时也要清理
|
|
478
483
|
this._streamMessageUIDs.delete(streamId);
|