Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(claude): composer stops starting the CLI when a folder's commands can't have changed #29154

ClosedYuruzuu(GitHub profile, opens in a new tab)wants to merge 11 commits intomain fromrefs/pull/29154/headopened View on GitHub

Showing 4 changed files with 22 additions and 2 deletions (loading 3).

x
0 of 4 viewed, 4 left
22 additions and 2 deletionsapps/server/src/provider/Drivers/ClaudeDriver.tsModified
View file
@@ -30,6 +30,7 @@
checkClaudeProviderStatus,
makePendingClaudeProvider,
probeClaudeCapabilities,
+ makeClaudeWorkspaceCommands,
probeClaudeWorkspaceSnapshot,
type ClaudeCapabilitiesProbe,
} from "../ClaudeProvider.ts";
@@ -371,6 +372,17 @@
​
+ const workspaceCommands = yield* makeClaudeWorkspaceCommands(
+ effectiveConfig,
+ processEnv,
+ (cwd) =>
+ probeClaudeCapabilities(effectiveConfig, processEnv, cwd, false).pipe(
+ Effect.map((capabilities) => capabilities.slashCommands),
+ Effect.provideService(FileSystem.FileSystem, fileSystem),
+ Effect.provideService(Path.Path, path),
+ ),
+ );
+​
return {
instanceId,
driverKind: DRIVER_KIND,
@@ -382,11 +394,19 @@
accentColor,