Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): discover Claude commands in the active workspace #12426

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

Showing 3 changed files with 105 additions and 7 deletions.

x
0 of 3 viewed, 3 left
5 additions and 6 deletionsapps/server/src/provider/Drivers/ClaudeDriver.tsModified
View file
@@ -35,6 +35,7 @@
checkClaudeProviderStatus,
makePendingClaudeProvider,
probeClaudeCapabilities,
+ readClaudeWorkspaceSnapshot,
} from "../Layers/ClaudeProvider.ts";
import { ProviderEventLoggers } from "../Layers/ProviderEventLoggers.ts";
import { resolveClaudeModelCatalog } from "../ClaudeModelCatalog.ts";
@@ -60,7 +61,6 @@
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");
@@ -234,11 +234,10 @@
const snapshotForCwd = (cwd: string) =>
!effectiveConfig.enabled
? snapshot.getSnapshot
- : Effect.all([
- snapshot.getSnapshot,
- discoverClaudeSkills(effectiveConfig, cwd, processEnv),
- ]).pipe(
- Effect.map(([machineSnapshot, skills]) => ({ ...machineSnapshot, skills })),
+ : snapshot.getSnapshot.pipe(
+ Effect.flatMap((machineSnapshot) =>
+ readClaudeWorkspaceSnapshot(effectiveConfig, machineSnapshot, cwd, processEnv),