[GH-ISSUE #4960] [Issue]: Music DJ Spotify playback remains on the previous track after play is accepted #2756

Closed
opened 2026-10-21 05:54:35 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Aug 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4960

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Music DJ's Spotify playback request can be accepted by Spotify while the active device remains on the previous track. Marinara then reports repeated playback-verification failures because the current URI does not match the requested URI.

Expected behavior

After Spotify accepts the play request, the selected track should start on the active device. If Spotify does not switch tracks, Music DJ should recover with a bounded retry or return one clear failure without repeating the same verification warning.

Actual behavior

Spotify reports active playback on the expected device, but the currently playing URI remains spotify:track:798SAZBZ0kS6bDRd1cGLW8 instead of the requested spotify:track:77iL0X5sFnq53JPCeCWPUT. The same verification warning appears again roughly 54 seconds later.

A nearby Music DJ response requests playback via a search query but contains no resolved track URIs:

{"action":"play","mood":"submerged, intimate menace and precarious resolve","searchQuery":"Genshin Impact OST Fontaine underwater ambient suspense","trackUris":[],"trackNames":[],"volume":40}

Steps to reproduce

  1. Configure the Music DJ agent with Spotify and make a MacBook the active Spotify playback device.
  2. Ask Music DJ to play music resolved from a search query.
  3. Observe that Spotify accepts the playback request but remains on the previous track.
  4. Observe repeated Playback accepted but verification failed warnings with different current and expected URIs.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: macOS (version not provided)
  • Browser or app shell: Not provided
  • Spotify device: MacBook Air (Marianna)

Logs, screenshots, or video

[23:52:02.258] WARN (78397): [spotify] Playback accepted but verification failed device=MacBook Air (Marianna) isPlaying=true currentUri=spotify:track:798SAZBZ0kS6bDRd1cGLW8 expected=spotify:track:77iL0X5sFnq53JPCeCWPUT repeat=off
[23:52:06.486] WARN (78397): [agent-debug] spotify raw response (191 chars):
{"action":"play","mood":"submerged, intimate menace and precarious resolve","searchQuery":"Genshin Impact OST Fontaine underwater ambient suspense","trackUris":[],"trackNames":[],"volume":40}
[23:53:00.059] WARN (78397): [spotify] Playback accepted but verification failed device=MacBook Air (Marianna) isPlaying=true currentUri=spotify:track:798SAZBZ0kS6bDRd1cGLW8 expected=spotify:track:77iL0X5sFnq53JPCeCWPUT repeat=off

Additional context

The warning is emitted by the Engine-owned Spotify playback and verification path in packages/server/src/services/tools/tool-executor.ts. Investigation should distinguish Spotify playback propagation delay/device targeting from an Engine retry or verification-state problem.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4960 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Music DJ's Spotify playback request can be accepted by Spotify while the active device remains on the previous track. Marinara then reports repeated playback-verification failures because the current URI does not match the requested URI. ## Expected behavior After Spotify accepts the play request, the selected track should start on the active device. If Spotify does not switch tracks, Music DJ should recover with a bounded retry or return one clear failure without repeating the same verification warning. ## Actual behavior Spotify reports active playback on the expected device, but the currently playing URI remains `spotify:track:798SAZBZ0kS6bDRd1cGLW8` instead of the requested `spotify:track:77iL0X5sFnq53JPCeCWPUT`. The same verification warning appears again roughly 54 seconds later. A nearby Music DJ response requests playback via a search query but contains no resolved track URIs: ```json {"action":"play","mood":"submerged, intimate menace and precarious resolve","searchQuery":"Genshin Impact OST Fontaine underwater ambient suspense","trackUris":[],"trackNames":[],"volume":40} ``` ## Steps to reproduce 1. Configure the Music DJ agent with Spotify and make a MacBook the active Spotify playback device. 2. Ask Music DJ to play music resolved from a search query. 3. Observe that Spotify accepts the playback request but remains on the previous track. 4. Observe repeated `Playback accepted but verification failed` warnings with different current and expected URIs. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: macOS (version not provided) - Browser or app shell: Not provided - Spotify device: MacBook Air (Marianna) ## Logs, screenshots, or video ```text [23:52:02.258] WARN (78397): [spotify] Playback accepted but verification failed device=MacBook Air (Marianna) isPlaying=true currentUri=spotify:track:798SAZBZ0kS6bDRd1cGLW8 expected=spotify:track:77iL0X5sFnq53JPCeCWPUT repeat=off [23:52:06.486] WARN (78397): [agent-debug] spotify raw response (191 chars): {"action":"play","mood":"submerged, intimate menace and precarious resolve","searchQuery":"Genshin Impact OST Fontaine underwater ambient suspense","trackUris":[],"trackNames":[],"volume":40} [23:53:00.059] WARN (78397): [spotify] Playback accepted but verification failed device=MacBook Air (Marianna) isPlaying=true currentUri=spotify:track:798SAZBZ0kS6bDRd1cGLW8 expected=spotify:track:77iL0X5sFnq53JPCeCWPUT repeat=off ``` ## Additional context The warning is emitted by the Engine-owned Spotify playback and verification path in `packages/server/src/services/tools/tool-executor.ts`. Investigation should distinguish Spotify playback propagation delay/device targeting from an Engine retry or verification-state problem. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [x] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:54:35 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2756
No description provided.