Skip to content

fix(server): t3 uninstall no longer flashes a console window on Windows - #45189

Merged
juliusmarminge merged 2 commits into
pingdotgg:mainfrom
theobinomy:fix/uninstall-console-window
Nov 29, 2026
Merged

juliusmarminge merged 2 commits into
pingdotgg:mainfrom
theobinomy:fix/uninstall-console-window

Conversation

@theobinomy

Copy link
Copy Markdown
Contributor

Problem

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.

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.

Claude Sonnet 5.5, Claude Code.

🤖 Generated with Claude Code

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>
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

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.

Changes: Windows cleanup

Layer / File(s) Summary
Headless removal command
apps/server/src/cli/uninstall.ts, apps/server/src/cli/uninstall.test.ts
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.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Suggested reviewers: juliusmarminge, iamshadmantaqi

Merge Risk: Minimal · previous review 1b141

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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
Recent review info

Run configuration

Commits

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.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 28, 2026
…-window

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@juliusmarminge
juliusmarminge force-pushed the fix/uninstall-console-window branch from 85f04fa to b6a049a Compare November 28, 2026 23:28
@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

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.

Before After
5a591e0321 b6a049ae6d
Recording: ping console opens around 26 seconds Recording: cleanup completes without a ping console

Shared reproduction driver · CLI output, visible-window logs, and filesystem observations

Not shown:

  • Windows 11 itself: the available Windows pool runs Server 2025; the triage configuration reproduced there.
  • Packaged t3.exe: both sides ran the real source CLI through Node, matching triage.
  • Classic console host as default: verification used Windows Terminal as default.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 29, 2026
@juliusmarminge
juliusmarminge merged commit 7ebfa8a into pingdotgg:main Nov 29, 2026
20 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants