pub struct NotificationsConfig {
pub enabled: bool,
pub macos_native: bool,
pub webhook_url: Option<String>,
pub webhook_topic: Option<String>,
pub title: String,
pub min_turn_duration_ms: u64,
pub only_on_error: bool,
pub webhook_allow_insecure: bool,
}Expand description
Configuration for the per-turn completion notifier.
Both channels (macOS and webhook) are independently enableable. At least one channel must be reachable for a notification to fire.
Fields§
§enabled: boolMaster switch. When false, no notifications are sent regardless of other fields.
macos_native: boolSend a macOS Notification Center banner via osascript.
Silently no-ops on non-macOS platforms.
webhook_url: Option<String>URL for the ntfy-compatible webhook endpoint (e.g. "https://ntfy.sh").
Empty string or absent means the webhook channel is disabled.
webhook_topic: Option<String>ntfy topic. Required when webhook_url is set; ignored otherwise.
title: StringNotification title shown in banners and webhook payloads.
min_turn_duration_ms: u64Minimum successful-turn wall-clock duration in milliseconds before a notification fires.
Set to 0 to always notify. Does NOT apply to error turns — errors always fire
regardless of duration.
only_on_error: boolWhen true, only fire on turns that completed with an error.
webhook_allow_insecure: boolAllow non-HTTPS webhook URLs.
When false (the default) only https:// webhook URLs are accepted.
Set to true to allow http:// URLs for local testing only — never use
in production as the notification payload is sent in plaintext.
Trait Implementations§
Source§impl Clone for NotificationsConfig
impl Clone for NotificationsConfig
Source§fn clone(&self) -> NotificationsConfig
fn clone(&self) -> NotificationsConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more