Repository navigation
fix(desktop): allow macOS agent helpers to request Automation access - #23254
juliusmarminge wants to merge 3 commits into
Conversation
…usage description Signed macOS builds lack com.apple.security.automation.apple-events and NSAppleEventsUsageDescription, so tccd rejects Apple Events from coding agents (Codex SkyComputerUseClient). These assertions fail until fixed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…OS app Claim com.apple.security.automation.apple-events in the generated signing entitlements and declare NSAppleEventsUsageDescription, so tccd stops rejecting Apple Events from coding agents (Codex computer use) that inherit the app's TCC identity. Refs #21282 Co-Authored-By: Claude Opus 5.5 <[email protected]>
ApprovabilityVerdict: Needs Human Approval Macroscope's review found this PR requires human approval — This changes the default macOS artifact permissions by adding Apple Events automation entitlement and its user-facing usage description, allowing agent helpers to request control of other apps. The scope is small and tested, but the security-sensitive permission and product-default change warrant human review. You can add or adjust custom eligibility rules. Learn more. |
|
Thanks for this. https://git.cafe/pingdotgg/t3code/pulls/33869 makes the same change and is the one being kept. #33869 adds the same Automation entitlement and usage description with a smaller change. It also checks the description across signed and unsigned stable and nightly configurations, making it the stronger version to keep. Your diagnosis and the two missing declarations remain the basis of the fix. The remaining validation is to exercise Automation consent and Computer Use cleanup in a signed macOS build. Closing as a duplicate. |
Problem
When Codex runs Computer Use inside the signed macOS desktop app, its native
turn-endedhelper cannot request Apple Events access because T3's signing entitlements omit Automation. The reported result is failed cleanup and a cursor that remains visible after the turn; the app also lacks the Automation usage description.Change
Add
com.apple.security.automation.apple-eventsto the existing generated macOS entitlement plist andNSAppleEventsUsageDescriptionto the macOS Info.plist configuration. Cover both declarations in the existing desktop packaging tests.Scope and approval
Fixes https://git.cafe/pingdotgg/t3code/issues/21282
GitCafe: https://git.cafe/pingdotgg/t3code/issues/21282
Triaged bug via the automated issue flow: #21282.
Verification
PATH="$PWD/node_modules/.bin:$PATH" vp test run scripts/build-desktop-artifact.test.ts: 43 passed again after merging current main, at 6ea8952975. Integrated-head test log.Fixture matrix and proof boundaries · Scoped verification log
No render paths changed, so UI screenshots and pixel diffs do not apply.
cannot-verify macos-desktop: this Linux VM cannot inspect the final signed app, exercise macOS Automation consent/denial/recovery, or record Codex helper completion and cursor cleanup (matrix A1 and N1–N3). No end-to-end native success is claimed.Models: Claude Opus 5.5 through Claude Agent; GPT-6.1-Sol through Codex in T3 Code.
Fixes #21282