Add server notification settings with app checkboxes

Persist three global ntfy switches in server_settings: run_finished
(default on: auto-mode runs notify on success, read inside the
transition transaction; on/off modes unchanged), chat_needs_you
(default on: gates chat question/approval alerts) and
chat_reply_finished (default off: one alert per finished assistant
turn). Expose notification_settings / set_notification_settings over
the websocket protocol, add a Phone notifications section with
Material and Cupertino checkboxes in Settings, document the settings,
and keep the cli, tui, stage and pipeline test packages from
inheriting a real ntfy configuration.
This commit is contained in:
2026-10-30 21:36:27 +00:00
parent 39d9150c3a
commit 498c6f17a6
26 changed files with 1381 additions and 28 deletions
@@ -103,6 +103,15 @@ Future<void> openSettings(
'build': {'version': 'probe'},
'time': 'fixture',
});
// It then loads the server's ntfy notification settings.
await reply(tester, channel, 'notification_settings', 1, {
'type': 'notification_settings',
'notification_settings': {
'run_finished': true,
'chat_needs_you': true,
'chat_reply_finished': false,
},
});
}
Future<void> openTemplates(