Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: discover project-level Claude skills for the picker in the desktop app #4546

ClosedRido(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/4546/headopened View on GitHub

Showing 11 changed files with 70 additions and 0 deletions (loading 8).

x
0 of 11 viewed, 11 left
10 additions and 0 deletionsapps/server/src/provider/Drivers/ClaudeDriver.tsModified
View file
@@ -54,6 +54,7 @@
type ProviderSnapshotSettings,
} from "../providerUpdateSettings.ts";
import { makeClaudeCapabilitiesCacheKey, makeClaudeContinuationGroupKey } from "./ClaudeHome.ts";
+import { discoverClaudeSkills } from "./ClaudeSkills.ts";
const decodeClaudeSettings = Schema.decodeSync(ClaudeSettings);
​
const DRIVER_KIND = ProviderDriverKind.make("claudeAgent");
@@ -216,6 +217,15 @@
snapshot,
adapter,
textGeneration,
+ // Workspace-scoped discovery for the `$` picker: the snapshot scans
+ // against the server process cwd, which is unrelated to the active
+ // project in the desktop app. Transports call this with the
+ // project's own path instead.
+ discoverSkills: (projectCwd: string) =>
+ discoverClaudeSkills(effectiveConfig, projectCwd, processEnv).pipe(
+ Effect.provideService(FileSystem.FileSystem, fileSystem),
+ Effect.provideService(Path.Path, path),
+ ),
} satisfies ProviderInstance;
}),
48 additions and 0 deletionsapps/server/src/provider/Drivers/ClaudeSkills.test.tsModified
View file
@@ -188,6 +188,54 @@