You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(server): t3 uninstall no longer flashes a console window on Windows - #45189
On Windows, t3 uninstall opens a console window for about two seconds after the command finishes. The cleanup shell is spawned detached, so it has no console, and windowsHide does not carry over to the ping.exe it starts: Windows gives ping a new, visible console.
Change
Run ping under %SystemRoot%\System32\conhost.exe --headless, through start "" /wait.
start /wait is needed: cmd /c does not wait for conhost.exe, and without it rmdir ran after about 0.1 s, while t3 could still be running.
Scope
A small fix for an obvious bug, so no issue.
Verification
Windows 11 (build 26200), Windows Terminal as the default terminal, Node 26.13.1. A script polled EnumWindows for new visible console windows while the code ran.
New console windows
Runtime folder removed after the parent exited
Before (spawnWindowsRemoval from main)
Windows Terminal window appeared
2.4 to 2.7 s (4 runs)
After (spawnWindowsRemoval)
none (3 runs)
2.1 to 3.5 s (12 runs)
The real command from source, node apps/server/src/bin.ts uninstall --base-dir <temp home> --yes, with the change: no new console window, runtime removed, userdata kept.
The temp path used with spawnWindowsRemoval contained spaces, &, (, ), %, ! and ^.
uninstall.test.ts now expects the new command line. 5 of its 6 tests pass here; claims only a launcher that points into this home's runtime tree fails with EPERM creating a symlink on this machine, and fails the same way without this change.
vp run check:changed (before rebasing onto the latest main): format, lint, knip, graphql and typecheck pass; the only test failure is the symlink one above.
Not checked: the packaged t3.exe, and a machine whose default terminal is the classic console host.
The detached cleanup shell has no console, so ping opened one of its own.
Run ping under headless conhost, and wait for it so the delay is kept.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Reviewing files that changed from the base of the PR and between 1b14112 and b6a049a.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The Windows uninstall cleanup command now runs through a detached, headless conhost.exe. The child environment includes the conhost, ping, and runtime paths. The test checks the command and conhost path.
spawnWindowsRemoval now uses start /wait to run the delayed removal command through headless conhost.exe. The child environment includes the conhost path. The test checks the command and environment.
This change stops a visible console window from appearing during Windows uninstall cleanup, while keeping the cleanup delay and detached behavior. No merge-blocking risk was found. The packaged executable and the classic console host were not tested.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the fix and its user-visible effect: t3 uninstall no longer shows a console window on Windows. It matches the changeset, which runs ping under a headless conhost.exe via start /wait. I…
Description check
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section gives the cause and the symptom. The Change section explains the fix and why start /…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the fix and its user-visible effect: t3 uninstall no longer shows a console window on Windows. It matches the changeset, which runs ping under a headless conhost.exe via start /wait. It uses the conventional commit format and is specific enough for a teammate scanning history.
Full details: Description check
Explanation
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section gives the cause and the symptom. The Change section explains the fix and why start /wait is needed. Scope gives a reason for no linked issue and cites #38043. Verification lists the environment, the measured results, the failing symlink test, and what was not checked. It does not follow the template's comment on agent attribution exactly, but it names the model and harness, so the required information is present.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between e5e6ac0 and 1b14112.
Files selected for processing: 2
apps/server/src/cli/uninstall.test.ts
apps/server/src/cli/uninstall.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Windows Server 2025 build 26100; Windows Terminal 1.25.3131.0 as default console host; 1920×1080 desktop.
On each commit, created fresh runtime and userdata marker files, ran node apps\server\src\bin.ts uninstall --base-dir <disposable home> --yes in a visible cmd window, and recorded the desktop for 40 seconds. Both runs removed runtime and preserved userdata.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:S10-29 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
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.
Problem
On Windows,
t3 uninstallopens a console window for about two seconds after the command finishes. The cleanup shell is spawneddetached, so it has no console, andwindowsHidedoes not carry over to theping.exeit starts: Windows givespinga new, visible console.Change
Run
pingunder%SystemRoot%\System32\conhost.exe --headless, throughstart "" /wait.start /waitis needed:cmd /cdoes not wait forconhost.exe, and without itrmdirran after about 0.1 s, whilet3could still be running.Scope
A small fix for an obvious bug, so no issue.
Verification
Windows 11 (build 26200), Windows Terminal as the default terminal, Node 26.13.1. A script polled
EnumWindowsfor new visible console windows while the code ran.spawnWindowsRemovalfrommain)spawnWindowsRemoval)node apps/server/src/bin.ts uninstall --base-dir <temp home> --yes, with the change: no new console window,runtimeremoved,userdatakept.spawnWindowsRemovalcontained spaces,&,(,),%,!and^.uninstall.test.tsnow expects the new command line. 5 of its 6 tests pass here;claims only a launcher that points into this home's runtime treefails withEPERMcreating a symlink on this machine, and fails the same way without this change.vp run check:changed(before rebasing onto the latestmain): format, lint, knip, graphql and typecheck pass; the only test failure is the symlink one above.Not checked: the packaged
t3.exe, and a machine whose default terminal is the classic console host.Claude Sonnet 5.5, Claude Code.
🤖 Generated with Claude Code