Parse mentions from all user inputs (#6331)

This commit is contained in:
Matt Rubens 2025-07-28 22:52:39 -04:00 • committed by GitHub
parent e9561743a3
commit 41aaf07861
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)) {