From c3d514bf1c7d85270cf11eda2167388fe4762002 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 27 May 2026 20:06:08 -0700 Subject: [PATCH] [eric] fix: complete the windows ablation by rendering textarea in editorsurface and skipping the onboarding video element entirely --- .../components/Onboarding/OnboardingPanel.tsx | 5 +- .../ChatInput/view/EditorSurface.tsx | 85 +++++++++++++------ 2 files changed, 61 insertions(+), 29 deletions(-) diff --git a/frontend/src/app/components/Onboarding/OnboardingPanel.tsx b/frontend/src/app/components/Onboarding/OnboardingPanel.tsx index 3e299d7a..85386811 100644 --- a/frontend/src/app/components/Onboarding/OnboardingPanel.tsx +++ b/frontend/src/app/components/Onboarding/OnboardingPanel.tsx @@ -443,12 +443,11 @@ const StepCardBody: React.FC = ({ : undefined, }} > - {step.videoSrc ? ( + {step.videoSrc && !(typeof navigator !== 'undefined' && navigator.userAgent.includes('Windows')) ? ( void; } +// Windows-Electron:
mounts hit a Chromium 144 TSF native crash on commit; the textarea ablation the handlers/draft already route for has to land here too or the renderer segfaults. +const IS_WIN_ELECTRON = typeof navigator !== 'undefined' && navigator.userAgent.includes('Windows') && navigator.userAgent.includes('Electron'); + export const EditorSurface: React.FC = ({ c, editorRef, disabled, hasContent, hasAttachments, autoRunMode, isRunning, queueLength, placeholderLabel, onInput, onClick, onKeyDown, onPaste, @@ -32,32 +35,62 @@ export const EditorSurface: React.FC = ({ return ( -
+ {IS_WIN_ELECTRON ? ( +