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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user