Skip to content

Delete reminders through a fresh event store - #322

Merged
mattt merged 2 commits into
mainfrom
mattt/reminders-delete-store
Nov 4, 2026
Merged

mattt merged 2 commits into
mainfrom
mattt/reminders-delete-store

Conversation

@mattt

@mattt mattt commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

https://entire.com/gh/mattt/-/trails/4/changes/iMCP/4

After Reminders access is granted for the first time while iMCP is running, reminders_delete fails with EKErrorDomain 29 until iMCP is relaunched, while create and update work (#315).

Removing a reminder runs a consent check in EventKit that saving doesn't, and that check reads the authorization status through the item's event store. The suspected cause is that the long-lived shared store reports a stale status to that check. This PR has reminders_delete look up and remove the reminder through a new event store, after the access check passes. The other tools keep using the shared store.

The cause isn't confirmed, and the change hasn't been tested with a fresh grant yet.

Related to #315

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The workaround relies on unverified EventKit authorization caching and needs macOS testing after a fresh Reminders grant to confirm deletion and subsequent shared-store operations without restarting.

No open issues 🎉

What changed in this PR

This PR addresses the reported reminders_delete failure after first-time Reminders authorization (#315) by using a fresh EventKit store for deletion. The suspected stale-authorization cause and fresh-grant behavior remain unverified.

Changes:

  • Looks up and removes the reminder through the same newly created event store.
  • Documents the workaround while leaving other reminder tools on the shared store.
File Description
App/​Services/​Reminders.swift Uses a fresh event store for reminder deletion and explains the suspected authorization issue.

Review effort: Balanced

@mattt
mattt merged commit 3074cdd into main Nov 4, 2026
3 checks passed
@mattt
mattt deleted the mattt/reminders-delete-store branch November 4, 2026 12:08
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