unsloth/studio/src-tauri/src
Daniel Han 4f0cbf0d81
Desktop: ask before quitting on top of a running install (#7550)
* Desktop: ask before quitting on top of a running install

This is the trigger neither #7492 nor #7490 addresses -- both start from a venv
that is already broken. Confirmed: neither PR touches cleanup_child_processes.

Quitting runs cleanup_child_processes -> install::stop_install, which SIGTERMs the
installer's process group. In the reported session that landed at "5/10 studio
deps", so the venv kept the CLI's dependencies and lost the server stack, and the
next launch died on `import structlog`. Three minutes of installing, destroyed
with no warning and no way back.

So ask. Only from the tray Quit item -- a deliberate action with a UI present. The
RunEvent::Exit path (OS shutdown, SIGTERM) is left alone: it must never block on a
dialog nobody can answer. The call already runs off the menu callback thread,
which is also what blocking_show requires.

Closing the window was already safe (it hides to tray); this closes the remaining
way to lose an install by accident.

* Tighten comments in desktop quit-during-install guard

* Condense comments in quit-during-install guard

---------

Co-authored-by: danielhanchen <unslothai@gmail.com>
2026-07-28 18:52:00 -07:00
..
diagnostics Surface actionable installer failures in Studio desktop (#7529) 2026-07-28 10:19:44 +02:00
preflight Studio: run the src-tauri unit tests in CI and fix the two that never ran (#7558) 2026-07-28 07:01:13 -07:00
app_layout.rs Fix Studio desktop reliability (#7255) 2026-07-21 09:51:18 +02:00
commands.rs Fix Studio desktop reliability (#7255) 2026-07-21 09:51:18 +02:00
desktop_auth.rs Replace standalone Studio wording with Unsloth (#7221) 2026-07-19 00:47:04 -07:00
desktop_backend_owner.rs Studio: detect an interrupted dependency install instead of launching a backend that cannot import (#7492) 2026-07-28 10:57:20 +02:00
desktop_update_policy.rs Harden Tauri release flow (#5341) 2026-05-12 20:30:20 -07:00
install.rs Desktop: ask before quitting on top of a running install (#7550) 2026-07-28 18:52:00 -07:00
main.rs Desktop: ask before quitting on top of a running install (#7550) 2026-07-28 18:52:00 -07:00
native_backend_lease.rs Update safe Studio Tauri cargo dependencies (#6612) 2026-06-23 16:15:00 +02:00
native_clipboard.rs Fix image and file paste in Studio desktop (#7543) 2026-07-28 13:46:51 +02:00
native_file_dialogs.rs Studio: run the src-tauri unit tests in CI and fix the two that never ran (#7558) 2026-07-28 07:01:13 -07:00
native_intents.rs Studio: add configurable model download location (#7274) 2026-07-23 01:34:38 -07:00
native_path_policy.rs Fix Studio desktop reliability (#7255) 2026-07-21 09:51:18 +02:00
preflight.rs Studio: detect an interrupted dependency install instead of launching a backend that cannot import (#7492) 2026-07-28 10:57:20 +02:00
process.rs Speed up Studio desktop startup (#6742) 2026-06-29 15:27:39 +02:00
update.rs studio: regenerate desktop launcher on unsloth studio update (macOS + Linux + Windows) (#5577) 2026-05-19 05:49:10 -07:00
windows_job.rs Add tauri (#5144) 2026-04-23 04:50:10 -07:00