mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2566] [MERGED] fix(music-dj): don't bind Spotify tools to the YouTube-mode Music DJ #5661
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#5661
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/2566
Author: @Romuromylus
Created: 6/15/2026
Status: ✅ Merged
Merged: 6/15/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/music-dj-youtube-no-result📝 Commits (3)
dafd8f7fix(music-dj): don't bind Spotify tools to the YouTube-mode Music DJ364ddb4Merge branch 'staging' into fix/music-dj-youtube-no-resulta72702dMerge branch 'staging' into fix/music-dj-youtube-no-result📊 Changes
2 files changed (+11 additions, -2 deletions)
View changed files
📝
packages/server/src/routes/generate/retry-agents-route.ts(+3 -1)📝
packages/server/src/services/generation/tool-resolution-runtime.ts(+8 -1)📄 Description
Linked issue
Closes #2565
Why this change
What changed
The Music DJ agent (type
spotify) runs as a pure-JSON agent whenmusicProvideris"youtube"— it returns a search query and the client plays the result in the embedded player, so it has no tools by design. Two tool-binding paths backfilled the full Spotify tool set whenever a"spotify"-type agent had an emptyenabledToolslist, without checking the music provider, which turned the YouTube Music DJ into a tool-calling agent that never emitted ayoutube_controlresult.packages/server/src/routes/generate/retry-agents-route.ts: gate the empty-tools → all-Spotify-tools backfill on!musicAgentUsesYoutube(settings).packages/server/src/services/generation/tool-resolution-runtime.ts: gate the equivalent backfill onmusicProvider/musicPlayerSourcenot being"youtube".Both now match the guard already present in
packages/server/src/services/generation/agent-resolution.ts. Server-only change; no client edits.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm checkpasses locally. Boxes left unticked while this is a draft, pending a final maintainer pass.Verified on a self-hosted Docker deployment of this branch, replaying the exact game-mode "Retry Music DJ" request against a Music DJ configured for YouTube:
agent_result(agent_start → agent_debug → done), so the client reportedagentResultCount === 0and showed "No agents ran…".agent_resultwithresultType: "youtube_control",success: true, and a mood-matchedsearchQuery(e.g. "Nier Automata – Weight of the World … instrumental"), so the embedded player plays the track.To re-verify in the app: in a Game Mode chat with Music DJ (YouTube) configured (a YouTube Data API key + a connection), click "Retry Music DJ" — a YouTube track should load and play, with no "No agents ran" toast. Spotify-mode Music DJ is unaffected (it still gets its tools).
Docs and release impact
This is a server bugfix with no user-facing config or behavior docs to update.
UI evidence (if applicable)
Not applicable — server fix; the visible effect is the embedded player resuming playback in YouTube mode.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.