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

@ -78,6 +78,7 @@ test("the summary lists what is sent and what stays at its default", () => {
caps: {},
inference: {},
agentsMd: "",
internet: false,
...over,
}).map((r) => [r.label, r.value]),
);
@ -85,6 +86,8 @@ test("the summary lists what is sent and what stays at its default", () => {
assert.equal(plain.name, "ruth");
assert.equal(plain.archetype, "none: a custom agent");
assert.equal(plain.permissions, "the default set");
assert.equal(plain.internet, "only the allowed domains");
assert.equal(rows({ internet: true }).internet, "unrestricted");
assert.equal(plain["resource caps"], "none set");
assert.equal(plain.inference, "none set");
assert.equal(plain.instructions, "none");