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.

feat(replay-vision): mark scouts beta and sharpen the digest template (#88272)

Tue Haulund64a0d410f0c9
diff --git a/products/replay_vision/frontend/replay_scanners/ReplayScanner.tsx b/products/replay_vision/frontend/replay_scanners/ReplayScanner.tsx
index 2704f4a96403..626ff975a630 100644
--- a/products/replay_vision/frontend/replay_scanners/ReplayScanner.tsx
+++ b/products/replay_vision/frontend/replay_scanners/ReplayScanner.tsx
@@ -158,7 +158,14 @@ export function ReplayScannerSceneComponent(): JSX.Element {
? [
{
key: ReplayScannerTab.Scouts,
- label: 'Scouts',
+ label: (
+ <>
+ Scouts{' '}
+ <LemonTag type="completion" size="small" className="ml-1">
+ Beta
+ </LemonTag>
+ </>
+ ),
content: <ScannerScoutsTab scannerId={scannerId} />,
},
]
diff --git a/products/replay_vision/frontend/replay_scanners/components/ScannerScoutRow.tsx b/products/replay_vision/frontend/replay_scanners/components/ScannerScoutRow.tsx
index 42a37b446518..66dbc7df37d8 100644
--- a/products/replay_vision/frontend/replay_scanners/components/ScannerScoutRow.tsx
+++ b/products/replay_vision/frontend/replay_scanners/components/ScannerScoutRow.tsx
@@ -7,6 +7,7 @@ import { TZLabel } from 'lib/components/TZLabel'
import { LemonSkeleton } from 'lib/lemon-ui/LemonSkeleton'
import { LemonTable } from 'lib/lemon-ui/LemonTable'
import { cn } from 'lib/utils/css-classes'
+import { capitalizeFirstLetter } from 'lib/utils/strings'
import { teamLogic } from 'scenes/teamLogic'
import type { SignalScoutConfigApi } from 'products/signals/frontend/generated/api.schemas'
@@ -74,21 +75,25 @@ export function ScannerScoutRow({
return (
<div className={cn('flex flex-col rounded border bg-surface-primary', !config.enabled && 'opacity-65')}>
<div className="flex flex-wrap items-center gap-x-4 gap-y-2 px-4 py-2.5">
- <LemonButton
- size="small"
- icon={<IconChevronRight className={cn('transition-transform', expanded && 'rotate-90')} />}
+ <button
+ type="button"
+ className="-mx-1 flex min-w-0 flex-1 cursor-pointer items-center gap-2 rounded px-1 py-1 text-left transition-colors hover:bg-surface-secondary"
onClick={() => toggleScoutExpanded(config.skill_name)}
aria-label={`${expanded ? 'Hide' : 'Show'} reports from ${prettifyScoutSkillName(config.skill_name)}`}
aria-expanded={expanded}
data-attr="vision-scout-row-expand"
- />
- <div className="flex min-w-0 flex-1 flex-col gap-0.5">
- <span className="text-sm font-medium">{prettifyScoutSkillName(config.skill_name)}</span>
- <span className="text-[11px] text-muted">
- {scoutCadenceLabel(config)}
- {nextRunText && ` · next run ${nextRunText}`}
+ >
+ <IconChevronRight
+ className={cn('shrink-0 text-base transition-transform', expanded && 'rotate-90')}
+ />
+ <span className="flex min-w-0 flex-1 flex-col gap-0.5">
+ <span className="text-sm font-medium">{prettifyScoutSkillName(config.skill_name)}</span>
+ <span className="text-[11px] text-muted">
+ {capitalizeFirstLetter(scoutCadenceLabel(config))}
+ {nextRunText && ` · next run ${nextRunText}`}
+ </span>
</span>
- </div>
+ </button>
<div className="flex shrink-0 items-center gap-1">
<Tooltip title="Scout settings">
<LemonButton
@@ -195,8 +200,11 @@ export function ScannerScoutRow({
{
title: '',
key: 'touchedAt',
+ // Baseline, not centre: `TZLabel` carries a dotted bottom border, so
+ // centring the two boxes puts its text half a pixel off, and which way
+ // that rounds shifts with the width of the digits.
render: (_, report) => (
- <span className="text-muted">
+ <span className="inline-flex items-baseline gap-1 text-muted">
Filed <TZLabel time={report.filed_at} />
</span>
),
diff --git a/products/replay_vision/frontend/replay_scanners/components/ScannerScoutSlackDestination.tsx b/products/replay_vision/frontend/replay_scanners/components/ScannerScoutSlackDestination.tsx
index 1adb08198230..5448ae61da86 100644
--- a/products/replay_vision/frontend/replay_scanners/components/ScannerScoutSlackDestination.tsx
+++ b/products/replay_vision/frontend/replay_scanners/components/ScannerScoutSlackDestination.tsx
@@ -21,8 +21,13 @@ export function ScannerScoutSlackDestination({
// `output_destinations` also holds the webhook destination this scout provisioned, and replacing
// the object would drop that pointer while the destination kept delivering.
const destination = destinations?.slack
+ // Threading is always on rather than a setting: it only takes effect when a report is too long
+ // for one Slack section, and the alternative there is a clipped digest. A short one still posts
+ // as a single message however many headings it has.
const withSlack = (slack: SignalScoutOutputDestinationsApi['slack'] | undefined): void =>
- onChange(slack ? { ...destinations, slack } : { ...destinations, slack: null })
+ onChange(
+ slack ? { ...destinations, slack: { ...slack, thread_reports: true } } : { ...destinations, slack: null }
+ )
const { slackIntegrations, integrationsLoading } = useValues(integrationsLogic)
const header = <span className="text-xs text-default">Slack</span>
diff --git a/products/replay_vision/frontend/replay_scanners/scannerScout.ts b/products/replay_vision/frontend/replay_scanners/scannerScout.ts
index d58e17722016..c0c88fbfbfbc 100644
--- a/products/replay_vision/frontend/replay_scanners/scannerScout.ts
+++ b/products/replay_vision/frontend/replay_scanners/scannerScout.ts
@@ -96,7 +96,7 @@ interface ScoutFocus {
* scanner id is the sole baked-in context; the scanner's name, type, and prompt are read live via
* `vision-scanners-get`, so editing the scanner never requires touching the scout. */
const DEFAULT_QUIET_VERDICT =
- 'When nothing clears the bar, still file the report, with the verdict `Nothing notable` and a short coverage line ("42 observations across 30 sessions, distributions steady").'
+ 'When nothing clears the bar, still file the report: open with the verdict `Nothing notable`, then a short coverage line naming what you read and what it showed ("42 observations across 30 sessions, distributions steady").'
const DEFAULT_REPORT_SHAPE = `- Open with the takeaway in one line, then at most three bullets ordered by impact.
- Each bullet: what changed, with only the numbers needed to judge it; why it matters; the evidence-backed cause or best next investigation; and the specific next action.`
@@ -251,15 +251,17 @@ Lead the summary with whatever the window is actually about, and lean on:
- A friction theme, complaint, or failure mode recurring across several distinct sessions.
- A verdict rate, score distribution, or tag mix stepping away from the scanner's prior weeks.
- A single session severe enough that the team should watch the recording today.`,
- quiet: 'A window where nothing changed still has content: what users did, which themes dominated, and how the distribution sat against prior weeks. Say plainly that nothing stood out, then summarize the window anyway. `Nothing notable` on its own is not a digest.',
+ quiet: 'A window where nothing changed still has content: what users did, which themes dominated, and how the distribution sat against prior weeks.',
skip: `- Anything the scanner's own per-session signals already pushed to the inbox.
- Observations whose own signals contradict the claim (a session marked \`friction: none\` is never evidence of an error).`,
quietVerdict:
'A digest has no bar to clear, so it never files a bare verdict. Say in the opening line that nothing stood out, then summarize the window as below.',
- shape: `- Open with a two or three sentence read on the window: what users were doing, and what stood out.
-- Then a short section per theme, each a heading and two to four bullets. Order them by how much of the window they cover, and say roughly how many sessions each rests on.
+ shape: `- Open with one scope line naming the scanner and what you read: \`Summary for [<scanner name>](/project/<project_id>/replay-vision/${scannerId}) — 27 recordings since Aug 21, 2026 at 9:00 AM\`, in the project timezone. The link is how a reader reaches the scanner this came from, and the count and start time are how they judge what it covers.
+- Then \`**TL;DR:**\` and two or three sentences: what users were doing, and what stood out. A reader who stops here should still have the answer.
+- Then a short section per theme, each a heading and two to four bullets, ordered by how much of the window they cover. Bullets, never paragraphs: a digest is read at a glance, and prose hides the one line that mattered.
+- Every theme opens with how many sessions it rests on. A theme you cannot count is a theme you cannot weigh, and a reader has no way to tell the dominant pattern from the anecdote.
- A theme resting on one or two observations is worth a sentence, not a section: say how thin it is rather than inflating it or dropping it.
-- Close with "What to look at": the few things worth someone's time, each naming the action.`,
+- Close with the detail behind the scope line (how the outcomes split, anything you could not cover), then "What to look at", listing only things a person would actually do, each naming the action and what it would settle. Nothing worth doing means no section: never pad it with "no action needed", and never file "keep monitoring", which is what the next run is for.`,
priority: 'Priority P3 by default; P2 when a severe problem is spreading.',
}),
},
@@ -276,7 +278,7 @@ Lead the summary with whatever the window is actually about, and lean on:
- \`vision-scanners-observations-stats\` (scanner_id \`${scannerId}\`) for the distribution the scanner reports for itself.
- \`vision-scanners-get\` — read \`scanner_version\` and \`updated_at\` before calling any shift a finding: a config edit near the onset explains it.`,
notable: lens.notable,
- quiet: 'Holding steady is the expected outcome. When nothing has moved, refresh your `pattern:` baseline entries and file the digest with verdict `Nothing notable`, saying what you compared.',
+ quiet: 'Holding steady is the expected outcome. When nothing has moved, refresh your `pattern:` baseline entries and say what you compared.',
skip: `- Low-volume windows (under roughly 30 sessions in the week) — rates wobble there; write a \`pattern:\` note instead.
- A shift explained by a scanner config edit, a sampling change, or the scanner being disabled.
${lens.skip}`,
@@ -302,7 +304,7 @@ ${lens.skip}`,
- A failure, error, or friction theme appearing in this scanner's observations with no counterpart in your catalog, across at least two or three distinct sessions.
- A single new occurrence severe enough to act on regardless of spread: a blocked purchase, lost work, a dead end with no way out.
- A known problem reappearing after you recorded it as resolved — a regression is new again.`,
- quiet: 'Most runs find nothing new, and that is the point: this scout is quiet by design. Refresh the catalog, then file the digest with verdict `Nothing notable`, saying what window you diffed.',
+ quiet: 'Most runs find nothing new, and that is the point: this scout is quiet by design. Refresh the catalog, and say what window you diffed.',
skip: `- Anything already in your catalog, even when its wording differs. Summaries are freeform prose, so match on what happened, not on how it was phrased.
- A one-off single session below the severity bar. Note it in the catalog as seen; if it recurs next week, it is a pattern, not a novelty.
- Something "new" that a scanner prompt or config edit near the onset explains: the scanner changed what it reports, the product did not change. Cite the edit and stop.
@@ -328,7 +330,7 @@ ${lens.skip}`,
notable: `<WHAT IS WORTH REPORTING>
Be specific about the bar, so a quiet window stays quiet: how many distinct sessions it takes, how far from this scanner's own prior weeks, and how severe a single case has to be to count on its own.`,
- quiet: 'A window that clears none of those bars is a normal outcome, and still files its digest: verdict `Nothing notable`, plus what you checked.',
+ quiet: 'A window that clears none of those bars is a normal outcome for this scout.',
skip: `- <WHAT THIS SCOUT SHOULD LEAVE ALONE>. Anything another scout or the scanner's own signals already reported belongs here, and so does anything resting on too little evidence to stand up.`,
priority: 'Priority P3 by default; P2 when something is severe or spreading.',
}),