Commit Graph

8 Commits (6e3e8b072bbb08d786d2c4ebf9a3ea6e5386fbb5)

Author SHA1 Message Date
zanllp b408d253a1 fix(tauri): ensure sidecar process is killed when app window is closed
Previously, the app only sent an HTTP shutdown request to the Python
sidecar with no timeout and no fallback. If the request failed, the
sidecar process became orphaned, causing memory leaks.

- Add 3-second timeout to the HTTP shutdown request
- Add fallback to force-kill the sidecar by PID (taskkill /F /T on
  Windows, kill -9 on Unix) after HTTP shutdown attempt
- Store child PID in AppState for use in both window close handler
  and Tauri command shutdown

Fixes #944
2026-04-08 21:06:25 +08:00
zanllp 2f67601ac6 add log 2024-03-22 09:54:21 +08:00
zanllp c5c21167c2 fix: fix open config file error 2024-03-10 05:18:51 +08:00
zanllp 5deacaf9c5 编译下 2024-03-10 02:33:06 +08:00
zanllp eedaa60893 Add build for Linux desktop app version 2023-07-12 16:04:20 +08:00
zanllp 1c75e81be4 Add desktop app version built with Tauri 2023-07-07 10:35:30 +08:00
zanllp 38aff073dd Add a GitHub Action to build the Python backend binary. 2023-07-05 14:36:43 +08:00
zanllp aa4a737422 Add binary build using Tauri framework 2023-07-05 13:59:39 +08:00