5a80a1e460
test-web / test (push) Successful in 39s
The web client only ever SENT events; it had no inbound SSE listener, so a tab left open across the daily system-playlist rebuild kept showing yesterday's home + playlist snapshots until a manual reload (the stale- browse-view bug behind #968). Add useServerEvents(): opens /api/events/stream while authenticated and, on playlist.system_rebuilt, invalidates the home, playlists, and system-playlist-status query caches. Deliberately does not disturb the active playback queue — that self-heals on the failure path. Issue #968. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>