tiletopia/src-tauri/src
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
..
commands.rs Phase 2: drag-/right-click-a-pane-to-new-window 2026-05-28 18:57:31 +01:00
creds.rs Save SSH passwords in Windows Credential Manager and auto-type at prompt 2026-05-25 20:08:31 +01:00
hosts.rs MCP v2 PR-4: add_host + delete_host + extraArgs sanitiser + third SSH safeguard 2026-05-26 16:04:14 +01:00
lib.rs Fix: closing any window killed all (tokio::spawn panic on close path) 2026-05-30 01:09:46 +01:00
main.rs Initial scaffold from M1 spike (tiletopia) 2026-05-22 12:31:29 +01:00
mcp.rs Clear cargo warnings: drop v2.1 classifier scaffold, annotate tool_router 2026-05-26 18:59:04 +01:00
mcp_policy.rs Clear cargo warnings: drop v2.1 classifier scaffold, annotate tool_router 2026-05-26 18:59:04 +01:00
pty.rs Shelve the per-pane context indicator (keep narrow-toolbar fix) 2026-05-28 23:47:06 +01:00
window_state.rs Fix: closing any window killed all (tokio::spawn panic on close path) 2026-05-30 01:09:46 +01:00