From ac7cacd6875197067d0cb06c6c5cf6d3f5a107c0 Mon Sep 17 00:00:00 2001 From: Christoph Brandau Date: Mon, 10 Aug 2026 17:29:03 +0200 Subject: [PATCH] feat(telemetry): handle application shutdown process This update introduces a structured shutdown process for the application. It ensures that background tasks are properly terminated and telemetry is notified when the frontend is shutting down, preventing any ongoing operations from continuing during this state. - Added event listeners to manage app shutdown events - Implemented a shutdown handler to clear timers and notify telemetry - Updated background task checks to respect the shutdown state --- src/App.svelte | 43 ++++++++++++++++++++++++++++++++++--------- src/lib/telemetry.ts | 8 ++++++++ 2 files changed, 42 insertions(+), 9 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index c554e42..f91302b 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,9 +1,11 @@