Skip to content

feat: /heartbeat LINE command with auto-adjust interval - #58

Merged
Piboonsak merged 3 commits into
mainfrom
copilot/add-heartbeat-command
Apr 5, 2026
Merged

Piboonsak merged 3 commits into
mainfrom
copilot/add-heartbeat-command

Conversation

Copilot AI commented Apr 5, 2026 •

Copy link
Copy Markdown

Closes #54

Copilot AI added 2 commits April 5, 2026 13:46
- Add /heartbeat LINE command to query/set heartbeat interval
- Support min/max bounds validation (configurable via minEvery/maxEvery)
- Add /heartbeat auto [on|off] to toggle auto-adjust mode
- Add autoAdjust, minEvery, maxEvery fields to heartbeat config type and Zod schema
- Implement auto-adjust backoff in heartbeat runner: when autoAdjust is enabled
  and the agent is stressed (requests-in-flight), exponentially back off the interval
  up to maxEvery; reset when healthy
- Register /heartbeat and /thinking commands in LINE extension index
- Add 19 unit tests for the heartbeat command

Agent-Logs-Url: https://github.com/Piboonsak/openclaw_github/sessions/73a00d9a-3877-410d-aa0d-da815af52e1f
- Fix arg persistence to use argsStr (already trimmed) instead of ctx.args fallback
- Extract AUTO_ADJUST_DEFAULT_MAX_MULTIPLIER constant for magic number 8
- Simplify test HeartbeatConfig type extraction using NonNullable chain

Agent-Logs-Url: https://github.com/Piboonsak/openclaw_github/sessions/73a00d9a-3877-410d-aa0d-da815af52e1f
Copilot AI changed the title [WIP] Add dynamic heartbeat command with auto-adjust interval feat: /heartbeat LINE command with auto-adjust interval Apr 5, 2026
Copilot AI requested a review from Piboonsak April 5, 2026 13:49
@Piboonsak
Piboonsak marked this pull request as ready for review April 5, 2026 13:52
@Piboonsak
Piboonsak merged commit 9703804 into main Apr 5, 2026
@Piboonsak
Piboonsak deleted the copilot/add-heartbeat-command branch April 5, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Dynamic heartbeat — /heartbeat command with auto-adjust interval

2 participants