swarm-ui: cancel turn is a badge over the terminal, not a button by send
This commit is contained in:
parent
214d7000d3
commit
2f2b4aa9e2
1 changed files with 84 additions and 44 deletions
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue