From 9daa32894197a91fd3444c990cc95dc3d419ac32 Mon Sep 17 00:00:00 2001 From: Thomas Marchand Date: Fri, 16 Jan 2026 15:58:45 +0000 Subject: [PATCH] Fix update process: reset repo before checkout and ensure SSE flush - Add git reset --hard HEAD before checkout to prevent local changes blocking updates - Add git clean -fd to remove untracked files that might interfere - Add 100ms delay before restart to ensure the "restarting" SSE event is flushed --- src/api/system.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/api/system.rs b/src/api/system.rs index 2b160d6..7bf92f3 100644 --- a/src/api/system.rs +++ b/src/api/system.rs @@ -505,6 +505,20 @@ fn stream_open_agent_update() -> impl Stream impl Stream