: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import { Suspense } from 'react'
import { Spinner } from 'lib/lemon-ui/Spinner'
import { lazyWithRetry } from 'lib/utils/retryImport'
import type { TaskTrackerProps } from '../scenes/TaskTracker/TaskTracker'
export type { TaskTrackerProps } from '../scenes/TaskTracker/TaskTracker'
// The TaskTracker scene (composer + run detail) is the heavy runner UI. It's loaded on
// demand so a consumer that only links to it — e.g. the Max scene rendering it behind the sandbox view
// toggle — doesn't statically pull it into its own chunk. Only `react` + a lightweight spinner load eagerly.
const Lazy = lazyWithRetry(() => import('../scenes/TaskTracker/TaskTracker').then((m) => ({ default: m.TaskTracker })))
export function EmbeddedRunner(props: TaskTrackerProps): JSX.Element {
return (
<Suspense
fallback={
<div className="flex flex-1 items-center justify-center">
<Spinner className="text-2xl" />
</div>
}
>
<Lazy {...props} />
</Suspense>
)
}