From eed40bb11af2ffff619351c52498d47b6710e3da Mon Sep 17 00:00:00 2001 From: Menghuan1918 Date: Tue, 25 Aug 2026 11:15:16 +0800 Subject: [PATCH] fix(git): raise the discovery probe timeout to 5s (#369) 3s was tight for cold caches on large home directories; 5s still bounds a stalled mount well below the 30s command budget while cutting false negatives on slow-but-healthy checkouts. --- src/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git.ts b/src/git.ts index 7897d43..9b9f151 100644 --- a/src/git.ts +++ b/src/git.ts @@ -195,7 +195,7 @@ const DISCOVERY_LIMIT = 200 /** Per-probe and direct-discovery budget. `rev-parse` is millisecond-scale on * a healthy checkout; a probe that needs longer is a stalled mount and is * better abandoned than waited on. */ -const DISCOVERY_TIMEOUT_MS = 3_000 +const DISCOVERY_TIMEOUT_MS = 5_000 /** Discovery results are cheap to recompute but expensive to storm: the panel * polls every 2s and each poll fans out into several git.* calls that all * resolve the same roots. A short TTL keeps fan-out at one scan per cwd. */