mirror of
https://github.com/cozystack/cozystack.git
synced 2026-10-29 16:17:20 +09:00
The resourceVersion de-dup filter dropped ADDED events whose RV was <= the requested startingRV. During a sendInitialEvents replay the backing WatchList intentionally re-emits existing objects as initial ADDED events with RV <= startingRV, so the filter broke the initial-state replay. Skip the de-dup while sendInitialEvents is set; it still applies when resuming a plain watch from a resourceVersion. Add a regression test covering sendInitialEvents with a non-zero starting RV. Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>