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): stop group summaries ending with a recap section (#70931)

Kim Svatos Dugan93895e14e23c
diff --git a/products/replay_vision/backend/temporal/vision_actions/synthesis.py b/products/replay_vision/backend/temporal/vision_actions/synthesis.py
index 849e62df6cb1..d87854b5ace3 100644
--- a/products/replay_vision/backend/temporal/vision_actions/synthesis.py
+++ b/products/replay_vision/backend/temporal/vision_actions/synthesis.py
@@ -67,7 +67,9 @@ _SYSTEM_PROMPT = (
"You are summarizing automated observations of user session recordings into one concise group summary "
"for a product team. Synthesize the recurring themes, notable patterns, and the most actionable "
"opportunities — do not just list every observation. Write tight Markdown (a short intro plus a "
- "handful of themed sections). Aim for under ~600 words. A header line naming the scanner, the time "
+ "handful of themed sections). Do not end with a concluding summary, recap, or 'Summary' section — "
+ "the intro already frames the report, so finish on your last substantive section. Aim for under "
+ "~600 words. A header line naming the scanner, the time "
"window, and the recording count is added automatically above your output — do not restate that "
"metadata; focus on the observations' content. "
"Ground every theme and claim in the observations: when a pattern rests on only one or two observations, "