mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2565] [Issue]: YouTube Music DJ emits no result ("No agents ran") after Spotify/YouTube merge #1264
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#1264
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 @Romuromylus on GitHub (Jun 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2565
Originally assigned to: @Romuromylus on GitHub.
Summary
After the Spotify and YouTube DJ agents were merged into the unified Music DJ agent, the Music DJ in YouTube mode no longer plays anything. Triggering it (e.g. "Retry Music DJ" in Game Mode) surfaces the toast "No agents ran. Add tracker agents to this chat or check their connection settings," even though the agent is fully configured.
Expected behavior
With Music DJ set to
musicProvider: "youtube"(a YouTube Data API key and a connection assigned), running the agent should return ayoutube_controlresult with a mood-matched search query, and the embedded player should play the resulting track.Actual behavior
The agent starts but never emits an
agent_result, soagentResultCount === 0and the "No agents ran…" toast fires. No track plays. The agent is being handed the full Spotify tool set (spotify_search,spotify_play, …) despite being in YouTube mode, so it runs as a tool-calling agent instead of the pure-JSON YouTube agent and never produces theyoutube_controlresult.Steps to reproduce
musicProvider: "youtube", a YouTube Data API key, and a model connection.Environment
staging)Logs, screenshots, or video
The retry SSE stream shows the agent running with the Spotify tools bound and no result:
No
agent_resultevent is emitted, so the client reportsagentResultCount === 0.Additional context
Root cause: two tool-binding paths backfill the full Spotify tool set whenever a
"spotify"-type agent has an emptyenabledToolslist, without checking the music provider:packages/server/src/routes/generate/retry-agents-route.ts(the Spotify tool-binding loop)packages/server/src/services/generation/tool-resolution-runtime.ts(the equivalent main-generate path)The settings-level resolution in
packages/server/src/services/generation/agent-resolution.tsalready guards this with amusicProvider !== "youtube"check; these two backfills were missing the same guard. Fix branchfix/music-dj-youtube-no-result; PR to follow.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: