feat(replay): allow disabling touch capture - #780
Merged
Conversation
This was referenced Sep 11, 2026
Merged
marandaneto
marked this pull request as ready for review
September 11, 2026 10:50
Contributor
|
marandaneto
marked this pull request as draft
September 11, 2026 11:11
marandaneto
marked this pull request as ready for review
September 11, 2026 11:11
Contributor
|
Reviews (2): Last reviewed commit: "refactor: configure replay touch capture..." | Re-trigger Greptile |
turnipdabeets
approved these changes
Sep 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💡 Motivation and Context
Masked PIN keypads can still reveal the entered value through replay touch coordinates. Pixel masking does not hide taps on a known layout. Reported in PostHog/posthog-flutter#570.
Flutter integration: PostHog/posthog-flutter#575. iOS counterpart: PostHog/posthog-ios#823.
Add
PostHogSessionReplayConfig.captureTouches, enabled by default. Set it before SDK setup to disable touch recording without stopping screenshots or view capture. The interceptor still delivers touches to the app but skips replay collection when disabled. Existing constructor signatures are unchanged. Runtime changes are not supported.💚 How did you test it?
📝 Checklist
If releasing new changes
🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Pi implemented the change in an isolated worktree using Gradle, Flutter, adb, a local test server, and autoreview for validation and review. The implementation follows the requested initialization-only configuration. The session transcript remains local. Human review is required.