Remove macOS notification permission checking (#404)

* fix: address review findings

* fix: mock process.platform as darwin in system-denied test

The test exercises the macOS notification permission gate, which only
checks systemPreferences.getNotificationSettings on darwin. Without
mocking the platform, Linux CI takes the non-darwin path and the
assertion fails.

* chore: remove stale test files

* refactor: remove macOS notification permission checking

The systemPreferences.getNotificationSettings() check added friction
without meaningful benefit — macOS handles permission prompting natively
when a notification is posted, making the manual check redundant.
Removes getPermissionStatus(), the system-denied dispatch reason,
the IPC handler, the renderer permission-blocked banner, and all
related tests.
This commit is contained in:
Jinjing
2026-04-08 20:59:49 -07:00
committed by GitHub
parent f86e41f06f
commit 265c2ddd68
6 changed files with 10 additions and 217 deletions
+1 -7
View File
@@ -339,13 +339,7 @@ export type NotificationDispatchRequest = {
export type NotificationDispatchResult = {
delivered: boolean
/** Present when delivered is false. Tells the caller why delivery was skipped. */
reason?:
| 'disabled'
| 'source-disabled'
| 'suppressed-focus'
| 'cooldown'
| 'not-supported'
| 'system-denied'
reason?: 'disabled' | 'source-disabled' | 'suppressed-focus' | 'cooldown' | 'not-supported'
}
export type WorktreeCardProperty = 'status' | 'unread' | 'ci' | 'issue' | 'pr' | 'comment'