From 23a8999e28f3bcccec87c19a55d3c72fe15487c1 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 28 Jul 2025 14:44:47 +0200 Subject: [PATCH] Fix SSE events to include missing gitDeletedCount field The git-watcher was sending incomplete git status updates via SSE, missing the gitDeletedCount field. This caused the UI to lose the deleted files count after receiving real-time updates. Note: gitAddedCount is defined in the Session type but is not computed by the git status utility and remains unused throughout the codebase. --- web/src/server/services/git-watcher.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/server/services/git-watcher.ts b/web/src/server/services/git-watcher.ts index 7d349e4f..1781a639 100644 --- a/web/src/server/services/git-watcher.ts +++ b/web/src/server/services/git-watcher.ts @@ -270,6 +270,7 @@ export class GitWatcher { gitModifiedCount: status.modified, gitUntrackedCount: status.untracked, gitStagedCount: status.staged, + gitDeletedCount: status.deleted, gitAheadCount: status.ahead, gitBehindCount: status.behind, };