mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-03 05:59:43 +02:00
Implement a 4-layer notification system for alerting users when Claude Code sessions need attention: 1. Notification Drawer - persistent in-page log with bell icon + badge 2. Tab Title Updates - flashing title with unread count when unfocused 3. Web Notifications - browser push notifications when tab hidden 4. Audio Alerts - Web Audio API beep for critical events Notification triggers: - Critical: session errors, crashes (non-zero exit), agent failures/timeouts - Warning: Ralph loop completions, budget warnings, stuck sessions (idle >10min) - Info: auto-accepts, auto-clears, agent completions Features: - NotificationManager class with debouncing/grouping (5s window) - Settings tab in App Settings with per-layer/per-urgency toggles - Configurable idle threshold for stuck session detection - Click notification to switch to relevant session - Notification permission request flow - Rate-limited browser notifications (max 1/3s) - Idle timer cleanup on session delete Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>