PostHog / PostHog/posthog-flutter

Respect session replay feature flag after /config endpoint call

Open
#441 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Session Replay
Dominant language
Dart
Stars
97
Forks
85
Avg merge
1d 8h
Merged PRs (30d)
31

Description

Description

Ticket: https://posthoghelp.zendesk.com/agent/tickets/20809 (moved to PostHog: https://us.posthog.com/project/2/support/tickets/29952)

Session recordings start as soon as the app launches, but feature flag evaluation is executed asynchronously.
If the cached value is different that the value returned from /decide endpoint, then the recording may start (and not stop) when the flag evaluates to false

A possible fix is to mem-cache screenshots and skip processing until the /decide API has been successfully called - there are some memory footprint consideration here. We may need to use a different disk-backed queue, and drop or merge the queues once the flag evaluates?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Trace the Flutter session recording startup path alongside the asynchronous feature-flag evaluation and the /decide endpoint call. Review the proposed screenshot caching or queue behavior, then verify that recording does not start or continue when the evaluated session replay flag is false.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.