From 7071c67487e83b4261dbe982d4284b9551a1ca3b Mon Sep 17 00:00:00 2001 From: Ilker Manap Date: Tue, 29 Sep 2026 21:31:05 +0200 Subject: [PATCH] Show which requests each node's agent answers Co-Authored-By: Claude Opus 5.5 (1M context) --- internal/control/adminapi/api.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/control/adminapi/api.go b/internal/control/adminapi/api.go index 34f5867d..20d986bc 100644 --- a/internal/control/adminapi/api.go +++ b/internal/control/adminapi/api.go @@ -134,7 +134,10 @@ type NodeView struct { LastSeenAgo string `json:"last_seen_ago"` AgentVersion string `json:"agent_version,omitempty"` - Replicas int `json:"replicas"` + // Features are the requests the agent answers beyond the usual: + // "fabric-test". Absent is an agent too old to say. + Features []string `json:"features,omitempty"` + Replicas int `json:"replicas"` // Load is how busy the machine is, absent when its agent has not // measured it lately — which is unknown, not idle. @@ -335,7 +338,7 @@ func (a *API) Nodes() []NodeView { State: n.State.String(), Labels: n.Labels, GPUTotal: len(n.GPUs), GPUFree: len(inv.FreeGPUs(n.ID)), MemoryGB: n.MemoryTotalMB / 1024, - Fabrics: n.FabricNames(), AgentVersion: n.AgentVersion, + Fabrics: n.FabricNames(), AgentVersion: n.AgentVersion, Features: n.Features, Replicas: replicasOn[n.ID], } if free, total := n.LocalDisk(); total > 0 {