Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): thread cwd through Claude capability probe (#2048) #2124

Mergedmvanhorn(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/2124/headmerged by juliusmarminge View on GitHub

Showing 4 changed files with 15 additions and 4 deletions (loading 1).

x
0 of 4 viewed, 4 left
3 additions and 2 deletionsapps/server/src/provider/Drivers/ClaudeDriver.tsModified
View file
@@ -119,6 +119,7 @@
Effect.gen(function* () {
const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;
const path = yield* Path.Path;
+ const { cwd } = yield* ServerConfig;
const httpClient = yield* HttpClient.HttpClient;
const serverSettings = yield* ServerSettingsService;
const eventLoggers = yield* ProviderEventLoggers;
@@ -154,11 +155,11 @@
capacity: 1,
timeToLive: CAPABILITIES_PROBE_TTL,
lookup: () =>
- probeClaudeCapabilities(effectiveConfig, processEnv).pipe(
+ probeClaudeCapabilities(effectiveConfig, processEnv, cwd).pipe(
Effect.provideService(Path.Path, path),
});
- const capabilitiesCacheKey = yield* makeClaudeCapabilitiesCacheKey(effectiveConfig);
+ const capabilitiesCacheKey = yield* makeClaudeCapabilitiesCacheKey(effectiveConfig, cwd);
​
const checkProvider = checkClaudeProviderStatus(
effectiveConfig,
10 additions and 1 deletionapps/server/src/provider/Drivers/ClaudeHome.test.tsModified
View file
@@ -34,11 +34,20 @@
expect((yield* makeClaudeEnvironment({ homePath })).CLAUDE_CONFIG_DIR).toBe(resolved);
expect(yield* makeClaudeContinuationGroupKey({ homePath })).toBe(`claude:home:${resolved}`);