openclaw - 💡(How to fix) Fix Feature Request: Silent Heartbeat Mode [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#58033Fetched 2026-04-08 01:54:41
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
RAW_BUFFERClick to expand / collapse

'## Description

Add a silent heartbeat mode that runs health checks silently without sending messages to the chat frontend. This would prevent the heartbeat messages from disrupting UI elements like dialogs in the webchat interface.

Problem

Currently, heartbeat messages (e.g., HEARTBEAT_OK) are sent to the chat frontend, which can cause UI elements like dialogs to disappear or flash when the heartbeat poll fires.

Expected Behavior

A configurable silent mode where:

  1. Heartbeat checks still run internally
  2. No messages are sent to the chat channel when everything is OK
  3. Only actual alerts/warnings are shown when there are issues

Alternative Solutions

  • Add a 'heartbeat.silent' or 'heartbeat.mode' config option
  • Allow configuring heartbeat interval via config
  • Make heartbeat purely internal with no frontend visibility

Environment

  • OpenClaw version: 2026.3.28
  • Platform: macOS

extent analysis

Fix Plan

To implement the silent heartbeat mode, we will introduce a new configuration option heartbeat.silent and modify the heartbeat logic to conditionally send messages to the chat frontend.

Steps

  • Add a heartbeat.silent configuration option with a default value of false.
  • Update the heartbeat function to check the heartbeat.silent configuration option before sending messages to the chat frontend.
  • If heartbeat.silent is true, only log internal heartbeat checks and do not send messages to the chat frontend unless an alert or warning is triggered.

Example Code

import logging

# Add heartbeat.silent configuration option
heartbeat_config = {
    'silent': False,
    'interval': 60  # default interval in seconds
}

def heartbeat():
    # Run internal health checks
    health_check_result = run_health_checks()

    # Check if silent mode is enabled
    if heartbeat_config['silent']:
        # Log internal heartbeat checks
        logging.info('Heartbeat: Internal checks passed' if health_check_result else 'Heartbeat: Internal checks failed')
        
        # Only send messages to chat frontend if an alert or warning is triggered
        if not health_check_result:
            send_alert_to_chat_frontend('HEARTBEAT_FAILED')
    else:
        # Send heartbeat messages to chat frontend
        send_message_to_chat_frontend('HEARTBEAT_OK' if health_check_result else 'HEARTBEAT_FAILED')

def run_health_checks():
    # Implement health check logic here
    pass

def send_message_to_chat_frontend(message):
    # Implement logic to send message to chat frontend here
    pass

def send_alert_to_chat_frontend(message):
    # Implement logic to send alert to chat frontend here
    pass

Verification

To verify the fix, set heartbeat.silent to true and check that:

  • Heartbeat messages are no longer sent to the chat frontend when everything is OK.
  • Actual alerts and warnings are still shown when there are issues.
  • Internal heartbeat checks are still logged.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING