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
fix(app): quitting on macOS actually stops the child processes
purplefe55d5bc2f72
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rsindex d03ab54f..1082a9d2 100644--- a/src-tauri/src/main.rs+++ b/src-tauri/src/main.rs@@ -404,8 +404,23 @@ fn main() {Ok(())})- .run(tauri::generate_context!())- .expect("error while running tauri application");+ .build(tauri::generate_context!())+ .expect("error while running tauri application")+ .run(|app, event| {+ // Every quit path ends here, including the ones nothing else+ // covered: Cmd+Q, the Apple menu, an `osascript quit`, a logout.+ // Only the tray's Quit item and the `exit_app` command called+ // shutdown_subprocesses; macOS quits fell through to `Drop for+ // AppState`, which Tauri v2 does not reliably run — so a normal+ // Cmd+Q left Ollama, ComfyUI, llama-server, the embeddings+ // server, the trainer and the MLX sidecar all running. Proved+ // live on 2026-07-28: app gone, the MLX Python still resident.+ if let tauri::RunEvent::Exit = event {+ if let Some(state) = app.try_state::<AppState>() {+ state.shutdown_subprocesses();+ }+ }+ });}#[cfg(test)]