From 144d9582086a82f5caae3f90eb9692ebcbc2e0ee Mon Sep 17 00:00:00 2001 From: iris Date: Mon, 16 Nov 2026 01:04:30 +0100 Subject: [PATCH] swarm ui: format the section list the way treefmt does, and say the todos are not editable in active voice --- docs/2-handbook/swarm/ui.md | 4 ++-- frontend/packages/swarm-ui/src/agent/detail/sections.ts | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/2-handbook/swarm/ui.md b/docs/2-handbook/swarm/ui.md index ed1970e5b..7700eea22 100644 --- a/docs/2-handbook/swarm/ui.md +++ b/docs/2-handbook/swarm/ui.md @@ -30,8 +30,8 @@ updates the agent, from the moment the update stops its container until the container is back up, so the stopped agent doesn't read as lost. An agent's card also lists its **open todos**: what each says, which part of the -system raised it and how long ago. The list is read only and follows the agent's -own within a few seconds. +system raised it and how long ago. You can't change it from here, and it follows +the agent's own list within a few seconds. Type `/` in an agent's message box and a menu lists what that agent accepts: the swarm's own commands (`/compact`, `/clear-todos`) and the skills the diff --git a/frontend/packages/swarm-ui/src/agent/detail/sections.ts b/frontend/packages/swarm-ui/src/agent/detail/sections.ts index d61f81353..4b39594d7 100644 --- a/frontend/packages/swarm-ui/src/agent/detail/sections.ts +++ b/frontend/packages/swarm-ui/src/agent/detail/sections.ts @@ -4,7 +4,12 @@ /** One folded block of an opened agent card. */ export type DetailSection = - "status" | "terminal" | "todos" | "subagents" | "tasks" | "settings"; + | "status" + | "terminal" + | "todos" + | "subagents" + | "tasks" + | "settings"; /** What each section's header says. */ export const SECTION_TITLE: Record = {