From dd9d5a367c7e95357222e430051eeb33a1d1216f Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 27 May 2026 19:34:30 -0700 Subject: [PATCH] [eric] fix: stop the windows renderer segfault on view previews by falling back to iframe like browser cards already do --- frontend/src/app/pages/Views/ViewPreview.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/pages/Views/ViewPreview.tsx b/frontend/src/app/pages/Views/ViewPreview.tsx index 4b1bf557..e9dc9d2a 100644 --- a/frontend/src/app/pages/Views/ViewPreview.tsx +++ b/frontend/src/app/pages/Views/ViewPreview.tsx @@ -7,8 +7,8 @@ import { useIframeElementSelector } from './useIframeElementSelector'; import { getAuthToken, ensureAuthToken } from '@/shared/config'; import { useClaudeTokens } from '@/shared/styles/ThemeContext'; -// In Electron use to escape iframe restrictions (popups, mic/camera, WebAuthn, cookied fetch); outside Electron fall back to iframe. -const isElectron = navigator.userAgent.includes('Electron'); +// In Electron use to escape iframe restrictions (popups, mic/camera, WebAuthn, cookied fetch); outside Electron fall back to iframe. Windows-Electron also falls back: the tag mount segfaults the renderer on Chromium 144 + Electron 40 CastLabs (same crash as BrowserCard.tsx:77). +const isElectron = navigator.userAgent.includes('Electron') && !navigator.userAgent.includes('Windows'); // Card previews render small; downscale + JPEG so thumbnails don't bloat the output JSON or every list fetch. const THUMB_WIDTH = 600;