swarm: list an agent's bash tasks from their published status
GET /api/agents/{name}/bash-tasks reads the agent's keys of the bash-task-status
bucket and reports each task's state, command and times, with a live task whose
daemon stopped reporting as stale. The swarm UI shows them in a background tasks
section of the agent card, running ones first. The task output stays unread.
This commit is contained in:
parent
cc7b298cf3
commit
5de20f31dd
1 changed files with 625 additions and 11 deletions
|
|
@ -8,16 +8,17 @@ import {
|
|||
startsOpen,
|
||||
} from "../src/agent/detail/sections.ts";
|
||||
|
||||
test("a card holds status, terminal, subagents, then settings", () => {
|
||||
test("a card holds status, terminal, subagents, background tasks, then settings", () => {
|
||||
assert.deepEqual(sectionsFor(true), [
|
||||
"status",
|
||||
"terminal",
|
||||
"subagents",
|
||||
"tasks",
|
||||
"settings",
|
||||
]);
|
||||
});
|
||||
|
||||
test("a page beside a terminal leaves the terminal and subagents out", () => {
|
||||
test("a page beside a terminal leaves the terminal, subagents and tasks out", () => {
|
||||
assert.deepEqual(sectionsFor(false), ["status", "settings"]);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue