/** * Origin hint for a scheduled-task-triggered message: the origin block ([scheduled_task]) is * not rendered verbatim on screen; it collapses into one line reading "Triggered by scheduled * task ''" plus a localized trigger timestamp (a static display with no navigation — task * management lives on the Agent settings page's "Scheduled Tasks" tab). The task prompt body * itself is rendered as usual by the caller. */ import { S } from "../../lib/strings"; import { formatDateTime } from "../../lib/format"; import type { ScheduledOrigin } from "./agent-mentions"; export function ScheduledBanner({ origin }: { origin: ScheduledOrigin }) { return (

{S.chat.scheduledFrom(origin.name)} {origin.firedAt && ( {formatDateTime(origin.firedAt)} )}

); }