Skip to content

Remove the unused Terminal Apple Events exception - #338

Merged
mattt merged 1 commit into
mattt:mainfrom
oliverames:fix/remove-unused-entitlements
Nov 17, 2026
Merged

mattt merged 1 commit into
mattt:mainfrom
oliverames:fix/remove-unused-entitlements

Conversation

@oliverames

Copy link
Copy Markdown
Contributor

com.apple.Terminal has been in the Apple Events exception since the initial commit, and nothing in the app uses it. Music is the only service that sends Apple Events, and NSAppleEventsUsageDescription only mentions Music. This removes the Terminal entry from both entitlements files, so the sandbox no longer allows iMCP to send Apple Events to Terminal.

I searched the whole repo for other uses and found none.

I left the Messages folder exception alone. It's read-write, but I couldn't show that read-only is enough without a sandboxed test against a live WAL database. SQLite normally opens chat.db-shm read-write, and a read-only fallback only works if that file already exists, which depends on Messages running. That might be worth its own issue.

Both plists lint clean, the Debug build and swift format lint --strict pass. I haven't tested a Release-signed build, so I haven't confirmed that Music's Apple Events still work under the signed sandbox.

@mattt
mattt merged commit c5f0dfd into mattt:main Nov 17, 2026
2 checks passed
@oliverames
oliverames deleted the fix/remove-unused-entitlements branch November 17, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants