Skip to content

Swift Send button crashes when invoked through accessibility action #24

Description

@dirvine

Summary

During the two-machine UI stress test on macOS 26.4, the Swift app crashed when the channel composer Send button was invoked through Computer Use/accessibility (NSAccessibilityPerformAction). The same message sent successfully when the window was moved to the main display and the Send button was clicked with a normal mouse event.

Environment

  • Local app: /Users/davidirvine/Applications/Communitas-Patched.app
  • Bundle id: com.saorsalabs.communitas.patched
  • App version/build: 0.11.8
  • macOS: 26.4 (25E246)
  • x0x local daemon: 0.21.2, healthy

Repro

  1. Open Swift app and select a channel.
  2. Enter codex-ui-swift-to-dioxus-20260606-0111 in the composer.
  3. Invoke the Send button via accessibility action / Computer Use element click.

Actual

The app quit immediately. Crash report:
~/Library/Logs/DiagnosticReports/Communitas-2026-06-06-011212.ips

Key crash details:

  • EXC_BAD_ACCESS / SIGSEGV
  • faulting thread: com.apple.main-thread
  • top frames include swift_getObjectType, swift_task_isMainExecutorImpl, MainActor.assumeIsolated, ButtonAction.callAsFunction, AccessibilityButtonModifier, NSAccessibilityPerformAction

Expected

Accessibility invocation should either send the message or fail gracefully. It should not terminate the app.

Additional evidence

A normal mouse click on the same visible Send button later sent codex-ui-swift-private-keysend-20260606-0117 successfully and displayed it locally, so the channel composer itself can send. The crash is specific to the accessibility button action path.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions