codex icon indicating copy to clipboard operation
codex copied to clipboard

Computer Use helper SIGTRAPs while traversing a SwiftUI accessibility tree; AppShot cannot attach

Open Coldain opened this issue 4 months ago • 0 comments

Environment

  • Codex desktop: 26.715.31925 (build 5551)
  • Computer Use helper: com.openai.sky.CUAService, version 26.715.1000451 (build 1000451)
  • macOS: 27.0 (26A5353q)
  • Architecture: Apple Silicon

Issue

AppShot and get_app_state can crash SkyComputerUseService while inspecting a native SwiftUI application with a substantial accessibility tree.

The user-visible AppShot result is:

Unable to attach appshot

The Computer Use tool result is:

Sky Computer Use native pipe closed before response

The target SwiftUI application remains alive. A fresh SkyComputerUseService-*.ips report appears for each failed inspection.

Latest crash receipt

process: SkyComputerUseService
bundle: com.openai.sky.CUAService
version/build: 26.715.1000451 / 1000451
exception: EXC_BREAKPOINT
signal: SIGTRAP
termination: Trace/BPT trap: 5
faulting queue: com.apple.root.user-initiated-qos.cooperative

The faulting thread begins with repeated groups of the same unsymbolicated helper frame offsets, which is consistent with recursive accessibility traversal before the trap. It also has active AXNotificationObserver threads for the target app.

The helper binary UUID in the report matches the installed plugin-cache helper (CE69D64B-5D53-3802-AF72-ED43B10F8AEB).

Reproduction

  1. Open a native SwiftUI macOS app using NavigationSplitView, a large sidebar, scrollable detail content, and an AVPlayerView.
  2. Call get_app_state; the first call can succeed and return a normal screenshot plus accessibility tree.
  3. Select another sidebar destination.
  4. Call get_app_state again.
  5. The native pipe closes and a new helper crash report is written.
  6. list_apps recovers after the helper restarts, while another get_app_state against the same target reproduces the crash.

In this run, the last successful tree had about 120 exposed nodes and a lazily represented sidebar (roughly 200 model rows, only the visible rows exposed), so this is not simply a multi-thousand-node response payload.

Controls

  • The target app process does not crash.
  • list_apps succeeds after helper restart.
  • Screen Recording and Accessibility are already functional; a prior state call returned both screenshot and AX text.
  • The failure reproduces by bundle identifier.
  • Repeated failures create fresh helper crash receipts.
  • No TCC reset changes were needed or performed.

Expected behavior

Accessibility traversal should detect cycles/depth exhaustion, truncate or skip the problematic subtree, and return a controlled warning. The helper should not trap and cause AppShot attachment to fail.

Related issue

This may share traversal logic with #20683, but that report is Outlook-specific and shows EXC_BAD_ACCESS / SIGBUS with explicit stack exhaustion. This case targets a native SwiftUI app on helper build 1000451 and consistently shows EXC_BREAKPOINT / SIGTRAP.

I am omitting the full .ips file because it contains local paths and identifiers, but can provide a sanitized or private crash report if useful.

Coldain avatar Jul 21 '26 00:07 Coldain