feat: snooze permission events (5 / 15 min)#26
Merged
Merged
Conversation
Permission notifications can now be deferred without resolving the underlying hook. The hook stays blocked on its FIFO; after the chosen duration, the banner re-fires (fresh UNNotificationRequest) so the user gets another chance to approve / deny. - Banner: PERMISSION category gets two extra UNNotificationActions — "Snooze 5 min" and "Snooze 15 min". macOS surfaces the first action as the primary banner button and collapses the rest into the chevron expansion automatically. - Panel: pressing S on a selected permission event snoozes 5 min, Shift+S snoozes 15 min. Footer surfaces the "Snooze S" hint when a permission event is selected. - Visual: snoozed rows render dimmed with a moon.zzz glyph and the right-side timestamp swaps from "X min ago" to "snoozed in Xm". - Identity: same NudgeEvent is preserved across snooze cycles. The re-fired UNNotificationRequest uses a fresh UUID (macOS replaces by identifier) but keeps the original event.id in userInfo so the click handler resolves to the same event + FIFO. - Footer: FooterHint now uses .fixedSize() so the additional hint doesn't cause labels to wrap vertically letter-by-letter. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Defer a permission notification without resolving the underlying hook. The agent stays blocked on its FIFO; after the chosen duration, the banner re-fires so you get another chance to act on it.
How it works
UNNotificationCategorynow has three actions: `Allow`, `Snooze 5 min`, `Snooze 15 min`. macOS shows `Allow` as the primary button and collapses the rest into the chevron expansion automatically.Test plan
🤖 Generated with Claude Code