From f9dd96269e207a67230817bef5876878253afb02 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Fri, 29 May 2026 11:57:15 +0200 Subject: [PATCH] collect: revert last_broadcast to snapshot, not payload Diffs should always be computed against the last full snapshot, not the last broadcast payload. Co-Authored-By: Claude Sonnet 4.6 --- server/collect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/collect.py b/server/collect.py index a03cbbf..d539781 100644 --- a/server/collect.py +++ b/server/collect.py @@ -93,7 +93,7 @@ def run(args: argparse.Namespace) -> None: payload = jay_diff_full(last_broadcast, snapshot, combine_upd_add=True) else: payload = snapshot - last_broadcast = payload + last_broadcast = snapshot network.broadcast(payload, push_clients, push_lock) log.info("Record #%d saved at %s", len(store["records"]), snapshot["ts"]) except KeyboardInterrupt: