Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: choosing a subagent in the subagents menu splits its terminal in beside the agent's

The menu on an agent's terminal page used to open the subagent on a tab of
its own. It now starts a group of this terminal and the subagent's, split to
the right; in a group's pane it splits that pane. A pane's layout key is the
agent, or `agent/subagent` for a subagent's pane, so the layout operations
stay as they are and a destroyed agent takes its subagent panes with it. A
subagent already in the group shows a marker and does nothing when chosen,
and maximize opens a subagent pane's terminal on its own.
This commit is contained in:
iris 2026-11-05 12:45:35 +01:00
commit d733b1e2a9

View file

@ -113,7 +113,10 @@ state.
On a terminal's own page (`/agents/<name>/terminal`, or a subagent's) the
header has an **N running subagents** badge. It opens a list of the agent's
subagents, each a link to its terminal; on a subagent's page the current one
subagents. Choosing one puts its terminal to the right of this one in a
[group](#groups-of-terminals); in a group, it splits that pane. A subagent
already in the group shows a marker and does nothing when chosen, and **maximize**
opens a pane's terminal on its own. On a subagent's own page the current one
gets a marker and the list starts with a link back to the agent's own terminal. A
subagent counts as running when it published a row in the last 15 minutes. The
swarm doesn't report more than when the newest row came, so a subagent that
@ -167,7 +170,9 @@ the same drag onto a pane splits that pane, as many times as you like, and
dragging a pane's header badge onto another pane moves it there. The **split**
button in a pane's header does the same for an agent whose terminal tab is open:
**right** or **below** puts it beside the pane. **maximize** opens that
agent's own terminal in its tab, or goes to the tab when one is open already. The **×** takes the pane's
agent's own terminal in its tab, or goes to the tab when one is open already. A pane
can hold a subagent's terminal (its header reads `agent/subagent`), put there by
the **subagents** badge in the pane's header. The **×** takes the pane's
agent out of the group, and a group left with one agent goes, landing on that
agent's own terminal. Drag a divider to resize, or focus it and use the arrow
keys. Panes have no minimum size; a divider stops at 2% so a pane can't