fix: notifications orchestrator and add a notification when first enabled

This commit is contained in:
simosmik
2026-03-03 16:28:12 +00:00
parent d032a37c01
commit 6be7045f17
3 changed files with 35 additions and 1 deletions

View File

@@ -67,7 +67,8 @@ function buildPushBody(event) {
: 'Action Required: A tool needs your approval',
'run.stopped': event.meta?.stopReason || 'Run Stopped: The run has stopped',
'run.failed': event.meta?.error ? `Run Failed: ${event.meta.error}` : 'Run Failed: The run encountered an error',
'agent.notification': event.meta?.message ? String(event.meta.message) : 'You have a new notification'
'agent.notification': event.meta?.message ? String(event.meta.message) : 'You have a new notification',
'push.enabled': 'Push notifications are now enabled!'
};
return {