Browse Source

Parse mentions from all user inputs (#6331)

Matt Rubens 7 months ago
parent
commit
41aaf07861
1 changed files with 5 additions and 1 deletions
  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)) {