fix(coding-agent): allow skill names to differ from directories

closes #4534
This commit is contained in:
Mario Zechner
2026-05-16 23:38:46 +02:00
parent d0fe8570e9
commit 5d31e70b8a
4 changed files with 8 additions and 12 deletions

View File

@@ -41,7 +41,7 @@ describe("skills", () => {
expect(diagnostics).toHaveLength(0);
});
it("should warn when name doesn't match parent directory", () => {
it("should allow names that don't match parent directory", () => {
const { skills, diagnostics } = loadSkillsFromDir({
dir: join(fixturesDir, "name-mismatch"),
source: "test",
@@ -51,7 +51,7 @@ describe("skills", () => {
expect(skills[0].name).toBe("different-name");
expect(
diagnostics.some((d: ResourceDiagnostic) => d.message.includes("does not match parent directory")),
).toBe(true);
).toBe(false);
});
it("should warn when name contains invalid characters", () => {