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

Co-authored-by: Heinz Gericke <[email protected]>
This commit is contained in:
Heinz-GandHeinz Gericke authored and GitHub committed 2026-04-22 01:04:50 +00:00
1 parent b7c89cf496
commit b8305afa29
2 files changed
+4 -1

No files matched your search

@@ -19,6 +19,7 @@ import {
import {
buildServerProvider,
AUTH_PROBE_TIMEOUT_MS,
DEFAULT_TIMEOUT_MS,
detailFromResult,
extractAuthBoolean,
@@ -674,7 +675,7 @@ export const checkClaudeProviderStatus = Effect.fn("checkClaudeProviderStatus")(
// ── Auth check + subscription detection ────────────────────────────
const authProbe = yield* runClaudeCommand(["auth", "status"]).pipe(
Effect.timeoutOption(DEFAULT_TIMEOUT_MS),
Effect.timeoutOption(AUTH_PROBE_TIMEOUT_MS),
Effect.result,
);
@@ -13,6 +13,8 @@ import { normalizeModelSlug } from "@t3tools/shared/model";
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 {
readonly stdout: string;