From dbfb0b5618581ee3417a37e1b8a664e9c3aeab92 Mon Sep 17 00:00:00 2001 From: Chinar Amrutkar Date: Sat, 4 Apr 2026 10:00:33 +0000 Subject: [PATCH] fix(heartbeat): prevent outer loop from exiting on task field lines The YAML parser's outer loop was exiting the tasks block when it encountered 'interval:' or 'prompt:' lines, causing only the first task to be parsed. Added isTaskField check to skip those lines. Fixes: #3034790131 --- src/auto-reply/heartbeat.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/auto-reply/heartbeat.ts b/src/auto-reply/heartbeat.ts index 2cb54af19df..e2ffa71b6c4 100644 --- a/src/auto-reply/heartbeat.ts +++ b/src/auto-reply/heartbeat.ts @@ -206,7 +206,13 @@ export function parseHeartbeatTasks(content: string): HeartbeatTask[] { } // End of tasks block (either empty line or new top-level content) + // Don't exit for task fields (interval:, prompt:, - name:) + const isTaskField = + trimmed.startsWith("interval:") || + trimmed.startsWith("prompt:") || + trimmed.startsWith("- name:"); if ( + !isTaskField && !trimmed.startsWith(" ") && !trimmed.startsWith("\t") && trimmed &&