Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio desktop: trim the quit hide comments (#15760)

Daniel Han18870bf3f306
diff --git a/studio/backend/tests/test_exit_without_finalizing.py b/studio/backend/tests/test_exit_without_finalizing.py
index a4ea87322f8..79d85b221bc 100644
--- a/studio/backend/tests/test_exit_without_finalizing.py
+++ b/studio/backend/tests/test_exit_without_finalizing.py
@@ -40,7 +40,6 @@ def test_threads_then_atexit_hooks_run_and_stdout_is_flushed():
)
assert result.returncode == 0, result.stderr
- # A pipe is block-buffered, so a missing flush drops both lines.
assert result.stdout.endswith("thread finished\natexit hook\n"), result.stdout
assert "unreachable" not in result.stdout
assert "finalized" not in result.stdout, "interpreter finalization ran"
diff --git a/studio/src-tauri/src/main.rs b/studio/src-tauri/src/main.rs
index d1956621396..8792444a5b2 100644
--- a/studio/src-tauri/src/main.rs
+++ b/studio/src-tauri/src/main.rs
@@ -1618,8 +1618,7 @@ fn main_window_needs_hiding(
}
}
-/// The reap takes seconds (~18s worst case on Windows). The hide only lands once the event loop
-/// runs again, so never call this on the main thread right before blocking it.
+/// The hide only lands once the event loop runs again: never call this on the main thread before blocking it.
fn hide_main_window_for_quit(app: &tauri::AppHandle) -> bool {
let hide = main_window_on_screen(app);
// Not get_webview_window: that is None while browser views are children of the window.
@@ -1637,7 +1636,7 @@ fn main_window_on_screen(app: &tauri::AppHandle) -> bool {
})
}
-/// Confirm, hide, reap, in that order; returns whether to exit. Steps injected for the tests.
+/// Confirm, hide, reap, in that order; returns whether to exit.
fn quit_sequence(
confirm: impl Fn() -> bool,
hide: impl FnOnce() -> bool,