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.

1.1 KB
Raw Blame
// Tier 1 — the `RunSurface` compound (`Root` + the `.Thread/.Composer/.ContextUsage` slots) for
// consumers that build a custom run layout: `RunSurface.Root` binds the stream logic and bootstraps the run;
// the slots compose into whatever layout the surface needs (a live composer for tasks; the context-usage bar
// for an embed). There is no default layout — for the common no-input read-only embed, use `ReadonlyRunSurface`
// (./readableRun) instead.
//
// EAGER, not lazy: this statically pulls the heavy compound (stream logic, virtualized thread, tool/diff
// renderers). Import it only from an already route-split scene (the tasks runner) or another lazily-loaded
// layout module — never from a light bundle that should stay split (use ./readableRun there).
//
// Part of the `products/posthog_ai/frontend/api/<module>` public surface — import from here, not from
// deep `../components/*` paths. See ../README.md for the tier model and ../AGENTS.md for the coupling rule.

export { RunSurface } from '../components/RunSurfaceImpl'
export type { RunSurfaceRootProps } from '../components/RunSurfaceImpl'