Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

test(skills): align invocation assertion with multi-skill path

zszz311d81d3c8879
diff --git a/apps/desktop/test/plugin-skills.test.mjs b/apps/desktop/test/plugin-skills.test.mjs
index bbd50a64d..f78637295 100644
--- a/apps/desktop/test/plugin-skills.test.mjs
+++ b/apps/desktop/test/plugin-skills.test.mjs
@@ -89,8 +89,8 @@ test("the composer lists active skills last and routes slash skills to the Skill
mainSrc,
/\.\.\.extensionCommands,\s*\.\.\.skillCommands,/,
);
- assert.match(mainSrc, /command\?\.kind === "skill" && command\.skillId/);
- assert.match(mainSrc, /Call the \\`Skill\\` tool with id/);
+ assert.match(mainSrc, /findSkillMentions\(req\.content, activeSkills\)/);
+ assert.match(mainSrc, /Call the \\`Skill\\` tool with each of these ids/);
assert.match(composerAutocompleteSrc, /item\.command\.kind === "skill"/);
});