Skip to content

bugfix: deliver breadcrumbs to native crash reports - #392

Merged
KishanPRao merged 3 commits into
mainfrom
fix/rn-breadcrumb
Sep 1, 2026
Merged

bugfix: deliver breadcrumbs to native crash reports#392
KishanPRao merged 3 commits into
mainfrom
fix/rn-breadcrumb

Conversation

@KishanPRao

Copy link
Copy Markdown
Collaborator

Summary

Breadcrumbs never reached native crash reports: nothing pushed the chunk files or breadcrumbs.lastId after init, and rotation never triggered because exact-boundary splits were dropped.

Changes

  • FileChunkSink.ts: adds an onFilesChange hook, fires it whenever a chunk file is created.
  • FileBreadcrumbsStorage.ts: forwards the hook with the current last breadcrumb id.
  • BacktraceClient.ts: pushes the attachment list and breadcrumbs.lastId to the native crash reporter on every chunk creation.
  • combinedChunkSplitter.ts: keeps empty second chunks so exact-boundary splits are not dropped.
  • nativeBreadcrumbPropagationTests.spec.ts: new, asserts rotated files reach native, chunk 0 drops out of the last push, pushed id advances.
  • combinedChunkSplitter.spec.ts: new, covers splitter combining and the exact-boundary split.

ref: BT-7501, BT-7564

@KishanPRao KishanPRao self-assigned this Sep 1, 2026
@KishanPRao KishanPRao added the bug Something isn't working label Sep 1, 2026
@KishanPRao
KishanPRao requested a review from melekr September 1, 2026 12:27
@KishanPRao
KishanPRao marked this pull request as ready for review September 1, 2026 12:51
@KishanPRao
KishanPRao merged commit 71bb842 into main Sep 1, 2026
12 checks passed
@KishanPRao
KishanPRao deleted the fix/rn-breadcrumb branch September 1, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants