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:
@@ -5,7 +5,7 @@
|
||||
- `android/.../notify/NotificationThreads.kt` (new): `ThreadEntry`, `ThreadHistory`
|
||||
(bounded per-thread entries, bounded thread count, persisted through the
|
||||
ledger's `LedgerStore` under `threads.history`), and naming helpers. Threads are
|
||||
keyed by the server `group` (`chat:<id>` or `run:<id>`, per `docs/ntfy.md`).
|
||||
keyed by the server `group` (`chat:<id>` or `run:<id>`, per `docs/notifications.md`).
|
||||
- `NotificationPresenter.kt`: a grouped notification posts one conversation
|
||||
notification per thread with a stable id (`thread:<group>`), the latest 5 lines
|
||||
(sender = chat title, run title for runs), the unread count (`setNumber`), and a
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
# ntfy removal (app side)
|
||||
|
||||
Operator decision: ntfy is removed from Pipelines. Every client gets
|
||||
notifications from the server's own app notification stream: browser
|
||||
Notification on web, the "Receive notifications in Pipelines" background
|
||||
service or the in-app bridge on Android, the in-app bridge on iOS/macOS.
|
||||
|
||||
## Change
|
||||
|
||||
- Settings "Phone notifications" (ntfy) section replaced by **Notification
|
||||
events** (`lib/features/settings/settings_notification_settings_section.dart`,
|
||||
controller `notification_settings_controller.dart`; section id
|
||||
`notification-events`, still in the phone-first order). It shows the three
|
||||
server-stored switches `run_finished`, `chat_needs_you`,
|
||||
`chat_reply_finished` with the subtitle "What the server notifies about.
|
||||
Stored on the server, so these apply to every device signed in to it."
|
||||
- The `ntfy_enabled` switch is gone; a reply that still carries it is ignored
|
||||
(only the three known keys are decoded) and writes send only the toggled key.
|
||||
- Search keywords no longer mention ntfy.
|
||||
- "Notifications in Pipelines" note no longer mentions the ntfy app.
|
||||
- Comments in `agent_notice.dart` (docs/notifications.md, priority 1-5),
|
||||
`notification_service_bridge.dart`, `AndroidManifest.xml`,
|
||||
`NotificationService.kt`, `NotificationProtocol.kt` drop ntfy.
|
||||
- `chat_shown_notify_row.dart` still renders a `phone` channel for transcript
|
||||
entries recorded before the change; new entries only carry `apps`.
|
||||
|
||||
## Checks
|
||||
|
||||
- `tool/analyze.sh`: clean.
|
||||
- memwatch `test/features/settings`: 216 passed; `test/features/attention`:
|
||||
159 passed; `test/features/notification_service`: 11 passed.
|
||||
- No browser capture taken for the renamed section.
|
||||
@@ -11,7 +11,7 @@ not only on the web and then I have to clear again on mobile."
|
||||
device has open, records a per-session `chat_seen` watermark in epoch ms.
|
||||
|
||||
ntfy notifications already shown on a phone cannot be retracted (see
|
||||
`docs/ntfy.md`, "Clearing notifications across devices").
|
||||
`docs/notifications.md`, "Clearing notifications across devices").
|
||||
|
||||
## Protocol (server, `internal/protocol/attention_acks.go`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user