Summary
Add a configuration option to disable macOS desktop notification banners while keeping voice output enabled. Currently, desktop notifications are always displayed alongside voice - there's no way to have voice-only output.
Use Case
- Users who find desktop banners distracting but want voice feedback
- Presentation/recording scenarios where banners would be visible on screen
- Personal preference for audio-only notifications
Proposed Solution
Add notifications.desktop.enabled to settings.json:
{
"notifications": {
"desktop": {
"enabled": false
}
}
}
Additionally, support per-request override via POST body:
curl -X POST http://localhost:8888/notify \
-H "Content-Type: application/json" \
-d '{"message": "Hello", "desktop": false}'
Implementation
I have a working implementation in my fork that:
- Adds global config loaded from settings.json (defaults to
true for backwards compatibility)
- Wraps the osascript call in a conditional
- Supports per-request
desktop parameter override
- Reports status in
/health endpoint
PR available: virtualian/pai#7
Happy to submit a PR to upstream if this is desired.
Summary
Add a configuration option to disable macOS desktop notification banners while keeping voice output enabled. Currently, desktop notifications are always displayed alongside voice - there's no way to have voice-only output.
Use Case
Proposed Solution
Add
notifications.desktop.enabledtosettings.json:{ "notifications": { "desktop": { "enabled": false } } }Additionally, support per-request override via POST body:
Implementation
I have a working implementation in my fork that:
truefor backwards compatibility)desktopparameter override/healthendpointPR available: virtualian/pai#7
Happy to submit a PR to upstream if this is desired.