Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

491 B
Raw Blame
import { TaskRunStatus } from '../types/taskTypes'
import { TERMINAL_STATUSES } from './TaskRunStatusDot'

/** Pulsing green dot while the task's sandbox is live; renders nothing once the run is terminal. */
export function TaskRunLivenessDot({ status }: { status: TaskRunStatus }): JSX.Element | null {
    if (TERMINAL_STATUSES.includes(status)) {
        return null
    }
    return <span className="inline-block size-1.5 shrink-0 rounded-full bg-success animate-pulse" aria-hidden />
}