Computer Use helper SIGTRAPs while traversing a SwiftUI accessibility tree; AppShot cannot attach
Environment
- Codex desktop:
26.715.31925(build5551) - Computer Use helper:
com.openai.sky.CUAService, version26.715.1000451(build1000451) - 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
- Open a native SwiftUI macOS app using
NavigationSplitView, a large sidebar, scrollable detail content, and anAVPlayerView. - Call
get_app_state; the first call can succeed and return a normal screenshot plus accessibility tree. - Select another sidebar destination.
- Call
get_app_stateagain. - The native pipe closes and a new helper crash report is written.
list_appsrecovers after the helper restarts, while anotherget_app_stateagainst 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_appssucceeds 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.