Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: show the AGENTS.md size refusal when the instructions section is collapsed

The refusal sat inside the collapsed section, and the general error panel
hides while a refusal is set, so a refused submit with the section closed
showed nothing. The refusal now renders under the section, outside the
details element.
This commit is contained in:
iris 2026-10-18 16:02:10 +02:00
commit dd7fc1c9af
3 changed files with 9 additions and 7 deletions

View file

@ -394,8 +394,9 @@ whitespace, it sends nothing and the agent starts without the file. Otherwise
the text goes as typed in the optional `agents_md` field of `POST /api/agents`.
The agent writes it on its first start, and only when it has no `AGENTS.md`
yet, so creating an agent again under a name that has one never replaces it.
The controller refuses a text over 64 KiB; its reason shows under the box and
the swarm creates no agent. After a successful create the box empties. The
The controller refuses a text over 64 KiB. Its reason shows under the
section, open or not, and the swarm creates no agent. After a successful
create the box empties. The
[instructions editor](#editing-an-agents-instructions) changes the file later.
The [swarm README](README.md#an-agents-agentsmd) has the wire details.