Skip to content

fix(replay): Clear the saved screen name when it becomes null - #6827

Merged
romtsn merged 3 commits into
mainfrom
fix/replay-null-screen-name
Dec 1, 2026
Merged

romtsn merged 3 commits into
mainfrom
fix/replay-null-screen-name

Conversation

@romtsn

@romtsn romtsn commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

📜 Description

Remove the saved screen name when the last named frame leaves the replay buffer. Previously the SDK wrote the string "null", which crash recovery then added to replay.urls as a screen name.

💡 Motivation and Context

Fixes #6805. Resolves JAVA-859.

💚 How did you test it?

Added a regression test for a buffer that goes from HomeActivity to no named screen. It failed before the fix because the cache received a string instead of a null reference. All 85 tests in the buffer capture, session capture, and replay cache test classes passed after the fix.

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.

🔮 Next steps

None.

🤖 Generated with Claude Code

@linear-code

linear-code Bot commented Dec 1, 2026

Copy link
Copy Markdown

JAVA-859

Co-Authored-By: Claude Code <[email protected]>
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

PR risk: medium

For commit 9e9af26.

Main concerns: data sent to Sentry, reach.

This label is a hint for reviewers, not an approval.

@sentry

sentry Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.66.0 (1) release

⚙️ sentry-android Build Distribution Settings

@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Dec 1, 2026
@romtsn
romtsn marked this pull request as ready for review December 1, 2026 10:45
@romtsn
romtsn requested review from a team and adinauer as code owners December 1, 2026 10:45
@romtsn
romtsn requested review from 0xadam-brown and runningcode and removed request for a team December 1, 2026 10:45
@romtsn romtsn added the ship-it PR is ready to merge from a reviewer perspective label Dec 1, 2026
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Dec 1, 2026
@romtsn
romtsn enabled auto-merge (squash) December 1, 2026 10:59
@romtsn
romtsn merged commit 71b74ad into main Dec 1, 2026
54 checks passed
@romtsn
romtsn deleted the fix/replay-null-screen-name branch December 1, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium ship-it PR is ready to merge from a reviewer perspective

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Session Replay: clearing screenAtStart to null persists literal "null" in .ongoing_segment

2 participants