Remove ntfy: notifications go only through the app notification stream
Server: drop ntfy publishing (stage hooks, run outbox, chat attention, chat tool notify, auto-switch and schedule notices), the chat push outbox (its table is dropped at startup), ntfy status/endpoints and PIPELINES_NTFY_*. The app_notifications stream, subscribe/clear and kinds are unchanged. Notification settings keep run_finished/chat_needs_you/chat_reply_finished; ntfy_enabled is accepted and ignored and its stored row is never read. Stage type=ntfy is rejected: "ntfy stages were removed; notifications go to the Pipelines apps — use the stage notify hook". The notify hook remains. Installer: no ntfy build, accounts, config or supervisor child; manifest gets top-level "mode" (legacy ntfy.mode still read). Reinstall retires an old ntfy (safe PID-file stop, deletes binary, config, data dir, token, log, with a note in logs/install.log); uninstall cleans leftovers. App: ntfy settings section replaced by "Notification events"; texts updated. Docs: docs/ntfy.md folded into docs/notifications.md; install, docker, cli, author skill references updated; security review M1 marked resolved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -142,7 +142,6 @@ func HandlerWithOptions(ctx context.Context, options Options, stores ...*pipelin
|
||||
// Prompts queued behind a running turn are durable and owned by their
|
||||
// session; resume delivering any a previous process left queued.
|
||||
hub.queueStore = stores[0]
|
||||
hub.startChatNotificationOutbox(ctx, stores[0])
|
||||
hub.liveStore = stores[0]
|
||||
hub.turnDiffStore = stores[0]
|
||||
}
|
||||
@@ -256,7 +255,7 @@ func HandlerWithOptions(ctx context.Context, options Options, stores ...*pipelin
|
||||
log.Printf("list pipelines: %v", err)
|
||||
return
|
||||
}
|
||||
if err := write(protocol.Message{Type: protocol.PipelineList, Pipelines: items, NotificationEndpoints: notificationEndpoints()}); err != nil {
|
||||
if err := write(protocol.Message{Type: protocol.PipelineList, Pipelines: items}); err != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -388,9 +387,6 @@ func HandlerWithOptions(ctx context.Context, options Options, stores ...*pipelin
|
||||
continue
|
||||
}
|
||||
response := protocol.Message{Type: protocol.Pong, ID: request.ID}
|
||||
if request.Type == protocol.List || request.Type == protocol.Submit {
|
||||
response.NotificationEndpoints = notificationEndpoints()
|
||||
}
|
||||
if request.Type == protocol.GetStatus {
|
||||
response.Type = protocol.Status
|
||||
response.Status = systemStatus(r, started, runErr)
|
||||
|
||||
Reference in New Issue
Block a user