跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt

Use this file to discover all available pages before exploring further.

macOS 上的健康检查

如何在菜单栏应用中查看已连接渠道是否健康。

菜单栏

  • 状态圆点现在会反映 Baileys 健康状态:
    • 绿色:已连接 + 最近已打开套接字。
    • 橙色:正在连接 / 重试。
    • 红色:已登出或探测失败。
  • 次要一行会显示“linked · auth 12m”,或显示失败原因。
  • “Run Health Check”菜单项会触发按需探测。

设置

  • “General”标签页新增了一个 Health 卡片,显示:已连接认证时长、会话存储路径 / 数量、上次检查时间、上次错误 / 状态码,以及“Run Health Check” / “Reveal Logs”按钮。
  • 使用缓存快照,因此 UI 可以即时加载,并在离线时优雅回退。
  • Channels 标签页会显示 WhatsApp / Telegram 的渠道状态 + 控件(登录二维码、登出、探测、上次断开连接 / 错误)。

探测的工作方式

  • 应用会通过 ShellExecutor 每约 60 秒运行一次 openclaw health --json,也可按需运行。该探测会加载凭证并报告状态,而不发送消息。
  • 分别缓存最近一次成功快照和最近一次错误,以避免闪烁;并显示各自的时间戳。

如有疑问

  • 你仍可以使用Gateway 网关健康状态中的 CLI 流程(openclaw statusopenclaw status --deepopenclaw health --json),并查看 /tmp/openclaw/openclaw-*.log 中的 web-heartbeat / web-reconnect

相关内容