: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(replay-vision): stop counting displayed errors as session friction (#89895)
Carlos Marchal3a238b60e2db
diff --git a/products/replay_vision/backend/temporal/scanners/prompts/summarizer_facets_step.jinja b/products/replay_vision/backend/temporal/scanners/prompts/summarizer_facets_step.jinjaindex d5cf818e17f6..abbdc016934d 100644--- a/products/replay_vision/backend/temporal/scanners/prompts/summarizer_facets_step.jinja+++ b/products/replay_vision/backend/temporal/scanners/prompts/summarizer_facets_step.jinja@@ -2,7 +2,7 @@ Now produce facets that characterize this session for free-text search by future- `intent`: one sentence about what the user set out to do (their goal).- `outcome`: one sentence on the final state — do not restate the summary.-- `friction_points`: list of named blockers, errors, or frustrations the user hit (empty if none). Only include things the user would notice — visible error states, dead clicks, rage clicks, abandoned actions, page reloads. Background JS console errors that don't affect the UI (ResizeObserver loops, feature-flag fetch failures, third-party script noise) are not friction.+- `friction_points`: list of named blockers, errors, or frustrations the user hit (empty if none). Only include things the user would notice — visible error states, dead clicks, rage clicks, abandoned actions, page reloads. Background JS console errors that don't affect the UI (ResizeObserver loops, feature-flag fetch failures, third-party script noise) are not friction. Neither is error content the product exists to display: on a monitoring, logging, tracing, exception, or support surface, the errors on screen are the data the user came to read, so reading them is the product working. On those surfaces, record friction only when the product itself failed the user — it didn't load, it didn't accept an action, or it 404'd.- `keywords`: 5-15 distinctive lowercase terms — favor action verbs and specific feature names; skip generic terms ('user', 'session', 'navigation') and the product/team name.Write every field as plain text — they're embedded for free-text search, so `(t …)` citation markers would just be noise.