From 6e4d903a8e1b3d9bfcffff4b69f75890a72aef95 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Tue, 30 Sep 2025 17:05:34 +0100 Subject: [PATCH] fix(coderd): increase task notification dedupe bypass timestamp to 1 minute (#20043) --- coderd/workspaceagents.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coderd/workspaceagents.go b/coderd/workspaceagents.go index 4a411749a7..eddd6510b6 100644 --- a/coderd/workspaceagents.go +++ b/coderd/workspaceagents.go @@ -494,10 +494,10 @@ func (api *API) enqueueAITaskStateNotification( "workspace": workspace.Name, }, map[string]any{ - // Use a 10-second bucketed timestamp to bypass per-day dedupe, + // Use a 1-minute bucketed timestamp to bypass per-day dedupe, // allowing identical content to resend within the same day // (but not more than once every 10s). - "dedupe_bypass_ts": api.Clock.Now().UTC().Truncate(10 * time.Second), + "dedupe_bypass_ts": api.Clock.Now().UTC().Truncate(time.Minute), }, "api-workspace-agent-app-status", // Associate this notification with related entities