Skip to content

feat: add cache_dir header for external crash reporters#1698

Merged
jpnurmi merged 7 commits into
masterfrom
jpnurmi/fix/cache-external
May 11, 2026
Merged

feat: add cache_dir header for external crash reporters#1698
jpnurmi merged 7 commits into
masterfrom
jpnurmi/fix/cache-external

Conversation

@jpnurmi

@jpnurmi jpnurmi commented May 5, 2026

Copy link
Copy Markdown
Collaborator

External crash reporters only receive the envelope path, so include the cache directory in envelope headers when cache_keep is enabled. This lets capable reporters cache related files without changing the single-argument CLI protocol.

See also:

@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 5c213cc

Comment thread src/sentry_core.c
jpnurmi and others added 2 commits May 5, 2026 10:07
External crash reporters only receive the envelope path, so include the cache
directory in envelope headers when cache_keep is enabled. This lets capable
reporters cache related files without changing the one-argument protocol.

Fixes GH-1688
Co-Authored-By: OpenAI Codex <noreply@openai.com>
@jpnurmi jpnurmi force-pushed the jpnurmi/fix/cache-external branch from b6943ef to 2cab8cd Compare May 5, 2026 08:10
The native crash daemon loads crash envelopes from disk as raw envelopes.
Materialize them before launching an external crash reporter when cache_keep
is enabled, so the shared launcher can add the cache_dir header without
mutating raw envelopes itself.

Refs GH-1688
Co-Authored-By: OpenAI Codex <noreply@openai.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 3454003. Configure here.

Comment thread src/backends/native/sentry_crash_daemon.c
jpnurmi and others added 4 commits May 6, 2026 10:38
Keep sentry__envelope_materialize in-place, but restore the original raw
payload when parsing fails. This lets callers warn and continue instead of
sending or falling back with a corrupted envelope.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@jpnurmi jpnurmi merged commit c37ee0a into master May 11, 2026
98 of 99 checks passed
@jpnurmi jpnurmi deleted the jpnurmi/fix/cache-external branch May 11, 2026 14:11
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.

3 participants