diff --git a/apps/server/src/vcs/VcsProcess.ts b/apps/server/src/vcs/VcsProcess.ts index 28b46c8c54..17796d7075 100644 --- a/apps/server/src/vcs/VcsProcess.ts +++ b/apps/server/src/vcs/VcsProcess.ts @@ -67,7 +67,7 @@ const DEFAULT_MAX_OUTPUT_BYTES = 1_000_000; const OUTPUT_TRUNCATED_MARKER = "\n\n[truncated]"; const VCS_PROCESS_CONCURRENCY = 8; // Forge CLIs can take seconds per call; cap them together so git, checkpoints included, keeps slots. -const NON_GIT_PROCESS_CONCURRENCY = VCS_PROCESS_CONCURRENCY / 2; +const NON_GIT_PROCESS_CONCURRENCY = Number(process.env.T3_PROBE_NON_GIT ?? VCS_PROCESS_CONCURRENCY / 2); /** Background non-git calls, such as the pull request sync sweep's, leave one slot for the rest. */ export const Background = Context.Reference("t3/vcs/VcsProcess/Background", { @@ -401,7 +401,7 @@ export const make = Effect.gen(function* () { }); const run = Effect.fn("VcsProcess.run")(function* (input: VcsProcessInput) { - const bounded = vcsProcesses.withPermits(1)(runUnbounded(input)); + const bounded = vcsProcesses.withPermits(1)(Effect.suspend(() => { (globalThis as any).__probeSpawn?.(input); return runUnbounded(input); })); if ( input.command === "git" && input.operation === CHECKPOINT_CAPTURE_OPERATION &&