Repository navigation
fix(server): Windows uninstall cleanup runs from System32 - #41967
Conversation
The detached shell that removes the runtime directory after t3 exits now starts in System32 and runs ping.exe by its full path, so the cleanup behaves the same whatever directory `t3 uninstall` is run from. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
On Windows,
t3 uninstallhands the runtime directory to a detachedcmd.exethat waits a moment and removes it oncet3has exited. That shell inherited the directory the command was run from and lookedpingup by name.It now starts in System32 and runs
ping.exeby its full path, the same way the other Windows system tools in the server are run (windowsSystem32Path). The cleanup behaves the same whatever directoryt3 uninstallis run from, and no longer keeps that directory open while it waits.spawnWindowsRemovaltakes the host environment instead of a resolvedComSpec, so the shell and the tool are resolved in one place.Testing
uninstall.test.ts: the existing cleanup-shell case now also checks the command line, working directory and environment the shell is started with (fails onmain).ping.cmdand checks it stays unused while the runtime directory is removed. It is skipped on Linux; run it withgh workflow run windows-tests.yml --ref t3code/uninstall-system-tools -f package=apps/server -f files="src/cli/uninstall.test.ts".vp run check:changedpasses.Claude Fable 5.2 via Claude Code.
🤖 Generated with Claude Code