a hive-side pause holds against the swarm's declared state until an operator resumes
the harness writes the reason into the pause marker when it pauses itself and reports it as paused_by_hive in its turn-state header. swarm-controller declares such an agent paused (only if declared up) and shows the reason on the agents status row and the swarm ui card.
This commit is contained in:
parent
6470e2b109
commit
e5c55257f8
1 changed files with 517 additions and 26 deletions
|
|
@ -23,7 +23,12 @@ import { AgentIcon } from "../AgentIcon.js";
|
|||
import { ClaudeLoginDialog } from "../claude-login/ClaudeLoginDialog.js";
|
||||
import { AgentDetail } from "../detail/AgentDetail.js";
|
||||
import { termPaths } from "../terminal/term-paths.js";
|
||||
import { FRESHNESS, showsLoginNeeded, type AgentRow } from "../AgentTypes.js";
|
||||
import {
|
||||
FRESHNESS,
|
||||
hivePauseReason,
|
||||
showsLoginNeeded,
|
||||
type AgentRow,
|
||||
} from "../AgentTypes.js";
|
||||
import type { AgentActions } from "./AgentActions.js";
|
||||
import { WantedMenu } from "./WantedMenu.js";
|
||||
import { AgentCardLayout } from "./AgentCardLayout.js";
|
||||
|
|
@ -82,6 +87,13 @@ export function AgentCard({
|
|||
</>
|
||||
}
|
||||
/>
|
||||
{hivePauseReason(row) !== null ? (
|
||||
<Badge
|
||||
tone="warning"
|
||||
value="paused by hive"
|
||||
title={`the hive paused this agent: ${hivePauseReason(row)}. Set it up again to resume it.`}
|
||||
/>
|
||||
) : null}
|
||||
{showsLoginNeeded(row) ? (
|
||||
<span
|
||||
class="ui-agent-card-login"
|
||||
|
|
|
|||
Loading…
Reference in a new issue