Skip to content

fix: use .connected/.running from health output - #36

Open
NOVA-Openclaw wants to merge 1 commit into
mainfrom
fix/issue-35-health-connected-field
Open

fix: use .connected/.running from health output#36
NOVA-Openclaw wants to merge 1 commit into
mainfrom
fix/issue-35-health-connected-field

Conversation

@NOVA-Openclaw

Copy link
Copy Markdown
Owner

Closes #35

Problem

openclaw health --json no longer returns channel state under .probe.ok. As of v2026.4 the channel objects expose:

{
  "channels": {
    "discord": { "connected": true, "running": true, "bot": { "username": "NOVA" } },
    "signal":  { "connected": null, "running": true },
    "agent_chat": { "connected": null, "running": true }
  }
}

Because update-dashboard.sh still looked for .probe.ok, every channel was rendered as offline.

Fix

Updated the jq transform in update_system() to map:

  • .connected == trueonline
  • .running == true (but not connected) → idle
  • otherwise → offline

Bot/team/latency paths were also moved to the new channel-level structure (.bot.username / .team.name). Legacy .probe.* fields are still honored as fallbacks so older health output formats continue to work.

Verification

  • Added a redacted health fixture in tests/fixtures/health-sample.json covering online / idle / offline states.
  • Added tests/test-issue-35.sh; all 13 assertions pass.
  • Ran the modified script against live openclaw health --json output; generated system.json now shows:
    • discord / slack / telegramonline
    • signal / agent_chatidle
  • Existing tests/test-update-dashboard.sh still passes.

Note: this deliberately does not address #27 (the agent_chat plugin probe); it simply prevents agent_chat from being misreported as offline while that issue is worked separately.

openclaw health --json now exposes channel state via .connected and .running rather than .probe.ok. Update update_system() to map connected -> online, running -> idle, otherwise offline (with legacy .probe.ok fallback).

Also update bot/team/latency field paths to the new channel-level structure while preserving legacy .probe.* fallbacks.

Added redacted health fixture and test for the mapping behavior (including legacy probe fallback).
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.

All channels show offline — health output format changed (probe.ok → connected)

1 participant