Skip to content

feat: resolve crash-hint attachments from __sentry-attachments - #170

Merged
jpnurmi merged 1 commit into
getsentryfrom
jpnurmi/feat/attachment-manifest
Sep 21, 2026
Merged

jpnurmi merged 1 commit into
getsentryfrom
jpnurmi/feat/attachment-manifest

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Sep 18, 2026 •

Copy link
Copy Markdown
Collaborator

Resolve final attachments from the __sentry-attachments manifest file if present. This makes it possible to modify attachments from on_crash during crash-handling, when IPC is not available.

💡 Notice that the fast async IPC route remains for normal runtime attachment changes. A sync manifest is only written if crash-time modifications via the on_crash hook are detected, which is only possible for non-fastfail crashes. If/when the manifest is present, it overrides the entire list of attachments. This way, it supports all operations, including adding and removing individual attachments, and even clearing all attachments.

Tested by and required for:

Resolve final attachments from the `__sentry-attachments` manifest file
if present. This makes it possible to modify attachments during crash
handling via `hint` - IPC is not usable at that point. The manifest is
only written if crash-time modifications are detected, and in that
case it overrides/replaces the entire list of attachments to support
all operations including clearing the attachments.
Comment thread client/crash_report_database.cc
@jpnurmi
jpnurmi requested a review from mujacica September 21, 2026 15:47
@jpnurmi
jpnurmi merged commit 000e3ad into getsentry Sep 21, 2026
27 checks passed
@jpnurmi
jpnurmi deleted the jpnurmi/feat/attachment-manifest branch September 21, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants