From b1961fd362177c742ba6ddef9bd489843580e229 Mon Sep 17 00:00:00 2001 From: Lauren ten Hoor Date: Fri, 13 Feb 2026 10:36:32 +0800 Subject: [PATCH] fix: send Telegram notifications for heartbeat pickups (#139) --- lib/services/heartbeat.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/services/heartbeat.ts b/lib/services/heartbeat.ts index bb2e2f8..6b7d725 100644 --- a/lib/services/heartbeat.ts +++ b/lib/services/heartbeat.ts @@ -18,6 +18,7 @@ import { log as auditLog } from "../audit.js"; import { checkWorkerHealth } from "./health.js"; import { projectTick } from "./tick.js"; import { createProvider } from "../providers/index.js"; +import { notifyTickPickups, getNotificationConfig } from "../notify.js"; // --------------------------------------------------------------------------- // Types @@ -254,6 +255,16 @@ export async function tick(opts: { result.totalPickups += tickResult.pickups.length; result.totalSkipped += tickResult.skipped.length; + + // Notify project group about any pickups + if (tickResult.pickups.length > 0) { + const notifyConfig = getNotificationConfig(pluginConfig); + await notifyTickPickups(tickResult.pickups, { + workspaceDir, + config: notifyConfig, + channel: project.channel, + }); + } if (isProjectActive || tickResult.pickups.length > 0) activeProjects++; }