From 7407e6cb37fbb2d907c0e0fab881177fcb80a90f Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 25 May 2026 23:44:31 -0700 Subject: [PATCH] =?UTF-8?q?[eric]=20windows=201.1.58:=20three=20fixes=20?= =?UTF-8?q?=E2=80=94=20(a)=20revert=20file-input=20restore:=20=20is=20ALSO=20a=20Windows=20commit-phase=20crasher?= =?UTF-8?q?=20just=20like=20the=20contentEditable=20was,=20both=20must=20s?= =?UTF-8?q?tay=20ablated,=20drag-and-drop=20still=20works;=20(b)=20nuclear?= =?UTF-8?q?-disable=20OnboardingRoot=20on=20Windows=20since=20the=20Agenti?= =?UTF-8?q?cCursor=20visual=20ablation=20alone=20was=20insufficient=20(Onb?= =?UTF-8?q?oarding=20panel/director/popups=20have=20additional=20Framer=20?= =?UTF-8?q?Motion=20+=20portal=20subtrees=20that=20segfault=20on=20commit)?= =?UTF-8?q?=20=E2=80=94=20user=20loses=20the=20guided=20tour=20on=20Window?= =?UTF-8?q?s=20but=20the=20rest=20of=20the=20app=20works;=20(c)=20remove?= =?UTF-8?q?=20iframe=20sandbox=20from=20BrowserCard=20so=20sites=20that=20?= =?UTF-8?q?need=20full-document=20access=20can=20render=20(Google=20specif?= =?UTF-8?q?ically=20still=20appears=20grey=20because=20they=20run=20JavaSc?= =?UTF-8?q?ript=20anti-iframe=20detection=20that=20blanks=20document.body?= =?UTF-8?q?=20when=20window.top=20!=3D=3D=20window.self,=20which=20header?= =?UTF-8?q?=20stripping=20cannot=20defeat;=20most=20non-Google=20sites=20s?= =?UTF-8?q?hould=20render=20fine=20now);=20Mac=20path=20untouched?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/package.json | 2 +- .../src/app/components/Onboarding/OnboardingRoot.tsx | 4 ++++ .../AgentChat/ChatInput/toolbar/ToolbarActions.tsx | 7 +++---- .../src/app/pages/Dashboard/cards/BrowserCard.tsx | 11 ++++++++++- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/electron/package.json b/electron/package.json index 00871f0a..2295bf45 100644 --- a/electron/package.json +++ b/electron/package.json @@ -1,6 +1,6 @@ { "name": "openswarm", - "version": "1.1.57", + "version": "1.1.58", "description": "OpenSwarm — AI Agent Orchestrator", "author": "openswarm-ai", "main": "main.js", diff --git a/frontend/src/app/components/Onboarding/OnboardingRoot.tsx b/frontend/src/app/components/Onboarding/OnboardingRoot.tsx index c528757e..916cf1c8 100644 --- a/frontend/src/app/components/Onboarding/OnboardingRoot.tsx +++ b/frontend/src/app/components/Onboarding/OnboardingRoot.tsx @@ -24,6 +24,10 @@ import { report } from './telemetry'; const PERSIST_DEBOUNCE_MS = 200; const OnboardingRoot: React.FC = () => { + // Windows nuclear ablation v1.1.58: the AgenticCursor motion.div gate in 1.1.57 was not sufficient — OnboardingPanel / OnboardingDirector / popups have additional Framer Motion + portal subtrees that segfault on commit. Return null on Windows so the entire onboarding UI is suppressed; user can still use the app normally without the guided tour. Mac unchanged. + if (typeof navigator !== 'undefined' && navigator.userAgent.includes('Windows')) { + return null; + } const acRef = useRef(null); const dispatch = useAppDispatch(); const store = useStore() as Store; diff --git a/frontend/src/app/pages/AgentChat/ChatInput/toolbar/ToolbarActions.tsx b/frontend/src/app/pages/AgentChat/ChatInput/toolbar/ToolbarActions.tsx index 5fb8fc8e..80bee944 100644 --- a/frontend/src/app/pages/AgentChat/ChatInput/toolbar/ToolbarActions.tsx +++ b/frontend/src/app/pages/AgentChat/ChatInput/toolbar/ToolbarActions.tsx @@ -3,9 +3,8 @@ import Box from '@mui/material/Box'; import IconButton from '@mui/material/IconButton'; import Tooltip from '@mui/material/Tooltip'; -// File input was ablated in v1.1.54 as a suspected crasher, but the actual crasher turned out to be contentEditable's TSF init (now replaced with textarea in EditorSurface). Restored on both platforms in v1.1.57. Keeping IS_WIN reference removal would require touching call sites; harmless left here as a constant. +// Windows ablation re-instated in v1.1.58: the file input AND the contentEditable were BOTH crashers. v1.1.57's restore of brought back the AgentChat-children commit segfault (crash fires right after AgentChat:before-jsx without any child render logs). Drag-and-drop attach still works via AttachmentChips drop zone on Windows. Future: replace this button with an Electron native showOpenDialog IPC so the button is functional on Windows again without touching . const IS_WIN = typeof navigator !== 'undefined' && navigator.userAgent.includes('Windows'); -void IS_WIN; import MicNoneOutlinedIcon from '@mui/icons-material/MicNoneOutlined'; import ArrowUpwardIcon from '@mui/icons-material/ArrowUpward'; import StopIcon from '@mui/icons-material/Stop'; @@ -93,7 +92,7 @@ export const ToolbarActions: React.FC = ({ })()} {/* Windows-only ablation: hidden + attach button skipped on Windows to test whether IFileDialog COM init is the trigger for the Chromium 144 commit-phase segfault. Mac still renders both (drag/paste/click attach all work). On Windows, drag-and-drop attach still works via AttachmentChips drop zone. */} - {true && ( + {!IS_WIN && ( = ({ }} /> )} - {true && ( + {!IS_WIN && ( = ({