mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1810] [Issue]: Spotify DJ source and playback parity regressions in refactor #890
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#890
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Xelvanis on GitHub (Jun 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1810
Originally assigned to: @cha1latte on GitHub.
Summary
Spotify DJ and mini-player behavior on the refactor line appears to have lost several legacy behaviors around source constraints, playback fallback, and token storage.
Key gaps found by static comparison:
Liked Songs,Playlist,Artist, andAny Spotifyconstraints and always performs generic Spotify search.Expected behavior
/me/playerhas no active device, gives a clear no-device error when none exists, and sets repeat-track behavior for scene music.Actual behavior
src/features/modes/game/api/game-api.tsmapsenableSpotifyDj,gameSpotifySourceType,gameSpotifyPlaylistId, andgameSpotifyArtistinto chat metadata, butspotifyCandidates()only callsspotifyApi.searchTracks()with a simple text query and recent URI filter. It does not pass or apply the saved source metadata.src-tauri/src/commands/storage/integrations/spotify.rsgame_spotify_play()sends one/me/player/playrequest with the optionaldeviceId; it does not find an available device, clear/set repeat state, or retry after Spotify settles.player_control(),player_volume(),player_shuffle(), andplayer_repeat()send one Spotify API request with the supplieddeviceId; they do not retry withoutdevice_idon stale-device or restriction errors.save_spotify_tokens()writesspotifyAccessTokenandspotifyRefreshTokendirectly into agent settings.FileStoragepersists collections as pretty JSON files.Legacy reference points from the old server/client implementation:
packages/server/src/services/spotify/game-spotify-music.service.tshonoredliked,playlist,artist, andanysource types, indexed/scored source tracks, excluded recent tracks, and returned source labels/modes.packages/server/src/services/spotify/game-spotify-music.service.tsfound available playback devices, handled mobile-only device selection, cleared repeat before scene track playback, then set repeat totrackafter playback settled.packages/server/src/routes/spotify-auth.routes.tsused a shared player-control helper that retried against the active Spotify device when a requested device was not found or hit a restriction error.packages/server/src/routes/spotify-auth.routes.tsandpackages/server/src/services/spotify/spotify.service.tsencrypted Spotify access and refresh tokens before writing settings.Steps to reproduce
PlaylistorArtistas the Spotify music source and save the game.Impact area
Environment
6cc9d086Logs, screenshots, or video
No runtime logs or screenshots. Evidence is static source comparison between current refactor files and the legacy implementation paths listed above.
Regression notes
This appears to be a legacy parity regression. The legacy implementation supported source-aware candidate selection, Spotify device fallback/retry behavior, scene repeat-track handling, and encrypted Spotify token persistence.
Additional context
Suggested repair order:
http://127.0.0.1:8754/spotify/callbackwhile UI copy still referencesSPOTIFY_REDIRECT_URI.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@cha1latte commented on GitHub (Jun 1, 2026):
fixed in #1845