Stream ntfy notifications to app clients over /connect

Record every notification published to ntfy (run outbox, stage notify
hooks, chat question/approval/reply) in a persisted app_notifications
outbox and stream it to subscribe_notifications clients with an after
cursor; clear_notifications and ack_attention clear across devices, as do
runs leaving waiting, deleted runs and answered chat questions. Add the
notify.ntfy_enabled setting (default on) to stop only the ntfy publish.
This commit is contained in:
2026-11-01 02:03:58 +00:00
parent 6c7c32078c
commit d1846441cc
20 changed files with 1265 additions and 20 deletions
+9
View File
@@ -248,4 +248,13 @@ type Message struct {
// whole set) and the attention_acks_changed push (the delta). See
// attention_acks.go.
AttentionAcks *AttentionAcks `json:"attention_acks,omitempty"`
// App notification stream (see notifications.go): After is the
// subscribe_notifications cursor, Notifications the subscribe reply,
// Notification one push, and IDs the clear_notifications request, the
// notifications_cleared reply/push and the subscribe reply's cleared ids.
// Notifications and IDs are present (possibly empty) whenever set.
After string `json:"after,omitempty"`
Notifications []AppNotification `json:"notifications,omitzero"`
Notification *AppNotification `json:"notification,omitempty"`
IDs []string `json:"ids,omitzero"`
}