- Detach the events stream from the queue on the response's close event,
which fires when the client goes away whatever the Node version.
- Log a warning when only some of the Discord login variables are set,
instead of silently leaving the login disabled.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Save the queue to storage/runtime/queue.json and restore it at startup,
the interrupted track first; playback resumes once someone is in the
voice channel. Shutdown keeps the queued files instead of deleting them.
- Shuffle the upcoming tracks; loop mode sends finished tracks back to the
end of the queue, except removed or failed ones.
- Rename library tracks (queued copies follow), enqueue the whole library,
optionally shuffled.
- Stream queue and library changes to the web page with Server-Sent Events
(GET /api/events).
- Sanitise the requester name sent when queueing a library track.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>