Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: lock the backend configuration box when its stored text could not be read

Only a 404 means nothing is stored. Any other failed read used to leave an empty,
editable box with save enabled, so saving one line replaced a configuration that
was never read. The box now stays locked behind an error with a retry button.
The decision is a small tested function, and the swarm-ui doc describes it.
This commit is contained in:
iris 2026-11-25 19:21:46 +01:00 • committed by mara
commit c7e559a09e

View file

@ -1177,7 +1177,10 @@ saved.
The **claude login** row of an agent's details also sets the API key: **set API
key** (or **replace API key**) sends the key as `ANTHROPIC_API_KEY=<key>` to the
agent's secrets, **remove API key** deletes them, and **advanced** opens the
form above. The row shows whether the store holds a key and never the key. A
form above. The row shows whether the store holds a key and never the key. The
form reads the stored configuration first: a 404 means the store holds none, and any
other failed read shows the error with a **retry** button and keeps **save**
disabled, so a save can't replace text that was never read. A
change reaches the agent at its next restart, and an agent with a key tries it
instead of waiting for a claude login.