Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(provider-cursor): a skill tree deeper than the scan limit no longer hides every skill #17389

MergedScottN-PV(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/17389/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Showing 2 changed files with 86 additions and 4 deletions.

x
0 of 2 viewed, 2 left
83 additions and 0 deletionspackages/provider-cursor/src/server/skills.test.tsModified
View file
@@ -102,6 +102,89 @@
}),
));
​
+ it("skips a skill tree deeper than the limit instead of failing discovery", async () =>
+ await runNode(
+ Effect.gen(function* () {
+ const fileSystem = yield* FileSystem.FileSystem;
+ const path = yield* Path.Path;
+ const tempDirectory = (prefix: string) =>
+ fileSystem
+ .makeTempDirectoryScoped({ directory: NodeOS.tmpdir(), prefix })
+ .pipe(Effect.flatMap((directory) => fileSystem.realPath(directory)));
+ const userHome = yield* tempDirectory("cursor-skills-home-");
+ const workspace = yield* tempDirectory("cursor-skills-workspace-");
+ const writeSkill = Effect.fn("writeCursorSkill")(function* (directory: string) {
+ yield* fileSystem.makeDirectory(directory, { recursive: true });
+ yield* fileSystem.writeFileString(path.join(directory, "SKILL.md"), "---\n---\n");
+ });
+ const userRoot = path.join(userHome, ".claude", "skills");
+ // The root is depth 0, so `deep-skill` sits at the depth limit and `below` past it.
+ const atLimit = path.join(
+ userRoot,
+ "deep",
+ "2",
+ "3",
+ "4",
+ "5",
+ "6",
+ "7",