Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: select a pane's name badge in a terminal group to open the agent's details

This commit is contained in:
iris 2026-11-22 17:20:03 +01:00 • committed by mara
commit 8e2844ec92

View file

@ -16,7 +16,7 @@ import { CloseIcon, ExpandIcon } from "@hive/shared/icons.js";
import { SubagentsMenu } from "../../agent/terminal/SubagentsMenu.js";
import { AgentTermPreview } from "../../agent/terminal/AgentTermPreview.js";
import { BashTasksMenu } from "../../agent/terminal/BashTasksMenu.js";
import { LiveAgentIcon } from "../../agent/terminal/ConnectionDot.js";
import { GroupPaneName } from "../../agent/terminal/GroupPaneName.js";
import { termPaths } from "../../agent/terminal/term-paths.js";
import {
agentsIn,
@ -29,7 +29,6 @@ import {
splitKey,
splitPane,
} from "../../agent/terminal/split-layout.js";
import { endAgentDrag, startAgentDrag } from "../../agent/terminal/termDrag.js";
import { fetchJson, usePolled } from "../../ui/polled/usePolled.js";
import { useTermGroups } from "../../agent/terminal/useTermGroups.js";
import { useDynamicTabs } from "../../shell/useDynamicTabs.js";
@ -113,18 +112,11 @@ export function AgentGroupPage({
fullHeight
leading={(connection) => (
<>
<span
class="ui-agent-group-grip"
draggable
title={`drag ${key} onto another pane to move it`}
onDragStart={(e) => startAgentDrag(e, key)}
onDragEnd={endAgentDrag}
>
<Badge
icon={<LiveAgentIcon name={agent} connection={connection} />}
value={key}
/>
</span>
<GroupPaneName
paneKey={key}
agent={agent}
connection={connection}
/>
<SubagentsMenu
key={agent}
agentName={agent}