fix: Ensure root messenger has required function for error reporting#27794
Conversation
292442b to
1617775
Compare
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Why this is medium risk (not high):
Why broad testing is still warranted:
Tags selected:
Tags NOT selected:
Performance Test Selection: |
|
✅ E2E Fixture Validation — Schema is up to date |
|



Description
The root messenger on mobile does not currently have a
captureExceptionfunction passed. This means that any controllers relying onmessenger.captureExceptionto record unhandled errors are having their errors swallowed. This PR fixes it by passing in the SentrycaptureExceptionfunction.Changelog
CHANGELOG entry: Fixed an issue where certain error reporting would not work
Note
Low Risk
Low risk: wires existing Sentry
captureExceptioninto rootMessenger/ExtendedMessengerconstruction; behavior change is limited to enabling error capture for controllers that opt into it.Overview
Fixes missing error reporting on mobile by importing Sentry’s
captureExceptionand passing it into bothgetRootExtendedMessengerandgetRootMessengerinapp/core/Engine/types.ts.This ensures controllers using
messenger.captureExceptioncan forward unhandled errors to Sentry instead of silently swallowing them.Written by Cursor Bugbot for commit 1617775. This will update automatically on new commits. Configure here.