the harness no longer publishes the agent's icon; the controller is its only writer
This commit is contained in:
parent
2e30163d5c
commit
fe4d68c13f
1 changed files with 15 additions and 170 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue