Skip to content

Conversation

arthurdedeus
Copy link
Contributor

@arthurdedeus arthurdedeus commented Oct 17, 2025

Problem

Button isn't really working, as it hits the endpoint to summarize multiple sessions passing in too few sessions. This leads to no patterns being identified and basically no value.

Instead, we should be summarizing the sessions individually, as the person feed only shows up to a handful of sessions at a time, and breaking down the summaries by session.

Closes #38941

Changes

  • Hit endpoint to summarize sessions individually for each session with recording
  • Refactor the components to display single session summary response

UI components are a bit raw still, there are a lot of points to be improved. Hyperlinking exceptions to error tracking, link to specific segments of session replay, events, etc.

Loading state

image

Error state

image

Summary ready

image

Expanded summary and segment

image

How did you test this code?

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Changelog: (features only) Is this feature complete?

Copy link
Contributor

Size Change: +134 B (0%)

Total Size: 3.3 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 3.3 MB +134 B (0%)

compressed-size-action

@arthurdedeus arthurdedeus self-assigned this Oct 20, 2025
@arthurdedeus arthurdedeus marked this pull request as ready for review October 20, 2025 16:28
@arthurdedeus arthurdedeus requested review from a team, rafaeelaudibert and sortafreel and removed request for a team October 20, 2025 16:29
@posthog-bot posthog-bot requested a review from daibhin October 20, 2025 16:30
Copy link
Contributor

greptile-apps bot commented Oct 20, 2025

Greptile encountered an error while reviewing this PR. Please reach out to [email protected] for assistance.

Copy link
Contributor

@lucasheriques lucasheriques left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great. good testing and nice screenshots too. left one very minor comment

<span>{formatDuration(segment.meta?.duration || 0)}</span>
</div>

{keyActions && keyActions.events && keyActions.events.length > 0 && (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{keyActions && keyActions.events && keyActions.events.length > 0 && (
{keyActions?.events && keyActions.events.length > 0 && (

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AI session summary button

2 participants