Skip to content

Report crashes with @sentry/electron 8 - #381

Merged
jtklein-agents merged 1 commit into
spec/370-electron-build-and-runtime-packages-currentfrom
376-report-crashes-with-sentry-electron-8
Nov 25, 2026
Merged

jtklein-agents merged 1 commit into
spec/370-electron-build-and-runtime-packages-currentfrom
376-report-crashes-with-sentry-electron-8

Conversation

@jtklein-agents

Copy link
Copy Markdown
Owner

Closes #376. Part of #370.

Summary

 package.json
-  "@sentry/electron": "^4.0.2",
+  "@sentry/electron": "^8.4.0",

 src/main/api.ts   (still gated on !is.development)
   Sentry.init( {
     dsn,
     maxValueLength: 2000,
+    release: `raxmlGUI@${app.getVersion()}`,   // same name the source-map upload uses
+    dataCollection: { userInfo: false },       // no user IPs
   } );

 src/app/index.tsx
-  Sentry.init( { dsn } );
+  Sentry.init();                               // page reaches main over the SDK's IPC

 e2e/no-node.spec.js
+  expect( typeof window.__SENTRY_IPC__ ).toBe( 'object' );

IPC uses the SDK's auto-registered preload. src/preload/index.ts is unchanged, so the page now has one global besides rendererBridge: __SENTRY_IPC__.

Evidence

  • Before: no-node.spec.js did not check whether the Sentry IPC global was on the page.
    After: on macOS, yarn test:e2e passes 4/4, including the built page has no Node with __SENTRY_IPC__ present.
  • yarn typecheck, yarn lint and yarn test pass (67 files, 474 tests, including src/preload.test.ts).
  • I haven't run Ubuntu or Windows locally; CI covers those.

Merge Danger

Door: two-way

Reverting the commit restores the 4.x SDK and its settings.

Blast Radius: telemetry

Only crash reporting in production builds changes. If the IPC path failed, page errors would stop reaching Sentry, but the app would still run. Events now carry the explicit release and no user IP.

🤖 Generated with Claude Code

Bump @sentry/electron to ^8. Main init sets an explicit
raxmlGUI@<version> release (matching the source-map upload) and turns
off user info; the page init drops its dsn. IPC uses the SDK's
auto-registered preload, and the no-node e2e now asserts that
__SENTRY_IPC__ is on the page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jtklein-agents
jtklein-agents merged commit 2fa445b into spec/370-electron-build-and-runtime-packages-current Nov 25, 2026
9 checks passed
@jtklein-agents
jtklein-agents deleted the 376-report-crashes-with-sentry-electron-8 branch November 25, 2026 22:46
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.

1 participant