fix(chat): reconcile reply recovery with continuous agent conversations
This commit is contained in:
1 parent
44b16f8fbd
commit
cafebca057
13 files changed
+159
-34
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user