mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-09-07 15:07:17 +00:00
If the device selected in the Library tab disappeared from the devices map (e.g. it just became a hidden stereo-pair member per device_projection.go), the sync effect fell back to entries[0][0] -- whichever key happens to sort first in the map -- silently redirecting the user's Library browsing session to an unrelated speaker. Now checks first whether the vanished device reappears as a member of some other device's stereoPair (the pair's master, which now represents the same physical speaker for control purposes) and follows it there. Only falls back to an arbitrary device when the selection is gone for a genuinely unrelated reason (removed, discovery gap), matching the prior behavior for that case. No JS unit-test framework exists in this repo for component-level logic (consistent with the rest of the client-side code), so this is verified by manual trace rather than an automated regression test. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>