Repository navigation
Delete reminders through a fresh event store - #322
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🔵 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://entire.com/gh/mattt/-/trails/4/changes/iMCP/4
After Reminders access is granted for the first time while iMCP is running,
reminders_deletefails withEKErrorDomain29 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_deletelook 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