swarm-ui: open the terminal, group and flow pages for a malformed address
A name or id that isn't valid percent-encoding (for example /agents/%E0%A4%A/terminal) made decodeURIComponent throw while the page rendered, leaving a blank page. The segment now stays as typed, as the agents page already did, so the page opens (a terminal for that name, disconnected). A tested helper does the decoding.
This commit is contained in:
parent
c7e559a09e
commit
79f2d4bd4d
1 changed files with 30 additions and 6 deletions
|
|
@ -71,6 +71,9 @@ asks from inside a handler with the `useConfirm` hook, with no dialog state of i
|
|||
| `/messages` | redirects to `/swarm`, where the messages sit: a folded **message log** card with every message between agents, and to them from the operator, reminders and compaction, with a history window and a filter on sender or recipient; a folded **broadcast** card sends one message to more than one agent at once, and a folded **schedules** card holds the scheduled prompts: add, edit, pause, resume and remove |
|
||||
|
||||
Everything it shows comes from [`swarm-controller`](../../../swarm-controller/README.md).
|
||||
An agent, subagent or group name in an address that isn't valid percent-encoding
|
||||
stays as typed, so the page opens, showing a disconnected terminal for that
|
||||
name, instead of staying blank.
|
||||
Pages that refresh on a timer share one polling rule: the page sends no new
|
||||
request while the last one is still running, so an older answer never overtakes
|
||||
a slow one, and a failed refresh keeps the rows already on screen under an
|
||||
|
|
|
|||
Loading…
Reference in a new issue