From 550f6dd0e2e76afcc88d2d950671e5945a714366 Mon Sep 17 00:00:00 2001 From: LaZzyMan Date: Wed, 8 Jul 2026 13:55:30 +0800 Subject: [PATCH] fix(cua-driver): correct cua-driver-uia.exe process name in install.ps1 The UIA helper binary ships as cua-driver-uia.exe in release tarballs (not qwen-prefixed), so taskkill and Get-Process must use the actual binary name. --- packages/cua-driver/scripts/install.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/cua-driver/scripts/install.ps1 b/packages/cua-driver/scripts/install.ps1 index 1bc456bda0..459cae2293 100644 --- a/packages/cua-driver/scripts/install.ps1 +++ b/packages/cua-driver/scripts/install.ps1 @@ -982,11 +982,11 @@ function Remove-LegacyInstall { # Force-kill via taskkill — handles High-IL processes that # Stop-Process can't touch from a Medium-IL caller. & taskkill.exe /F /IM "qwen-cua-driver.exe" /T 2>$null | Out-Null - & taskkill.exe /F /IM "qwen-cua-driver-uia.exe" /T 2>$null | Out-Null + & taskkill.exe /F /IM "cua-driver-uia.exe" /T 2>$null | Out-Null } finally { $ErrorActionPreference = $prevEAP } - $procs = Get-Process -Name "qwen-cua-driver","qwen-cua-driver-uia" -ErrorAction SilentlyContinue + $procs = Get-Process -Name "qwen-cua-driver","cua-driver-uia" -ErrorAction SilentlyContinue if ($procs) { foreach ($p in $procs) { try { Stop-Process -Id $p.Id -Force -ErrorAction SilentlyContinue } catch {} @@ -1225,7 +1225,7 @@ else { } } -# Kill any qwen-cua-driver / qwen-cua-driver-uia process still running off the +# Kill any qwen-cua-driver / cua-driver-uia process still running off the # OLD binary, so the next time the daemon is invoked (autostart kick, # manual `qwen-cua-driver mcp`, MCP client startup) it picks up the freshly- # installed code. Without this, in-memory daemons keep serving old