feat(FN-1127): add awaiting-approval ntfy notifications

- Extend ntfy event types and default ntfyEvents to include awaiting-approval
- Send high-priority "Plan needs approval" notifications for awaiting-approval task updates with deep-link support
- Add Notifications settings checkbox handling for awaiting-approval event selection in Settings modal
- Expand notifier and settings modal tests for awaiting-approval defaults, toggles, filtering, and deduplication
- Update AGENTS.md ntfy documentation and sample config to include the new event
This commit is contained in:
gsxdsm
2026-04-08 02:00:39 -07:00
parent 724ae7be41
commit 7d7c7efbd9
6 changed files with 183 additions and 24 deletions

View File

@@ -946,12 +946,13 @@ To enable manual plan approval:
### `ntfyEnabled` (default: `false`)
When true, enables ntfy.sh push notifications for task completion and failures.
When true, enables ntfy.sh push notifications for task completion, failures, and plan approval requests.
**Notification events:**
- Task moves to "in-review" — "Task completed — ready for review"
- Task moves to "done" — "Task merged to main"
- Task status becomes "failed" — "Task failed" (high priority)
- Task status becomes "awaiting-approval" — "Plan needs approval for {taskId}" (high priority)
**Configuration:**
1. Go to https://ntfy.sh and pick a unique topic name (or self-host ntfy)
@@ -963,7 +964,8 @@ When true, enables ntfy.sh push notifications for task completion and failures.
{
"settings": {
"ntfyEnabled": true,
"ntfyTopic": "my-kb-notifications"
"ntfyTopic": "my-kb-notifications",
"ntfyEvents": ["in-review", "merged", "failed", "awaiting-approval"]
}
}
```