feat: slash commands (built-in, skill, recipe) in acp server (#9238)

This commit is contained in:
Lifei Zhou
2026-05-20 14:48:34 +10:00
committed by GitHub
parent bc6293ce70
commit 3631e3cbf1
20 changed files with 1465 additions and 433 deletions
+1 -4
View File
@@ -455,10 +455,7 @@ const MentionPopover = forwardRef<
if (item.itemType === 'Agent') {
return '@' + item.name + ' ';
}
if (item.itemType === 'Skill') {
return `Use the ${item.name} skill to `;
}
if (['Builtin', 'Recipe'].includes(item.itemType)) {
if (['Builtin', 'Recipe', 'Skill'].includes(item.itemType)) {
return '/' + item.name;
}
return item.extra;