Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: increase Claude auth probe timeout to 10s #2272

MergedHeinz-G(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/2272/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 4 additions and 1 deletion.

x
0 of 2 viewed, 2 left
2 additions and 1 deletionapps/server/src/provider/Layers/ClaudeProvider.tsModified
View file
@@ -19,6 +19,7 @@
​
import {
buildServerProvider,
+ AUTH_PROBE_TIMEOUT_MS,
DEFAULT_TIMEOUT_MS,
detailFromResult,
extractAuthBoolean,
@@ -674,7 +675,7 @@
// ── Auth check + subscription detection ────────────────────────────
​
const authProbe = yield* runClaudeCommand(["auth", "status"]).pipe(
- Effect.timeoutOption(DEFAULT_TIMEOUT_MS),
+ Effect.timeoutOption(AUTH_PROBE_TIMEOUT_MS),
Effect.result,
​
2 additions and 0 deletionsapps/server/src/provider/providerSnapshot.tsModified
View file
@@ -13,6 +13,8 @@
import { isWindowsCommandNotFound } from "../processRunner.ts";
​
export const DEFAULT_TIMEOUT_MS = 4_000;
+// Auth status checks involve disk/network lookups and can be slow on first run (especially Windows)
+export const AUTH_PROBE_TIMEOUT_MS = 10_000;
​
export interface CommandResult {