GeezerVison is showing github.com — fix(server): Windows Git launches no longer block RPC by Sidreyas · Pull Request #32234 · pingdotgg/t3code
Conversation
Sidreyas
commented
Nov 6, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
Fixes #25245. On Windows, synchronous native process creation inside child_process.spawn() can block the server's RPC loop during a slow Git launch. The native barrier regression reproduces this without assuming which OS or antivirus component caused a reporter's delay.
Change
Use a Windows-only worker boundary for ProcessRunner and the direct GitVcsDriverCore launch path. Each active command owns its worker; one idle worker can be reused. Transferred Web Streams retain backpressure, stdin/stdout/stderr, exit status and environment semantics. Other platforms retain their existing spawner.
Cancellation records intent even while native creation is blocked. Cleanup terminates the owned Windows process tree and waits for actual child exit before releasing its worker. The caller's cleanup wait is bounded to one second: expiration keeps the job registered and its worker referenced, unavailable for reuse and responsible for cleanup. Only the actual release can idle or stop the worker. If the pool closes first, later release stops that worker normally. A process the OS never terminates remains cleanup-owned.
The probe fixture also rejects every pending milestone on worker error or unexpected exit, observes cancellation request failures, and retains its barrier-release and shutdown cleanup.
Scope and approval
This is one server responsiveness fix under the focused reliability-fix exception. No client contracts, provider instructions or workflows change. Web, desktop and remote clients share the server service paths. Related PRs #30209 and #30238 were compared by source diff: their native-creation work is Linux-specific; this change does not depend on them.
Macroscope's human approval requirement remains pending. Native imports implement the worker boundary or its independent native test controllers; the message-origin lint exceptions apply to Node worker ports. The diagnostic exceptions retain explicit reasons and the checks remain enabled. The new one-line globalTimers exception covers the native Promise adapter timer: only the caller wait expires, while cleanup remains outside the interrupted Effect scope.
Verification
Validated source: df3b2c4469af04dabac3f8a174c5c5f0bf10e896.
Final-source local verification on Windows with Node 26.12.1:
-
Original responsiveness baseline: the production ProcessRunner probe returned serverThread=true / gateClosed=false before the worker boundary, instead of false / true. The controller releases the native gate to recover the baseline without a performance threshold.
-
Review-fix baseline at fec5770 with the extended fixtures: normal tree cleanup passed; held taskkill and failed fallback left Effect interruption pending after advancing the cleanup clock. A probe worker failure before disposing stranded cancellation until the existing project test ceiling and produced an unhandled socket reset. No test timeout, sleep, retry or new platform skip was added.
-
The final four-file Windows selection includes the two process regression files, processRunner.test.ts and process/windowsProcessWorker.test.ts: 19/19 passed. Covers real concurrent streams, backpressure, environment inheritance/replacement/removal, missing executables, creation cancellation, worker error/exit at both cancellation milestones, retained live-child ownership, separate workers while cleanup is pending, actual descendant termination, late reuse and pool closure.
-
Fresh isolated production CLI/RPC E2E with a temporary Git repository and home, using the real server and native creation gate: passed, and the captured server exited normally. All five production module hashes match this source. The worker module SHA-256 is bf0350afc93355775e4ef11a25e94d7044357b9f627aafb639cdeff01cc4e793. Safe transcript:
Native creation blocked: serverThread=false
server.probe: Success while the creation gate remained closed
Release gate -> vcs.refreshStatus: Success
Captured server stopped normally
No live userdata, paid provider turns or client origin overrides were used. Packaged Electron was not separately exercised.
-
vp run check:changed --concurrency 1 was attempted for the 10-file scope, but stalled before stages in the known Windows ignored-input/junction scan (perf(scripts): check:changed on Windows no longer spends minutes walking node_modules (2,500 s → 5.0 s) #32023). Only the retained process tree was stopped. All selected static equivalents passed: format, lint, both Knip scans, server GraphQL generation, and all three affected package typechecks (server, scripts and evals). Exact commands and logs are preserved; no cache or check configuration was changed. Heavy stages ran serially with RAYON_NUM_THREADS=1 and supported KNIP_DISABLE_RAW_TRANSFER=1.
-
Full selected Windows run: 247 passed, 8 failed, 4 existing platform skips; all failures are the same unchanged Git fixture cases. The eight unchanged Git fixture failures were previously reproduced on unchanged b90e554: five shell-only fake-SSH cases, a Windows-invalid filename, a trailing-space directory and a separator-dependent assertion. Their tests and assertions remain intact.
-
Fresh independent Linux container, official node:26.12.1-bookworm, owning-package dependencies installed from the frozen lockfile, with source/test/lock/config hashes verified: 248 passed, 11 Windows-only cases skipped; all 238 Git cases passed; the new container was stopped after verification. Command: vp test run --maxWorkers=1 --passWithNoTests src/processRunner.test.ts src/process/windowsProcessWorker.test.ts src/vcs/GitVcsDriverCore.test.ts src/provider/AgentContextBudget.test.ts. This run verifies the new source; the earlier 13-test Windows and 248-test Linux reports belong to fec5770.
Implemented with OpenAI GPT-6 via the Codex harness.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Needs Human Approval
Macroscope's review found this PR requires human approval — Windows process launches move into workers to keep RPC responsive. The new file-level lint and Effect diagnostic suppressions require human review to confirm their scope and justification.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 6, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
Adds a Windows process-worker pool and routes process and Git spawning through it when the Windows-specific service is available. Windows-only tests cover process creation, cancellation, streams, and cleanup.
Changes: Windows process spawning
| Layer / File(s) |
Summary |
Worker pool and child lifecycle apps/server/src/process/windowsProcessWorker.ts, apps/server/src/process/windowsProcessWorker.test.ts, apps/server/src/process/processCleanup.test-fixture.ts |
Adds a worker pool that spawns child processes, transfers streams, cleans up process trees, and reuses workers. Windows-only tests cover environment options, concurrent I/O, spawn errors, and descendant cleanup. |
Windows spawn service apps/server/src/process/WindowsSpawn.ts |
Adds a Windows-specific spawn service that starts pooled jobs, maps spawn errors, exposes streams and exit status, and disposes jobs with the layer scope. |
Process and Git spawn routing apps/server/src/processRunner.ts, apps/server/src/vcs/GitVcsDriverCore.ts, apps/server/src/server.ts |
ProcessRunner and Git VCS commands use the Windows spawn function when available and otherwise use the existing spawner. The server provides the Windows spawn layer with its platform services. |
Process-creation regression tests apps/server/src/process/processCreation.test-fixture.ts, apps/server/src/process/processCreationProbe.ts, apps/server/src/processRunner.test.ts |
Adds a worker fixture and probe for blocked process creation, server responsiveness, and cancellation. Windows-only ProcessRunner tests exercise these scenarios. |
Estimated code review effort: 4 (Complex) | ~45 minutes
Change: Bug fix · Severity of issue fixed: High
Sequence Diagram(s)
sequenceDiagram
participant ProcessRunner
participant GitVcsDriverCore
participant WindowsSpawn
participant windowsProcessWorker
participant ChildProcess
ProcessRunner->>WindowsSpawn: Select Windows spawn function when available
GitVcsDriverCore->>WindowsSpawn: Select Windows spawn function when available
WindowsSpawn->>windowsProcessWorker: Start pooled job
windowsProcessWorker->>ChildProcess: Spawn command with options
ChildProcess-->>windowsProcessWorker: Return streams and exit status
windowsProcessWorker-->>WindowsSpawn: Transfer streams and exit status
Loading
Suggested reviewers: yash-singh1, maria-rcks
Merge Risk: Minimal · up to f315b
-
No code issue identified here blocks merging. The reported human approval remains pending.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly identifies the Windows Git launch responsiveness fix, which is the pull request’s main change. |
| Description check |
 |
The description includes the required Problem, Change, Scope and approval, and Verification sections. It explains the issue, implementation, scope, and test results, and notes that human approval rema… |
| Linked Issues check |
 |
[#25245] The PR routes Windows process creation for both ProcessRunner and GitVcsDriverCore through WindowsSpawn, while other platforms retain the existing spawner. This moves native creation off the … |
| Out of Scope Changes check |
 |
The worker pool, server wiring, process lifecycle handling, and regression fixtures directly support [#25245]. The reported changes do not identify unrelated product behavior or client contract change… |
Full details: Description check
-
Explanation
The description includes the required Problem, Change, Scope and approval, and Verification sections. It explains the issue, implementation, scope, and test results, and notes that human approval remains pending.
Full details: Linked Issues check
-
Explanation
[#25245] The PR routes Windows process creation for both ProcessRunner and GitVcsDriverCore through WindowsSpawn, while other platforms retain the existing spawner. This moves native creation off the server event loop for the reported Git launch paths. The Windows regression tests cover responsiveness while creation is blocked, and the process tests cover stream, environment, cancellation, and cleanup behavior. The reported production CLI/RPC probe also passed while the native creation gate remained closed. No linked coding requirement remains unmet.
Full details: Out of Scope Changes check
-
Explanation
The worker pool, server wiring, process lifecycle handling, and regression fixtures directly support [#25245]. The reported changes do not identify unrelated product behavior or client contract changes.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between df3b2c4 and f315b99.
Files selected for processing: 2
-
apps/server/src/server.ts
apps/server/src/vcs/GitVcsDriverCore.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
The two cancellation findings are fixed in df3b2c4, and the subsequent production Git-layer concern was withdrawn after checking the server composition. All inline threads are resolved; current checks show 22 successful and 8 skipped. Final-source verification includes 19 Windows process regressions, the isolated Windows CLI/WebSocket Git-responsiveness E2E, and 248 Linux tests. Eight Windows Git-fixture failures reproduce on the unchanged baseline and are documented in the PR.
Could a maintainer review the scope and justification of the native worker lint/Effect diagnostic exceptions flagged by Macroscope? That human approval remains outstanding; the passing checks and technical reviews do not substitute for it.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…ndows-spawn-worker
# Conflicts:
# apps/server/src/vcs/GitVcsDriverCore.ts
Note Written by claude-opus-5-5 on behalf of Maria
Merged current main (merge commit, no rebase). The only conflict was in GitVcsDriverCore.ts: kept the PR's WindowsSpawn lookup and main's new worktreeCheckoutCacheDir destructure. No other source changes.
vp run check:changed passes on the merge: format, lint, knip, typecheck (3 packages), and 255 tests (11 Windows-only skipped on Linux).
The open changes-requested review (direct Git path not receiving WindowsSpawn) does not apply at this head: WindowsSpawn.layer is in layerPlatformServices (server.ts near line 382) via provideMerge, and that layer is provided to the whole app graph near line 1227, so makeGitVcsDriverCore resolves the reference. That review still needs to be dismissed or re-reviewed, along with the Macroscope human approval.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks for this. https://git.cafe/pingdotgg/t3code/pulls/32260 makes the same change and is the one being kept: Keep #32260 as the more complete implementation of #25245. Its shared Effect spawner covers both Git paths addressed here and additional Effect-based process launches, including off-thread taskkill. At the inspected head, GitCafe reports no merge conflicts and 32 successful checks, with none pending or failing. Its native-boundary approval questions remain for human review. This PR contains useful cancellation and cleanup coverage, but maintaining two competing Windows launch implementations would duplicate the same fix. Main still lacks either implementation; the related Linux launch and Windows executable-discovery PRs do not replace this functionality.
Closing as a duplicate.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
+1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:XL
500-999 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|