cmux/cmuxTests
Lawrence Chen 5bbdd87c29
Fix re-entrant exclusive-access crash in drag handle hit test (#771)
When sibling.hitTest() triggers a SwiftUI layout pass during the
drag handle's sibling walk, AppKit can call back into
windowDragHandleShouldCaptureHit before the outer invocation
finishes. This re-entry accesses SwiftUI view state that is already
held exclusively, causing a Swift runtime SIGABRT.

Add a module-level re-entrancy guard that bails out (returns false)
on nested calls to the sibling walk. Since hitTest is always called
on the main thread, a simple Bool flag is sufficient.

Crash was reproduced on macOS Sequoia 15.1.1 (24B91) in a UTM VM.
The crash stack: DraggableView.hitTest -> windowDragHandleShouldCaptureHit
-> sibling.hitTest -> SwiftUI body evaluation -> hitTest (re-entry)
-> exclusive-access violation -> SIGABRT.
2026-03-02 19:20:14 -08:00
..
AppDelegateShortcutRoutingTests.swift Use command palette flow for workspace rename shortcut 2026-02-25 05:12:49 -08:00
CJKIMEInputTests.swift Fix Shift+Space IME toggle inserting space (#641) (#670) 2026-02-28 21:12:17 -08:00
CmuxWebViewKeyEquivalentTests.swift Fix re-entrant exclusive-access crash in drag handle hit test (#771) 2026-03-02 19:20:14 -08:00
GhosttyConfigTests.swift Honor Ghostty background-opacity across all cmux chrome (#667) 2026-03-01 03:48:46 -08:00
SessionPersistenceTests.swift Reduce unchanged autosave snapshot churn 2026-02-25 16:28:09 -08:00
SocketControlPasswordStoreTests.swift Add command palette entries to install/uninstall cmux CLI in PATH (#626) 2026-02-27 01:53:13 -08:00
UpdatePillReleaseVisibilityTests.swift Fix notification bell hover crash by conditionally tracking hover (#574) 2026-02-26 14:26:28 -08:00
WorkspaceContentViewVisibilityTests.swift Fix tab drag blank state and preserve non-custom titles across window drops 2026-02-24 14:36:12 -08:00
WorkspaceManualUnreadTests.swift Add command palette (Cmd+Shift+P) (#358) 2026-02-23 03:26:36 -08:00