fix(chat): reconcile reply recovery with continuous agent conversations
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
鲨鱼辣椒 committed 2026-09-28 18:14:12 +08:00
1 parent 44b16f8fbd
commit cafebca057
13 files changed
+159 -34

No files matched your search

+2 -1
View File
@@ -13,9 +13,10 @@ export function applyTeacherReply(request: TeacherRequest, raw: string): void {
// Apply the current UI contract only to new replies; archived replies keep
// their original cards through the compatibility parser and topic store.
if (parsed.quickReplies.length > MAX_CURRENT_QUICK_REPLIES) {
request.replyQuickRepliesRejected = true;
parsed.quickReplies = [];
parsed.parseError ??= '快捷回复超过当前界面最多 3 条的限制,正文已保留,快捷回复未展示。';
}
} else delete request.replyQuickRepliesRejected;
request.response = parsed.reply;
request.suggestedQuestions = parsed.quickReplies;
if (parsed.incomplete) request.replyIncomplete = true;