The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
test(win): die zwei Kinder der Windows-Tests brauchen keine Konsole mehr
David2b21c10e7247
diff --git a/src-tauri/src/commands/bg_tasks.rs b/src-tauri/src/commands/bg_tasks.rsindex 0e259839..88f8a254 100644--- a/src-tauri/src/commands/bg_tasks.rs+++ b/src-tauri/src/commands/bg_tasks.rs@@ -648,16 +648,19 @@ mod tests {// `echo` works on Linux/macOS; PowerShell's `Write-Output` works on// Windows. The spawn path picks the right shell automatically based// on `cfg!(target_os = "windows")`.+ // `echo` is a builtin of cmd and an alias in PowerShell, and a local ping+ // sleeps without needing a console, so the same two commands run under+ // whichever shell the platform default resolves to. The PowerShell-only+ // forms used before (Write-Output, Start-Sleep) came back with exit code 1+ // on the Windows CI runner, where the test process has no console (2.6.8+ // release run, 2026-09-06); the tests are about the registry and its+ // polling, not about one shell's console handling.fn echo_cmd(msg: &str) -> String {- if cfg!(target_os = "windows") {- format!("Write-Output {}", msg)- } else {- format!("echo {}", msg)- }+ format!("echo {}", msg)}fn sleep_cmd_30s() -> &'static str {if cfg!(target_os = "windows") {- "Start-Sleep -Seconds 30"+ "ping -n 31 127.0.0.1"} else {"sleep 30"}diff --git a/src-tauri/src/commands/install/children.rs b/src-tauri/src/commands/install/children.rsindex f825a439..107b598c 100644--- a/src-tauri/src/commands/install/children.rs+++ b/src-tauri/src/commands/install/children.rs@@ -169,11 +169,20 @@ mod tests {// drive the loop directly, with a real child and no Python needed./// A child that will not end on its own inside a test's lifetime.+ ///+ /// On Windows this is `ping`, not `timeout`: `timeout` refuses to run when+ /// its stdin is not a console ("Input redirection is not supported") and+ /// exits at once, which is exactly what happens under a CI runner and made+ /// the cancel test below see a child that had already ended (2.6.8 release+ /// run, 2026-09-06). A local ping with 121 echoes runs for two minutes and+ /// needs no console at all.fn a_child_that_never_ends() -> Child {#[cfg(windows)]let mut cmd = {let mut c = std::process::Command::new("cmd");- c.args(["/C", "timeout", "/T", "120", "/NOBREAK"]);+ c.args(["/C", "ping", "-n", "121", "127.0.0.1"]);+ c.stdout(std::process::Stdio::null());+ c.stdin(std::process::Stdio::null());c};#[cfg(not(windows))]