Repository navigation
Commit 593440d
fix(vcs): give
Every git command runs under DEFAULT_TIMEOUT_MS (30s). `git worktree add`
checks out the full tree, so on large repositories it legitimately takes
longer than that — e.g. a repo with ~375k files takes ~40s on an idle
machine (measured: `worktree add --no-checkout` is ~0.05s, writing the
files is the cost). The result is that creating a new worktree fails
deterministically with "Git command timed out", which surfaces as every
new-chat worktree spawn erroring out in that project.
Give createWorktree a dedicated 5-minute timeout. This keeps a bound on a
genuinely hung git while allowing large-but-healthy checkouts to finish.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>git worktree add a longer timeout on large repos1 parent e321667 commit 593440d
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
2761 | 2765 | | |
2762 | 2766 | | |
2763 | 2767 | | |
| 2768 | + | |
2764 | 2769 | | |
2765 | 2770 | | |
2766 | 2771 | | |
| |||
0 commit comments