Merged
Size
S
Change Breakdown
Bug Fix95%
Testing5%
#64488fix: don't bleed top-level interval/prompt into heartbeat task parsing

Heartbeat task parsing now respects field indentation

A parsing bug caused heartbeat tasks to inherit top-level interval and prompt settings they shouldn't have. That confusion is now resolved.

Heartbeat tasks in the auto-reply system now parse correctly regardless of where interval and prompt fields appear in the configuration. Previously, the parsing logic matched on field names without verifying indentation, so top-level fields appearing after a task block would overwrite the task's own correctly parsed values. This meant tasks could end up with the wrong interval or prompt entirely. The fix adds an indentation check so only properly nested fields—those indented under a task block—get captured. Configuration boundaries are now respected.

View Original GitHub DescriptionFact Check

What: Fixed a bug in parseHeartbeatTasks where a top-level interval: or prompt: field appearing after a task block would overwrite the task's correctly parsed values, because the look-ahead loop matched on field name without checking indentation. Fix: Added an indentation check so only properly indented task fields are captured. Test: Added a regression test covering this case.

© 2026 · via Gitpulse