diff --git a/internal/domain/presence/presence.go b/internal/domain/presence/presence.go
index 4c44cbe4f..6182a1792 100644
--- a/internal/domain/presence/presence.go
+++ b/internal/domain/presence/presence.go
@@ -139,10 +139,11 @@ func Mesh(records []storecontract.Presence, now time.Time) []Service {
if record.Service != Agent {
continue
}
+ // An agent reports for one task and stops when the task ends, so a
+ // silent agent is finished, not failed: only running agents are listed.
worker := Service{Presence: record, State: state(record, true, now)}
if worker.State == StateDown {
- worker.Detail = ""
- worker.Checks = nil
+ continue
}
workers = append(workers, worker)
}
diff --git a/ui/src/settings/ServicesCard.vue b/ui/src/settings/ServicesCard.vue
index 888120e0e..64171ad36 100644
--- a/ui/src/settings/ServicesCard.vue
+++ b/ui/src/settings/ServicesCard.vue
@@ -86,7 +86,6 @@ function problems(service: Service): { key: string; text: string }[] {
];
}
-const stateLabel = (service: Service, agent: boolean) => (agent && service.state === "down" ? "stale" : service.state);
const reasons = (service: Service) => {
const found = problems(service).map((problem) => problem.text);
return found.length || !service.detail ? found : [service.detail];
@@ -129,14 +128,14 @@ onUnmounted(() => clearInterval(timer));
{{ reason }}
- {{ stateLabel(row, table.agent) }}
+ {{ row.state }}