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:
parent
ff7215a4b1
commit
c7e559a09e
1 changed files with 66 additions and 7 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue