推荐 自动获取为主,ops 兜底修正,不要让 ops 手动维护整个页面内容。
最适合当前局域网部署的一版是:
OpenClaw 或 ops agent 定时生成一份 JSON 文件storage/agents/openclaw-agents.json/api/agents 自动读取这份文件这样做的好处:
现在 Agent 页已经按任务监控页收成紧凑工作列表,重点展示:
idnamerolestatusstatusLabelhostownercurrentTasktaskIdtaskStagequeueDepthtodayCompleteduptimelastHeartbeatupdatedAtlastOutputlastErrortags{
"fetchedAt": "2026-03-27T12:30:00.000Z",
"agents": [
{
"id": "main-orchestrator",
"name": "main",
"role": "主调度 Agent",
"avatarKind": "male-dispatcher",
"status": "working",
"statusLabel": "工作中",
"host": "macbook-ops.local",
"owner": "OpenClaw Core",
"currentTask": "拆分今日任务并下发给下游 agent",
"taskId": "orch-20260327-0841",
"taskStage": "dispatching",
"queueDepth": 3,
"todayCompleted": 18,
"uptime": "12天 4小时",
"lastHeartbeat": "2秒前",
"updatedAt": "刚刚",
"lastOutput": "已完成一轮任务编排,正在等待下游结果。",
"lastError": "",
"tags": ["调度", "编排", "主控"]
}
]
}
ops agent 不应该手工逐条编辑页面内容,而应该:
lastError如果后面要做强实时版本,可以再从“本地 JSON 文件”升级到:
但第一版局域网部署,先用本地 JSON 文件是最稳的。