Skip to content

Commit b8305af

Browse files
fix: increase Claude auth probe timeout to 10s (#2272)
Co-authored-by: Heinz Gericke <115458264+heinzgericke@users.noreply.github.com>
1 parent b7c89cf commit b8305af

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

apps/server/src/provider/Layers/ClaudeProvider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919

2020
import {
2121
buildServerProvider,
22+
AUTH_PROBE_TIMEOUT_MS,
2223
DEFAULT_TIMEOUT_MS,
2324
detailFromResult,
2425
extractAuthBoolean,
@@ -674,7 +675,7 @@ export const checkClaudeProviderStatus = Effect.fn("checkClaudeProviderStatus")(
674675
// ── Auth check + subscription detection ────────────────────────────
675676

676677
const authProbe = yield* runClaudeCommand(["auth", "status"]).pipe(
677-
Effect.timeoutOption(DEFAULT_TIMEOUT_MS),
678+
Effect.timeoutOption(AUTH_PROBE_TIMEOUT_MS),
678679
Effect.result,
679680
);
680681

apps/server/src/provider/providerSnapshot.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import { normalizeModelSlug } from "@t3tools/shared/model";
1313
import { isWindowsCommandNotFound } from "../processRunner.ts";
1414

1515
export const DEFAULT_TIMEOUT_MS = 4_000;
16+
// Auth status checks involve disk/network lookups and can be slow on first run (especially Windows)
17+
export const AUTH_PROBE_TIMEOUT_MS = 10_000;
1618

1719
export interface CommandResult {
1820
readonly stdout: string;

0 commit comments

Comments
 (0)