Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): a slow Claude CLI is no longer reported as failing to run #21263

Mergedyaacovcorcos(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/21263/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 63 additions and 1 deletion.

x
0 of 2 viewed, 2 left
3 additions and 1 deletionapps/server/src/provider/ClaudeProvider.tsModified
View file
@@ -194,6 +194,8 @@
// Amazon Bedrock initializes far slower than first-party auth: the SDK boots the Bedrock
// backend and runs the `awsAuthRefresh` credential hook before returning account info.
const CAPABILITIES_PROBE_TIMEOUT_MS = 25_000;
+// Native CLI startup on Windows can exceed the shared probe deadline.
+const CLAUDE_VERSION_CHECK_TIMEOUT_MS = 20_000;
​
export const CLAUDE_CAPABILITIES_PROBE_SETTING_SOURCES = [
"user",
@@ -514,7 +516,7 @@
["--version"],
resolvedEnvironment,
cwd,
- ).pipe(Effect.timeoutOption(DEFAULT_TIMEOUT_MS), Effect.result);
+ ).pipe(Effect.timeoutOption(CLAUDE_VERSION_CHECK_TIMEOUT_MS), Effect.result);
​
if (Result.isFailure(versionProbe)) {
const error = versionProbe.failure;
60 additions and 0 deletionsapps/server/src/provider/ProviderRegistry.test.tsModified
View file
@@ -3969,6 +3969,66 @@
+ it.effect.each([
+ {
+ name: "accepts a healthy claude --version response after 19 seconds",