From 1ce50ba1e4171659c46dc67f893abaf8e3008d20 Mon Sep 17 00:00:00 2001 From: MocA-Love Date: Sat, 4 Apr 2026 09:04:26 +0900 Subject: [PATCH] fix(desktop): filter webview GUEST_VIEW_MANAGER_CALL errors from Sentry External site navigation errors (ERR_ABORTED, ERR_CONNECTION_REFUSED) in embedded webviews surface as unhandled rejections with GUEST_VIEW_MANAGER_CALL. These are not actionable app bugs. Fixes ELECTRON-M, ELECTRON-W --- apps/desktop/src/renderer/lib/sentry.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/desktop/src/renderer/lib/sentry.ts b/apps/desktop/src/renderer/lib/sentry.ts index d97a296d628..7e2b63b27c3 100644 --- a/apps/desktop/src/renderer/lib/sentry.ts +++ b/apps/desktop/src/renderer/lib/sentry.ts @@ -17,6 +17,15 @@ export async function initSentry(): Promise { dsn: env.SENTRY_DSN_DESKTOP, environment: env.NODE_ENV, tracesSampleRate: 0.1, + beforeSend(event) { + const message = event.exception?.values?.[0]?.value ?? ""; + // Webview navigation errors (ERR_ABORTED, ERR_CONNECTION_REFUSED, etc.) + // are external-site issues, not actionable app bugs. + if (message.includes("GUEST_VIEW_MANAGER_CALL")) { + return null; + } + return event; + }, }); sentryInitialized = true;