Before submitting
Area
apps/server
Steps to reproduce
- Add a repository whose
git fetch origin takes longer than 30 seconds, for example a large or stale monorepo with many remote refs.
- Configure new threads to use New worktree with Start from origin enabled.
- Start a new chat/thread.
- Wait while T3 prepares the worktree.
This was reproduced with a remote advertising about 1,503 heads and 10,494 tags. Basic authentication and connectivity were healthy: a targeted git ls-remote completed in 1.61 seconds.
Expected behavior
T3 should allow the fetch to complete and then create the worktree. A long-running network Git operation should not fail solely because it exceeds a fixed 30-second budget. Ideally the operation should provide progress/cancellation, or use a configurable timeout.
Actual behavior
Thread/worktree creation fails after almost exactly 30 seconds:
Git command failed in GitVcsDriver.fetchRemote (<repo>): Git command timed out.
The installed implementation has a default Git timeout of 30,000 ms. fetchRemote runs git fetch --quiet <remote> without overriding that default.
Running the same command directly, without T3's deadline, completed successfully in 64.90 seconds. Immediately afterward, the identical fetch took 2.73 seconds. Repeated T3 attempts had left 56 incomplete tmp_pack_* files totaling about 199 MB, consistent with Git being terminated mid-download before it could install the pack.
This creates a retry loop: every new-thread attempt downloads part of the pack, gets terminated at 30 seconds, and has to begin the catch-up again.
Impact
Major degradation or frequent failure
Version or commit
t3@0.0.41-nightly.20260908.1400
Environment
macOS 26.6.1 (arm64), Node.js 26.4.0, Apple Git 2.50.1, HTTPS GitHub remote, Codex app-server provider.
Logs or stack traces
GitVcsDriver.fetchRemote
durationMs: 30011.46
outcome: Failure
cause: GitCommandError: Git command failed in GitVcsDriver.fetchRemote (<repo>): Git command timed out.
$ time git ls-remote --heads origin refs/heads/<base-branch>
real 1.61
exit 0
$ time git fetch --quiet origin
real 64.90
exit 0
$ time git fetch --quiet origin
real 2.73
exit 0
Workaround
Run the full fetch manually outside T3 and allow it to finish, then retry creating the thread:
git -C <repo> fetch origin
This unblocked the affected repository because subsequent incremental fetches fit within 30 seconds.
Related issues
Suggested direction
Consider running remote fetches with timeoutMs: null, as push operations already do, or use a substantially larger/configurable timeout. Fetching only the selected branch with --no-tags could also avoid downloading and negotiating unrelated refs during worktree bootstrap.
Before submitting
Area
apps/server
Steps to reproduce
git fetch origintakes longer than 30 seconds, for example a large or stale monorepo with many remote refs.This was reproduced with a remote advertising about 1,503 heads and 10,494 tags. Basic authentication and connectivity were healthy: a targeted
git ls-remotecompleted in 1.61 seconds.Expected behavior
T3 should allow the fetch to complete and then create the worktree. A long-running network Git operation should not fail solely because it exceeds a fixed 30-second budget. Ideally the operation should provide progress/cancellation, or use a configurable timeout.
Actual behavior
Thread/worktree creation fails after almost exactly 30 seconds:
The installed implementation has a default Git timeout of 30,000 ms.
fetchRemoterunsgit fetch --quiet <remote>without overriding that default.Running the same command directly, without T3's deadline, completed successfully in 64.90 seconds. Immediately afterward, the identical fetch took 2.73 seconds. Repeated T3 attempts had left 56 incomplete
tmp_pack_*files totaling about 199 MB, consistent with Git being terminated mid-download before it could install the pack.This creates a retry loop: every new-thread attempt downloads part of the pack, gets terminated at 30 seconds, and has to begin the catch-up again.
Impact
Major degradation or frequent failure
Version or commit
t3@0.0.41-nightly.20260908.1400Environment
macOS 26.6.1 (arm64), Node.js 26.4.0, Apple Git 2.50.1, HTTPS GitHub remote, Codex app-server provider.
Logs or stack traces
Workaround
Run the full fetch manually outside T3 and allow it to finish, then retry creating the thread:
This unblocked the affected repository because subsequent incremental fetches fit within 30 seconds.
Related issues
git clone; this issue concernsGitVcsDriver.fetchRemoteduring new-worktree thread creation.originselection and missing progress.fetchRemotetimeout itself.Suggested direction
Consider running remote fetches with
timeoutMs: null, as push operations already do, or use a substantially larger/configurable timeout. Fetching only the selected branch with--no-tagscould also avoid downloading and negotiating unrelated refs during worktree bootstrap.