Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: cancel turn is a badge over the terminal, not a button by send

This commit is contained in:
iris 2026-10-28 20:12:11 +01:00
commit 2f2b4aa9e2

View file

@ -48,6 +48,7 @@ import {
} from "./useSwarmAgentStateStream.js";
import { RelativeTime } from "../../ui/relative-time/RelativeTime.js";
import { AgentInputForm } from "./AgentInputForm.js";
import { CancelTurnBadge } from "./CancelTurnBadge.js";
import "./AgentTermPreview.css";
const NEAR_BOTTOM_PX = 48;
@ -277,6 +278,12 @@ export function AgentTermPreview({
/>
)}
{header && <StateBadges header={header} ctx={ctx} cost={cost} />}
{header && subagent === undefined && (
<CancelTurnBadge
agentName={agentName}
turnState={header.turn_state}
/>
)}
</div>
{!fullHeight && (
<Badge
@ -310,9 +317,7 @@ export function AgentTermPreview({
)}
</div>
</div>
{subagent === undefined && (
<AgentInputForm agentName={agentName} turnState={header?.turn_state} />
)}
{subagent === undefined && <AgentInputForm agentName={agentName} />}
</div>
);
}