Repository navigation
Description
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-mcp0.4.0- OpenAI Computer Use client build 1000854
Reproduction
- Install
codex-computer-use-mcpas a Pi extension in bb. - Call
computer_use_list_appsorcomputer_use_get_app_state. - 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.plistapps/desktop/build/entitlements.mac.inherit.plistapps/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
tian000 commentedon Aug 25, 2026
@SawyerHood let me know if you would be open to a PR
fix(desktop): allow desktop-launched Computer Use to send Apple Events (