From 6cbe1fb2618af557262a8717c494e7958494bf2d Mon Sep 17 00:00:00 2001
From: Matthias Nott <mnott@mnsoft.org>
Date: Sun, 08 Mar 2026 07:03:30 +0100
Subject: [PATCH] fix: robust WebSocket reconnection after daemon restart

---
 contexts/ConnectionContext.tsx |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/contexts/ConnectionContext.tsx b/contexts/ConnectionContext.tsx
index 6734d9c..f1fab69 100644
--- a/contexts/ConnectionContext.tsx
+++ b/contexts/ConnectionContext.tsx
@@ -52,6 +52,7 @@
     wsClient.setCallbacks({
       onOpen: () => setStatus("connected"),
       onClose: () => setStatus("disconnected"),
+      onReconnecting: () => setStatus("reconnecting"),
       onError: () => setStatus("disconnected"),
       onMessage: (data) => {
         const msg = data as unknown as WsIncoming;

--
Gitblit v1.3.1