Split from #304 (reporter: @am4c130d).
Symptom
When Qobuz Connect is enabled, the History tab in QBZ stops being an accurate reflection of what was actually played:
- Some tracks appear duplicated (listed more than once for a single listen)
- Some tracks are missing entirely even though they were played end-to-end
With Qobuz Connect disabled, History behaves correctly. The issue appears to be in how we ingest play events while a remote session is active.
Likely root cause (hypothesis — needs verification)
We probably record a History entry both when:
- The local player emits
TrackStarted
- The QConnect state feed reports a
current_track change
…and those two fire independently for the same listen. Conversely, when QConnect is the controller and the local player only sees state echoes, we may skip the local insert, losing the entry.
Acceptance
Thanks @am4c130d.
Split from #304 (reporter: @am4c130d).
Symptom
When Qobuz Connect is enabled, the History tab in QBZ stops being an accurate reflection of what was actually played:
With Qobuz Connect disabled, History behaves correctly. The issue appears to be in how we ingest play events while a remote session is active.
Likely root cause (hypothesis — needs verification)
We probably record a History entry both when:
TrackStartedcurrent_trackchange…and those two fire independently for the same listen. Conversely, when QConnect is the controller and the local player only sees state echoes, we may skip the local insert, losing the entry.
Acceptance
CoreEvent::TrackEndedor equivalent)Thanks @am4c130d.