tiletopia/src-tauri
megaproxy 9144ba64b6 Fix: closing any window killed all (tokio::spawn panic on close path)
The synchronous on_window_event CloseRequested handler reached
WindowsState::schedule_save -> tokio::spawn, which panics ("no reactor
running") because that callback runs on the main thread with no ambient
Tokio runtime; the unhandled main-thread panic aborted the whole
process, taking every window + PTY down. (push_window_workspaces hit the
same line safely because it's an async tauri::command.)

- window_state.rs: tokio::spawn -> tauri::async_runtime::spawn (global
  runtime, works from any thread). Verified against tauri 2.11 source.
- lib.rs: defensive .build().run() guard — prevent_exit while any window
  remains so no path can orphan live PTYs; close logging warn!->debug!.

Source-verified; pending Windows runtime test.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-30 01:09:46 +01:00
..
capabilities Fix detached-window IPC scoping and pane-transfer session loss 2026-05-28 19:46:30 +01:00
icons M5 ship infrastructure: icon, version, release script, README 2026-05-22 13:38:29 +01:00
src Fix: closing any window killed all (tokio::spawn panic on close path) 2026-05-30 01:09:46 +01:00
build.rs Initial scaffold from M1 spike (tiletopia) 2026-05-22 12:31:29 +01:00
Cargo.lock Bump version to 0.4.0 2026-05-28 20:36:22 +01:00
Cargo.toml Bump version to 0.4.0 2026-05-28 20:36:22 +01:00
tauri.conf.json Bump version to 0.4.0 2026-05-28 20:36:22 +01:00