File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import {
1919
2020import {
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
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ import { normalizeModelSlug } from "@t3tools/shared/model";
1313import { isWindowsCommandNotFound } from "../processRunner.ts" ;
1414
1515export 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
1719export interface CommandResult {
1820 readonly stdout : string ;
You can’t perform that action at this time.
0 commit comments