discord_radio: retained desired-state redelivery silently undoes a local-dashboard pause #34

Closed
opened 2026-10-04 18:17:13 -04:00 by logan · 1 comment
Owner

From review of node-26#32 / server-26#216 (branch feat/discord-system).

RadioManager.apply_desired sets self._paused = False on every desired message, including the retained one the broker redelivers on each MQTT reconnect, even when seq is unchanged. A local POST /api/discord/leave (pause) is therefore undone by the next MQTT blip, and the bots log back in without anyone asking.

Fix: only clear _paused when seq is strictly greater than the seq at pause time.

Related: node-26#25.

From review of node-26#32 / server-26#216 (branch `feat/discord-system`). `RadioManager.apply_desired` sets `self._paused = False` on every desired message, including the retained one the broker redelivers on each MQTT reconnect, even when `seq` is unchanged. A local `POST /api/discord/leave` (pause) is therefore undone by the next MQTT blip, and the bots log back in without anyone asking. Fix: only clear `_paused` when `seq` is strictly greater than the seq at pause time. Related: node-26#25.
logan added the area/discordarea/mqtt
kind
behavior-bug
priority
p3
type
bug
labels 2026-10-05 02:05:13 -04:00
Author
Owner

Fixed in a456b50, merged as c57a5b9 (PR #47).

Fixed in a456b50, merged as c57a5b9 (PR #47).
logan removed the
priority
p3
label 2026-11-01 06:39:53 -05:00
logan closed this issue 2026-11-01 06:39:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: logan/node-26#34