fix: render consultation replies and typed tool activity
This commit is contained in:
@@ -58,7 +58,11 @@ export function applyDiscussionReply(topic: TeacherTopic, request: TeacherReques
|
||||
const parsed = parseTeacherDiscussionReply(raw);
|
||||
request.response = parsed.reply;
|
||||
request.suggestedQuestions = parsed.quickReplies;
|
||||
if (parsed.toolError) request.discussionError = parsed.toolError;
|
||||
if (parsed.toolError) {
|
||||
request.discussionError = parsed.toolError;
|
||||
// Keep inspectable evidence instead of replacing the only copy with an error.
|
||||
request.unparsedResponse = raw;
|
||||
}
|
||||
if (!parsed.tool) return;
|
||||
const current = topic.discussion;
|
||||
if (!current) {
|
||||
|
||||
Reference in New Issue
Block a user