fix: avoid stale cow.exe on Windows by spawing fresh process

This commit is contained in:
zhayujie
2026-04-08 12:07:18 +08:00
parent cd31dd27fd
commit 9525dc7584
2 changed files with 22 additions and 7 deletions

View File

@@ -453,7 +453,11 @@ function Update-Project {
Assert-Python
Install-Dependencies
Start-CowAgent
# Start via python -m cli.cli instead of cow.exe, because the exe may
# still be cached/locked from the previous installation on Windows.
Write-Cow "Starting CowAgent..."
& $PythonCmd -m cli.cli start
}
# ── main ──────────────────────────────────────────────────────────