Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: mount the create-agent form only while its dialog is open, and list the internet setting

The dialog rendered its form even when closed, so every visit to the agents page
or the start page fetched the hive, permission and archetype lists, a half-filled
form was kept, and the hint to reopen the form for a fresh archetype list was
wrong. It now mounts per open. The summary lists the unrestricted internet box
like every other setting, and create another clears it with the rest. The
swarm-ui doc says both.
This commit is contained in:
iris 2026-11-25 19:21:13 +01:00 • committed by mara
commit 5de0ff59f4

View file

@ -1096,8 +1096,10 @@ when the controller is old or unreachable.
### Creating an agent
The **+ agent** button opens a dialog of five steps, which you go through in
order with **next** and can step back through with **back** or the step tabs:
The **+ agent** button opens a dialog whose form mounts each time, so it reads
the hive, permission and archetype lists then, and a closed dialog costs no
requests. The dialog has five steps, which you go through in order with
**next** and can step back through with **back** or the step tabs:
1. **identity**: the name, the hive, and optionally an
[archetype](../../2-handbook/swarm/archetypes.md) that fills in the settings of the steps after it.
@ -1115,8 +1117,9 @@ order with **next** and can step back through with **back** or the step tabs:
default. Ticking it adds `unrestricted_internet` to the request.
4. **resources and inference**: the optional resource caps and inference
settings.
5. **summary**: every setting the request will carry, and what stays at its
default, then **what this creates**. **create** is on this step only.
5. **summary**: every setting the request will carry (including the internet
setting), and what stays at its default, then **what this creates**.
**create** is on this step only.
The header, the step tabs and the buttons stay in place and only the step's own
fields scroll, so a long step never pushes **next** out of view. After