From 20665b023c5dcf13c01b692711568393cb1cdb61 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 1 Dec 2025 18:09:09 -0500 Subject: Fix Recent Activity duplicating tasks on refresh Changed taskToUnixTs from round to ceiling to prevent sub-second timing issues where a task updated at e.g. 10:00:00.3 would round down to 10:00:00, causing the next poll with since=10:00:00 to include it again. Task-Id: t-221 --- Omni/Jr/Web.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Omni/Jr') diff --git a/Omni/Jr/Web.hs b/Omni/Jr/Web.hs index 6a2d826..2a10cb5 100644 --- a/Omni/Jr/Web.hs +++ b/Omni/Jr/Web.hs @@ -3093,7 +3093,7 @@ server = Just sid -> liftIO (streamAgentEvents tid sid) taskToUnixTs :: TaskCore.Task -> Int -taskToUnixTs t = round (utcTimeToPOSIXSeconds (TaskCore.taskUpdatedAt t)) +taskToUnixTs t = ceiling (utcTimeToPOSIXSeconds (TaskCore.taskUpdatedAt t)) getReviewInfo :: Text -> IO ReviewInfo getReviewInfo tid = do -- cgit v1.2.3