Jelajahi Sumber

Parse mentions from all user inputs (#6331)

Matt Rubens 5 bulan lalu
induk
melakukan
41aaf07861
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 5 1
      src/core/mentions/processUserContentMentions.ts

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

@@ -39,7 +39,11 @@ export async function processUserContentMentions({
 	// should parse mentions).
 	return Promise.all(
 		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 (shouldProcessMentions(block.text)) {