Kaynağa Gözat

Parse mentions from all user inputs (#6331)

Matt Rubens 7 ay önce
ebeveyn
işleme
41aaf07861

+ 5 - 1
src/core/mentions/processUserContentMentions.ts

@@ -39,7 +39,11 @@ export async function processUserContentMentions({
 	// should parse mentions).
 	// should parse mentions).
 	return Promise.all(
 	return Promise.all(
 		userContent.map(async (block) => {
 		userContent.map(async (block) => {
-			const shouldProcessMentions = (text: string) => text.includes("<task>") || text.includes("<feedback>")
+			const shouldProcessMentions = (text: string) =>
+				text.includes("<task>") ||
+				text.includes("<feedback>") ||
+				text.includes("<answer>") ||
+				text.includes("<user_message>")
 
 
 			if (block.type === "text") {
 			if (block.type === "text") {
 				if (shouldProcessMentions(block.text)) {
 				if (shouldProcessMentions(block.text)) {