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): fold single-token outcomes into the watch feed card header (#101860)

Kim Svatos Dugan6b81193b105e
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 3ae52a56ad3d..99d879de38f4 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -9641,9 +9641,9 @@ snapshots:
scenes-app-project-homepage--project-homepage--light:
hash: v1.k794b7964.45567c13e93e1def5dabfea7b6a4a5a47253482e6dd5c587be257ae5b9374639.IC346vxEHrTKcFor0vVTajrOk8lCGCu3C5pdFW2iTOQ
scenes-app-replay-vision--home-watch-feed--dark:
- hash: v1.k794b7964.268977e5e04ed1b1bda4c6e08ddd38efcaf687b8a316c297b876ab2262ca9c39.eTy9THa8yZqoJNNNpSe3aV_APrxAOwkefDb1y6CWedI
+ hash: v1.k794b7964.0de3098e0605993947f355d216016208c1d42beef59fa667746c851880bd3c7f.BdR__fH7LgRudacmcHVOlMwJcMjtCCEps4Z6ccewCf4
scenes-app-replay-vision--home-watch-feed--light:
- hash: v1.k794b7964.1d9ed7bef6b3f4ed4ea9cb5b853e1986f397ecca41b52459654409e430526350.h6pTg6AprZOfKXZ6tqv8h53yGlX3nnHmY4meEnFZTg8
+ hash: v1.k794b7964.8e172704c8b815db9c9045858c999c6a8cd68f16d622ad43c1bdefac10afff72.P2qDJ_vpuNVdE7MBxkAQzKE_V-K04IT9Sc2eFaqFank
scenes-app-replay-vision--home-watch-feed-empty--dark:
hash: v1.k794b7964.a11e227e448c902b9992de9bce152859ab05891f01cd88c2363cd0c1d8ae0224.auA_OUt2YDuk88h8lAnes98ekvGzA7_-8xrUtAEAoSY
scenes-app-replay-vision--home-watch-feed-empty--light:
diff --git a/products/replay_vision/frontend/replay_scanners/components/WatchFeedCard.tsx b/products/replay_vision/frontend/replay_scanners/components/WatchFeedCard.tsx
index a92e1c8962d9..70ceec3e52fa 100644
--- a/products/replay_vision/frontend/replay_scanners/components/WatchFeedCard.tsx
+++ b/products/replay_vision/frontend/replay_scanners/components/WatchFeedCard.tsx
@@ -85,12 +85,20 @@ export function WatchFeedCard({ item, position }: WatchFeedCardProps): JSX.Eleme
const { observation, reason } = item
const { openSessionPlayer } = useActions(sessionPlayerModalLogic)
const clip = observationClipRange(observation)
- const scannerType = observation.scanner_snapshot?.scanner_type as ScannerType | undefined
+ const result = readResult(observation)
+ // Fall back to the result's own scanner_type when the snapshot is absent, like observationClipRange,
+ // so a scan with no snapshot still places its outcome in the right spot.
+ const scannerType =
+ (observation.scanner_snapshot?.scanner_type as ScannerType | undefined) ??
+ (result?.scanner_type as ScannerType | undefined)
const scannerName = (observation.scanner_snapshot?.name as string | undefined) || '(untitled scanner)'
const person = observation.recording_subject_email || observation.distinct_id
+ // A monitor verdict or a scorer score is a single token, so it rides the header row instead of
+ // taking its own line. Classifier tags and summarizer text need the body's full width, so their
+ // outcome stays there.
+ const outcomeInHeader = scannerType === 'monitor' || scannerType === 'scorer'
// Summarizers already tell the story through title + summary; the other types show only an
// outcome chip, so bring their reasoning along for context, clamped to keep the card scannable.
- const result = readResult(observation)
const reasoning =
scannerType !== 'summarizer' && typeof result?.reasoning === 'string'
? { text: result.reasoning, segments: result.reasoning_segments }
@@ -157,6 +165,13 @@ export function WatchFeedCard({ item, position }: WatchFeedCardProps): JSX.Eleme
<div className="flex flex-wrap items-center gap-2 min-w-0">
{scannerType && <ScannerTypeBadge scannerType={scannerType} />}
<span className="text-muted text-sm truncate">{scannerName}</span>
+ {/* Above the card's full-area overlay link, like the other interactive
+ elements, so the outcome's hover tooltip stays reachable. */}
+ {outcomeInHeader && (
+ <span className="relative z-10">
+ <ObservationResultSummary observation={observation} />
+ </span>
+ )}
</div>
<LemonButton
type="secondary"
@@ -179,7 +194,7 @@ export function WatchFeedCard({ item, position }: WatchFeedCardProps): JSX.Eleme
data-attr="vision-watch-feed-card-body"
>
<div className="flex flex-col gap-1">
- <ObservationResultSummary observation={observation} />
+ {!outcomeInHeader && <ObservationResultSummary observation={observation} />}
{reasoning && (
<p className="text-muted m-0 line-clamp-2">
<CitedText text={reasoning.text} segments={reasoning.segments} />