-
fix(desktop): watchdog shutdown must not hard-kill on Windows (#302)
发布于
2026-07-17 00:46:40 +00:00 The desktop parent watchdog used os.kill(os.getpid(), SIGTERM) to stop
the backend, with a comment promising uvicorn's shutdown sequence would
run. On Windows that call is TerminateProcess -- a hard kill that
bypasses every cleanup path, so the promise only held on POSIX.signal.raise_signal(SIGTERM) triggers the in-process Python-level
handler uvicorn installed, with identical semantics on both platforms.Closes #282
Co-authored-by: Thales <>
下载附件