Skip to content

fix: Only add main process context lines to renderer frames in the app directory - #1469

Merged
timfish merged 2 commits into
masterfrom
ccr-6ee1cfbd-3n8uz3
Oct 15, 2026
Merged

timfish merged 2 commits into
masterfrom
ccr-6ee1cfbd-3n8uz3

Conversation

@timfish

@timfish timfish commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Renderer stack frames mostly hold renderer URLs, which the main process ContextLines integration cannot resolve. Preload script frames are the exception: they are files in the app directory, and the main process adds context lines to them.

This marks events from renderers in sdkProcessingMetadata and wraps the ContextLines integration. For renderer events, it only adds context lines to frames whose file is inside app.getAppPath(). Main process and utility process events are not changed. The wrapper also applies when users add contextLinesIntegration themselves.

The marker uses sdkProcessingMetadata, so it is not sent to Sentry.

Renderer stack frames hold renderer URLs, not paths in the main process
filesystem. The main process ContextLines integration now skips events
that come from renderers.
@timfish
timfish requested review from JPeer264 and mydea October 15, 2026 11:12
Preload script frames are files in the app directory and need main
process context lines. Renderer frames outside the app directory still
get none.
@timfish timfish changed the title fix: Do not add main process context lines to renderer events fix: Only add main process context lines to renderer frames in the app directory Oct 15, 2026
@timfish
timfish enabled auto-merge (squash) October 15, 2026 11:33
Comment thread src/main/renderer-event.ts
Comment thread test/unit/renderer-event.test.ts
@timfish
timfish merged commit d44fd5b into master Oct 15, 2026
115 checks passed
@timfish
timfish deleted the ccr-6ee1cfbd-3n8uz3 branch October 15, 2026 12:02
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