Make typed swarm control own operator heat

This commit is contained in:
Meta Vens 2026-07-15 03:23:32 +01:00
commit 2059411e85
3 changed files with 10 additions and 9 deletions

View file

@ -80,7 +80,7 @@ function projectSwarmOperatorView({ heartbeat, orchestrator, pause, control, obs
repoName: participant.repoName,
state: participant.activeJobId ? "active" : participant.status,
nextTurnInMinutes: participant.nextTurnInMinutes,
heat: participant.heat ?? number(control?.globalHeat) ?? number(heartbeat?.globalHeat),
heat: number(control?.globalHeat) ?? participant.heat ?? number(heartbeat?.globalHeat),
label: participant.displayName,
status: participant.activeJobId ? "active" : participant.status,
detail: `${participant.repoName} · ${formatTurnDistance(participant.nextTurnInMinutes)}`,
@ -96,7 +96,7 @@ function projectSwarmOperatorView({ heartbeat, orchestrator, pause, control, obs
avatarUri: selected.avatarUri,
status: selected.status,
nextTurnInMinutes: selected.nextTurnInMinutes,
heat: selected.heat ?? number(control?.globalHeat) ?? number(heartbeat?.globalHeat),
heat: number(control?.globalHeat) ?? selected.heat ?? number(heartbeat?.globalHeat),
memoryCount: selected.memoryCount,
pressureCount: selected.pressureCount,
description: selected.description,