@devries-cameron20 / t3code Mirror · read-only / commits / b8305afa29
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 05:00 UTC

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

Co-authored-by: Heinz Gericke <115458264+heinzgericke@users.noreply.github.com>

Heinz-G committed Apr 22, 2026 at 03:04 UTC b8305afa29309e52045987caab91db9b7e481ac0
2 files changed +4 -1
apps/server/src/provider/Layers/ClaudeProvider.ts
+2 -1
@@ -19,6 +19,7 @@ import {
19
20 import {
21 buildServerProvider,
22 + AUTH_PROBE_TIMEOUT_MS,
23 DEFAULT_TIMEOUT_MS,
24 detailFromResult,
25 extractAuthBoolean,
@@ -674,7 +675,7 @@ export const checkClaudeProviderStatus = Effect.fn("checkClaudeProviderStatus")(
675 // ── Auth check + subscription detection ────────────────────────────
676
677 const authProbe = yield* runClaudeCommand(["auth", "status"]).pipe(
677 - Effect.timeoutOption(DEFAULT_TIMEOUT_MS),
678 + Effect.timeoutOption(AUTH_PROBE_TIMEOUT_MS),
679 Effect.result,
680 );
681
apps/server/src/provider/providerSnapshot.ts
+2
@@ -13,6 +13,8 @@ import { normalizeModelSlug } from "@t3tools/shared/model";
13 import { isWindowsCommandNotFound } from "../processRunner.ts";
14
15 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;
18
19 export interface CommandResult {
20 readonly stdout: string;