Watch
0
0
Fork
You've already forked hyperhive
0

the harness no longer publishes the agent's icon; the controller is its only writer

This commit is contained in:
iris 2026-11-16 23:07:18 +01:00 • committed by mara
commit fe4d68c13f

View file

@ -271,10 +271,9 @@ The third thing a hive's agent has is its **icon**, the same SVG its own
`<agent>`, with no hive in it, so the swarm can show the icon of an agent that's
stopped or has moved hives. The [builder](builder.md) reads it from the agent's
evaluated config when it builds the agent for a deploy, and the controller writes
the key from the reply: an agent with no icon has its key deleted. The harness
still publishes the same file once per start, with its own credential's grant of
`$KV.agent-icons.<agent>`; the controller's write is the one that matters, since it
doesn't need the agent running. Swarm-side,
the key from the reply: an agent with no icon has its key deleted. The controller is the only
writer: no agent credential has a grant on the bucket, and the write needs no
running agent. Swarm-side,
`GET /api/agents/<name>/icon` serves
the stored bytes, and 404 means the agent has no icon. swarm-ui's agent cards
load it as an `<img>` and show the dimmed default agent icon (a robot head in a