You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/docs/start
JustYannicc dd06028827
feat(heartbeat): skip API calls when HEARTBEAT.md is effectively empty (#1535)
* feat: skip heartbeat API calls when HEARTBEAT.md is effectively empty

- Added isHeartbeatContentEffectivelyEmpty() to detect files with only headers/comments
- Modified runHeartbeatOnce() to check HEARTBEAT.md content before polling the LLM
- Returns early with 'empty-heartbeat-file' reason when no actionable tasks exist
- Preserves existing behavior when file is missing (lets LLM decide)
- Added comprehensive test coverage for empty file detection
- Saves API calls/costs when heartbeat file has no meaningful content

* chore: update HEARTBEAT.md template to be effectively empty by default

Changed instruction text to comment format so new workspaces benefit from
heartbeat optimization immediately. Users still get clear guidance on usage.

* fix: only treat markdown headers (# followed by space) as comments, not #TODO etc

* refactor: simplify regex per code review suggestion

* docs: clarify heartbeat empty file behavior (#1535) (thanks @JustYannicc)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
10 months ago
..
clawd.md feat(heartbeat): skip API calls when HEARTBEAT.md is effectively empty (#1535) 10 months ago
faq.md feat(heartbeat): skip API calls when HEARTBEAT.md is effectively empty (#1535) 10 months ago
getting-started.md fix: harden Mattermost plugin gating (#1428) (thanks @damoahdominic) 10 months ago
hubs.md docs: add cron vs heartbeat decision guide 10 months ago
lore.md chore: drop Clawdis legacy references 10 months ago
onboarding.md feat: unify hooks installs and webhooks 10 months ago
pairing.md docs: refresh nodes + pairing docs 10 months ago
setup.md refactor: normalize cli command hints 10 months ago
showcase.md docs: remove misplaced Google Docs Editor from showcase (#1547) 10 months ago
wizard.md fix: harden Mattermost plugin gating (#1428) (thanks @damoahdominic) 10 months ago