From c3b025db261cda5bdd2c4f70548b962055e84509 Mon Sep 17 00:00:00 2001 From: justyannicc Date: Fri, 23 Jan 2026 19:59:00 +0000 Subject: [PATCH] fix: only treat markdown headers (# followed by space) as comments, not #TODO etc --- src/auto-reply/heartbeat.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/auto-reply/heartbeat.ts b/src/auto-reply/heartbeat.ts index 6da804580..2be070727 100644 --- a/src/auto-reply/heartbeat.ts +++ b/src/auto-reply/heartbeat.ts @@ -28,8 +28,9 @@ export function isHeartbeatContentEffectivelyEmpty(content: string | undefined | const trimmed = line.trim(); // Skip empty lines if (!trimmed) continue; - // Skip comment/header lines (markdown headers are comments for our purposes) - if (trimmed.startsWith("#")) continue; + // Skip markdown header lines (# followed by space or alone, ## etc) + // This intentionally does NOT skip lines like "#TODO" or "#hashtag" which might be content + if (/^#+\s*$/.test(trimmed) || /^#+\s/.test(trimmed)) continue; // Found a non-empty, non-comment line - there's actionable content return false; }