fix(replays): handle sentry.cocoa.unreal in configure replay card - #119235
Merged
Conversation
sentry-unreal embeds the Cocoa SDK for iOS builds of Unreal Engine games, which reports its SDK name as 'sentry.cocoa.unreal'. This SDK name was not in the getPath() switch in configureReplayCard.tsx, causing it to fall to the default branch: captureMessage fired on every affected page load, and all three Configure Replay dropdown items were disabled. Adding 'sentry.cocoa.unreal' as a fall-through to the existing 'sentry.cocoa' case routes it to the same apple/guides/ios docs path. Refs SENTRY-issue Co-Authored-By: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
billyvg
marked this pull request as ready for review
July 8, 2026 17:05
- Use menuitemradio role (react-aria renders DropdownMenu items as role=menuitemradio, not option) - Remove spurious async from test that has no await expression Co-Authored-By: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
ryan953
approved these changes
Jul 8, 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.
What
Adds
sentry.cocoa.unrealto thegetPath()switch inconfigureReplayCard.tsx, routing it to the sameapple/guides/iosdocs path assentry.cocoa.Why
sentry-unreal(see sentry-unreal#1468) embeds the Cocoa SDK to provide Session Replay on iOS builds of Unreal Engine games. That embedded SDK reports its name assentry.cocoa.unreal. Because this name wasn't in thegetPath()switch:defaultbranch, firingSentry.captureMessage('Unknown mobile platform in configure card: sentry.cocoa.unreal')The underlying replay implementation is the standard Cocoa SDK, so
apple/guides/iosis the correct docs target.Changes
configureReplayCard.tsx: addcase 'sentry.cocoa.unreal':as a fall-through tocase 'sentry.cocoa':with an explanatory commentconfigureReplayCard.spec.tsx: new test file coveringsentry.cocoa.unreal→ enabled menu items and nocaptureMessage, plus regression coverage for unknown SDK namesVerification
TypeScript compiler not available in sandbox; relied on manual review of the one-line fall-through change. CI will cover type checks and the new spec.
Fixes JAVASCRIPT-3ARC
--
View Junior Session in Sentry