feat(FN-3319): enrich agent heartbeat callbacks with reason in UI

Enriched agent heartbeat callbacks with a `reason` parameter propagated through the engine, in-process runtime, and dashboard components (AgentDetailView, AgentListModal, AgentsView). Added a new `agentHealth.tsx` utility and corresponding test file to surface the reason in UI health status, with te

Fusion-Task-Id: FN-3319
This commit is contained in:
Fusion
2026-05-03 12:47:08 -07:00
committed by gsxdsm
parent e153ae5443
commit a1b74de12b
9 changed files with 125 additions and 34 deletions

View File

@@ -1695,11 +1695,11 @@ export async function runDashboard(port: number, opts: { paused?: boolean; dev?:
agentStore,
taskStore: store,
rootDir: cwd,
onMissed: (agentId) => {
logSink.log(`Agent ${agentId} missed heartbeat`, "engine");
onMissed: (agentId, reason) => {
logSink.warn(`Agent ${agentId} missed heartbeat: ${reason}`, "engine");
},
onTerminated: (agentId) => {
logSink.log(`Agent ${agentId} terminated (unresponsive)`, "engine");
onTerminated: (agentId, reason) => {
logSink.warn(`Agent ${agentId} terminated (unresponsive): ${reason}`, "engine");
},
});
heartbeatMonitorImpl.start();