cmux/Sources
austinpower1258 1217ba3295 Fix crash on launch: exclusive access violation in drag handle hit test (#490)
During app launch, mouseMoved events can trigger hitTest on the drag
handle while SwiftUI is still modifying view state in a layout pass.
The previous blacklist approach (only deferring mouseMoved, cursorUpdate,
nil) let unexpected event types slip through — e.g. activation events
where NSApp.currentEvent is not the mouseMoved being routed — causing
contentView.hitTest() to re-enter SwiftUI views and trigger an exclusive
access violation.

Switch to a whitelist: only leftMouseDown (the sole event the drag
handle actually handles) proceeds with the full view-hierarchy walk.
All other event types bail out immediately. The deferred-event check
runs after suppression recovery (which uses only ObjC associated-object
calls, safe from Swift exclusivity) so stale suppression is still
cleared on passive events, but before the view-hierarchy walk that
triggered the crash.

Fixes #490

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 14:04:46 -08:00
..
Find Break terminal find overlay retain cycle 2026-02-22 16:29:35 -08:00
Panels Use sheet modal for insecure HTTP warning prompt (#511) 2026-02-25 18:00:45 -08:00
Update Throttle titlebar accessory sizing churn 2026-02-25 16:47:38 -08:00
AppDelegate.swift Add cmux_hourly_active event for hourly retention cohorts (#514) 2026-02-25 18:33:57 -08:00
Backport.swift Polish browser suggestions, focus, and tagged reload flow 2026-02-14 21:33:28 -08:00
BrowserWindowPortal.swift Fix double-click titlebar zoom not working on browser panel side 2026-02-24 14:35:10 -08:00
cmuxApp.swift Use command palette flow for workspace rename shortcut 2026-02-25 05:12:49 -08:00
ContentView.swift Cache sidebar drop UTTypes and hint width metrics 2026-02-25 16:39:09 -08:00
GhosttyConfig.swift Cache Ghostty config loads on UI path 2026-02-25 15:15:34 -08:00
GhosttyTerminalView.swift Honor focus-follows-mouse on terminal hover (#519) 2026-02-25 18:43:41 -08:00
KeyboardLayout.swift Use typed unretained cast for input source ID 2026-02-25 02:45:55 -08:00
KeyboardShortcutSettings.swift Restore Cmd+Shift+R as rename workspace 2026-02-25 05:07:26 -08:00
NotificationsPage.swift Adopt custom blue accent across active UI states 2026-02-24 14:22:58 -08:00
PortScanner.swift Avoid main-thread hops for explicit socket scope 2026-02-20 23:58:47 -08:00
PostHogAnalytics.swift Add cmux_hourly_active event for hourly retention cohorts (#514) 2026-02-25 18:33:57 -08:00
SentryHelper.swift Upgrade Sentry: tracing, breadcrumbs, dSYM upload (#366) 2026-02-23 17:11:01 -08:00
SessionPersistence.swift Fix session restore routing and browser history persistence 2026-02-24 14:34:55 -08:00
SidebarSelectionState.swift Implement session persistence pass 1 with multi-window restore 2026-02-22 15:39:59 -08:00
SocketControlSettings.swift Fix UI test hang: bypass launch guard for XCUITest apps 2026-02-24 23:28:34 -08:00
TabManager.swift Reduce unchanged autosave snapshot churn 2026-02-25 16:28:09 -08:00
TerminalController.swift Merge remote-tracking branch 'origin/main' into feature/sidebar-pr-metadata 2026-02-24 20:49:29 -08:00
TerminalNotificationStore.swift Optimize notification lookups with indexed store paths 2026-02-25 14:51:43 -08:00
TerminalView.swift Add sidebar blur effect with withinWindow blending (#9) 2026-02-04 03:04:45 -08:00
TerminalWindowPortal.swift Merge pull request #512 from manaflow-ai/fix/issue-483-terminal-portal-recovery 2026-02-25 18:12:39 -08:00
UITestRecorder.swift Fix frozen terminals after split churn (#12) 2026-02-13 16:45:31 -08:00
WindowAccessor.swift Polish browser suggestions, focus, and tagged reload flow 2026-02-14 21:33:28 -08:00
WindowDecorationsController.swift Refine settings/about titlebar styling and controls alignment 2026-02-14 02:11:35 -08:00
WindowDragHandleView.swift Fix crash on launch: exclusive access violation in drag handle hit test (#490) 2026-02-26 14:04:46 -08:00
WindowToolbarController.swift Coalesce title notification updates to reduce main-thread hangs 2026-02-20 20:14:19 -08:00
Workspace.swift Merge pull request #465 from manaflow-ai/cmux/terminal-persist-issue 2026-02-24 21:59:37 -08:00
WorkspaceContentView.swift Cache Ghostty config loads on UI path 2026-02-25 15:15:34 -08:00