mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-07 02:58:15 +00:00
Parse mentions from all user inputs (#6331)
This commit is contained in:
parent
e9561743a3
commit
41aaf07861
1 changed files with 5 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue