phantom stop shells out to kill to terminate the proxy daemon. Windows has no kill command.
Location
phantom-cli/src/commands/stop.rs:21
Fix
Gate the existing Unix code with #[cfg(unix)]. Add a #[cfg(windows)] path using taskkill:
#[cfg(windows)]
Command::new("taskkill").args(["/PID", &pid.to_string(), "/F"]).status()?;
Alternative: use the sysinfo crate for a pure-Rust solution that works on both platforms.
Severity
Blocker — phantom stop fails on Windows.
Tracker: #1
phantom stopshells out tokillto terminate the proxy daemon. Windows has nokillcommand.Location
phantom-cli/src/commands/stop.rs:21Fix
Gate the existing Unix code with
#[cfg(unix)]. Add a#[cfg(windows)]path usingtaskkill:Alternative: use the
sysinfocrate for a pure-Rust solution that works on both platforms.Severity
Blocker —
phantom stopfails on Windows.Tracker: #1