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.

970 B
Raw Blame
import { type ReactNode } from 'react'

import { Activity } from './ActivityPrimitives'
import type { ActivityStatus } from './activityTypes'

/**
 * Progress / status card for the sandbox runtime — a thin adapter over the shared `Activity` used by
 * `ProgressItem` and the status/substep thread items. (Tool calls render via the dedicated
 * `ToolActivity` bridge, not this.)
 */
export function RunActivity({
    id,
    content,
    substeps,
    state,
    icon,
    animate = true,
    showCompletionIcon = true,
}: {
    id: string
    content: ReactNode
    substeps: string[]
    state: ActivityStatus
    icon?: ReactNode
    animate?: boolean
    showCompletionIcon?: boolean
}): JSX.Element {
    return (
        <Activity
            id={id}
            title={content}
            substeps={substeps}
            status={state}
            icon={icon}
            animate={animate}
            showCompletionIcon={showCompletionIcon}
        />
    )
}