swarm ui: the agent's status message shows how long ago it was set
The card and its detail showed the message alone, so a message from an hour ago read like the current one. Both now add the age, (5m ago), which ticks like the other relative times. An agent with no message still shows a dash.
This commit is contained in:
parent
1cc1cb804d
commit
0547081138
1 changed files with 85 additions and 3 deletions
|
|
@ -21,6 +21,7 @@ import { useDynamicTabs } from "../../shell/useDynamicTabs.js";
|
|||
import { AgentIcon } from "../AgentIcon.js";
|
||||
import { ClaudeLoginDialog } from "../claude-login/ClaudeLoginDialog.js";
|
||||
import { AgentDetail } from "../detail/AgentDetail.js";
|
||||
import { StatusMessage } from "../detail/StatusMessage.js";
|
||||
import { termPaths } from "../terminal/term-paths.js";
|
||||
import {
|
||||
hivePauseReason,
|
||||
|
|
@ -126,7 +127,7 @@ export function AgentCard({
|
|||
) : null}
|
||||
</span>
|
||||
}
|
||||
message={row.snapshot?.status_text ?? "—"}
|
||||
message={<StatusMessage snapshot={row.snapshot} />}
|
||||
chevron={<span class="ui-agent-card-chevron" aria-hidden="true" />}
|
||||
/>
|
||||
{open ? (
|
||||
|
|
|
|||
Loading…
Reference in a new issue