mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3951] [MERGED] Fix background streaming and Music DJ rotation #6171
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#6171
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3951
Author: @SpicyMarinara
Created: 7/22/2026
Status: ✅ Merged
Merged: 7/22/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/fix-streaming-music-dj📝 Commits (4)
e326c60Fix background streaming and Music DJ rotation4ee8149Merge branch 'staging' into agent/fix-streaming-music-djd5a4d81test: strengthen streaming and Spotify regressions9a3e6d9Merge remote-tracking branch 'origin/staging' into agent/fix-streaming-music-dj📊 Changes
8 files changed (+216 additions, -22 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/client/src/components/game/GameSurface.tsx(+4 -4)📝
packages/client/src/lib/api-client.ts(+43 -14)📝
packages/server/src/routes/game.routes.ts(+4 -1)📝
packages/server/src/services/tools/tool-executor.ts(+4 -2)📝
packages/shared/src/types/spotify.ts(+3 -0)📝
scripts/regressions/prompt.regression.ts(+70 -0)📝
scripts/regressions/roleplay-streaming.regression.ts(+86 -1)📄 Description
Why
A healthy streamed reply could be replaced by the fully persisted message when Marinara regained visibility after being backgrounded, making the reply appear all at once. Music DJ also retained only a small, inconsistent recent-track window, so 50-song candidate batches from very large playlists could recycle the same choices too quickly.
No linked issue. This is a maintainer-directed fix from direct user reports.
What changed
Validation
pnpm checkpassed on the integrated worktree before the PR split.pnpm regression:promptpassed, including the 50-candidate large-playlist case.pnpm regression:roleplaypassed, including healthy and stalled visibility-resume streams.git diff --checkpassed for this branch.Manual verification
Risk
The automated tests cover the stream state machine and candidate exclusion window. Real multi-monitor browser scheduling and live Spotify playback remain manual verification items.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.