Skip to content

macOS app lacks Apple Events entitlement, blocking Computer Use child tools #2368

Description

@tian000

Summary

The signed macOS bb app does not include the com.apple.security.automation.apple-events entitlement. As a result, agent tools that launch an Apple-Events-using child process from bb are denied by macOS TCC before the user can grant Automation access.

This currently prevents codex-computer-use-mcp from using OpenAI's signed Computer Use client inside bb. The same client works when launched by ChatGPT, whose app has the entitlement.

Environment

  • bb 0.39.0 (dev.bb.desktop)
  • macOS 26.x, arm64
  • codex-computer-use-mcp 0.4.0
  • OpenAI Computer Use client build 1000854

Reproduction

  1. Install codex-computer-use-mcp as a Pi extension in bb.
  2. Call computer_use_list_apps or computer_use_get_app_state.
  3. The call fails with Computer Use error -1743 (errAEEventNotPermitted) or eventually times out.

The relevant TCC log is:

Prompting policy for hardened runtime; service: kTCCServiceAppleEvents requires entitlement com.apple.security.automation.apple-events but it is missing for responsible={TCCDProcess: identifier=dev.bb.desktop, ... responsible_path=/Applications/bb.app/Contents/MacOS/bb}, accessing={TCCDProcess: identifier=com.openai.sky.CUAService.cli, ...}

AccessRequestIndirect: Policy disallows prompt for dev.bb.desktop; access to kTCCServiceAppleEvents denied

For comparison, when ChatGPT launches the same signed client, TCC attributes responsibility to com.openai.codex and allows it:

responsible={TCCDProcess: identifier=com.openai.codex, ...}
Policy allows by virtue of matching team id: kTCCServiceAppleEvents

The installed bb app's current entitlements are:

<key>com.apple.security.cs.allow-jit</key><true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key><true/>
<key>com.apple.security.cs.disable-library-validation</key><true/>
<key>com.apple.security.device.audio-input</key><true/>

Investigation / proposed fix

The packaging configuration already uses checked-in entitlement files:

  • apps/desktop/build/entitlements.mac.plist
  • apps/desktop/build/entitlements.mac.inherit.plist
  • apps/desktop/electron-builder.config.json

The minimal fix appears to be adding this to the main app entitlement file only, apps/desktop/build/entitlements.mac.plist:

<key>com.apple.security.automation.apple-events</key>
<true/>

It should not be necessary to add it to entitlements.mac.inherit.plist: macOS attributes the Apple Event to the responsible top-level bb app, and granting it to every Electron helper would be unnecessarily broad.

A packaging test similar to the existing audio-input entitlement test in apps/desktop/test/electron-builder-config.test.ts could ensure the main entitlement remains present.

After updating, the Developer ID-signed/notarized release should allow macOS to show the normal per-target Automation consent prompt instead of denying the request before prompting.

Security note

This entitlement does not itself grant unrestricted Automation access. It makes the hardened app eligible to request Apple Events access; macOS TCC still applies per-target user consent. However, it broadens what bb and child processes attributed to bb can request, so the project should confirm that this is an intended desktop capability.

AGENT GENERATED

Activity

  1. tian000 commented on Aug 25, 2026

    @tian000
    Author

    @SawyerHood let me know if you would be open to a PR

  2. added
    desktop
    on Aug 25, 2026
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

    desktop

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions