: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
fix(posthog-ai): wrap background task summaries in the quill thread (#111373)
Shy Alter1c7bd543e0cc
diff --git a/products/posthog_ai/frontend/components/ThreadItems.tsx b/products/posthog_ai/frontend/components/ThreadItems.tsxindex 222a677008b0..da0901e0cad6 100644--- a/products/posthog_ai/frontend/components/ThreadItems.tsx+++ b/products/posthog_ai/frontend/components/ThreadItems.tsx@@ -88,6 +88,7 @@ export function TaskNotificationItem({ item }: { item: ThreadItem }): JSX.Elemen<Activityid={item.id}title={item.summary || `Task ${item.status}`}+ wrapTitlestatus={activityStatus}icon={icon}animate={false}diff --git a/products/posthog_ai/frontend/components/activityTypes.ts b/products/posthog_ai/frontend/components/activityTypes.tsindex b1c0933a9f0c..a56dcbd954ff 100644--- a/products/posthog_ai/frontend/components/activityTypes.ts+++ b/products/posthog_ai/frontend/components/activityTypes.ts@@ -6,6 +6,8 @@ export interface ActivityProps {id: stringtitle: ReactNodesubtitle?: ReactNode+ /** Wraps a long title instead of truncating it, for a row that carries a message rather than a tool call. */+ wrapTitle?: booleanstatus: ActivityStatusicon?: ReactNodeanimate?: booleandiff --git a/products/posthog_ai/frontend/components/quill/QuillActivity.tsx b/products/posthog_ai/frontend/components/quill/QuillActivity.tsxindex 4ebea68979c5..22522bbbec89 100644--- a/products/posthog_ai/frontend/components/quill/QuillActivity.tsx+++ b/products/posthog_ai/frontend/components/quill/QuillActivity.tsx@@ -9,6 +9,7 @@ export function QuillActivity({id,title,subtitle,+ wrapTitle = false,status,icon,animate = true,@@ -45,9 +46,13 @@ export function QuillActivity({body={body}open={open}onOpenChange={setOpen}- className={cn(status === 'pending' && 'opacity-40')}+ className={cn(+ status === 'pending' && 'opacity-40',+ // A wrapped title keeps its icon on the first line.+ wrapTitle && 'items-start [&>[data-slot=marker-icon]]:mt-[3px]'+ )}>- <span className="min-w-0 truncate font-medium">{title}</span>+ <span className={cn('min-w-0 font-medium', wrapTitle ? 'whitespace-normal' : 'truncate')}>{title}</span>{subtitle && <span className="min-w-0 truncate">{subtitle}</span>}</ThreadMarker>{/* Product widgets (charts, tables, diffs) keep PostHog's own colours inside the quill thread. */}