mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 21:04:23 +01:00
feat: add push notifications with VAPID (#110)
* Add OAuth authentication support for MCP servers * Improve mobile text sizing with responsive text classes * refactor: improve virtualized text viewer with React Query infinite scroll and simplified buffering * Add push notifications with VAPID and PWA support * feat: add VAPID environment variables for push notifications * Replace SquareFill with MicOff icon for stop recording buttons * Send push notifications when app is not focused * Fix stop generation button icons to use X instead of MicOff * feat: enhance push notification logging and debugging - Add structured logging throughout push notification flow - Improve error handling with detailed diagnostics - Add /api/notifications/debug endpoint for troubleshooting - Enhanced test notification response with per-subscription results - Add service worker logging and better install/activate handling * Improve VAPID push notification configuration with validation and better defaults - Add validation warnings for VAPID_SUBJECT format (requires mailto: prefix for iOS/Safari) - Expose VAPID details via notifications API endpoint - Update default VAPID_SUBJECT from mailto:admin@opencode.local to empty string - Enhance VAPID logging with key lengths and subject info - Improve documentation in .env.example with setup instructions * Fix notification URL to use repo ID instead of filesystem path * Clean up push notification logging and debug endpoints * Add push notifications documentation
This commit is contained in:
1 parent
3d9e9b8322
commit
ae644e851d
47 files changed
+4506
-67
No files matched your search
@@ -83,6 +83,28 @@ PASSKEY_RP_ID=localhost
|
||||
PASSKEY_RP_NAME=OpenCode Manager
|
||||
PASSKEY_ORIGIN=http://localhost:5003
|
||||
|
||||
# ============================================
|
||||
# Push Notifications (VAPID)
|
||||
# Enables push notifications for the PWA (background alerts for agent
|
||||
# questions, permission requests, errors, and session completions).
|
||||
#
|
||||
# Setup:
|
||||
# 1. Generate keys: npx web-push generate-vapid-keys
|
||||
# 2. Set VAPID_PUBLIC_KEY and VAPID_PRIVATE_KEY from the output
|
||||
# 3. Set VAPID_SUBJECT to a mailto: address (REQUIRED for iOS/Safari)
|
||||
#
|
||||
# IMPORTANT: VAPID_SUBJECT MUST use the mailto: format for iOS/Safari
|
||||
# push notifications to work. Apple's push service rejects https:// subjects.
|
||||
# Example: mailto:you@yourdomain.com
|
||||
#
|
||||
# Browser requirements:
|
||||
# - HTTPS required (except localhost)
|
||||
# - Safari/iOS: Requires mailto: VAPID_SUBJECT and HTTPS
|
||||
# ============================================
|
||||
# VAPID_PUBLIC_KEY=
|
||||
# VAPID_PRIVATE_KEY=
|
||||
# VAPID_SUBJECT=mailto:you@yourdomain.com
|
||||
|
||||
# ============================================
|
||||
# Frontend Configuration (Vite)
|
||||
# These are optional - frontend uses defaults if not set
|
||||
|
||||
Reference in new issue
Block a user