mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2811] [Issue]: Music DJ editor still shows Spotify prompt + tools after switching to YouTube #1428
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#1428
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 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2811
Originally assigned to: @Romuromylus on GitHub.
Summary
In the Music DJ agent editor, switching the Music Player provider to YouTube leaves two sections looking Spotify-only: the Prompt Template preview still shows the Spotify built-in prompt, and the Tools / Function Calling section shows a bare "0/15 enabled" with the now-inert Spotify tool toggles still listed. This reads as "the YouTube mode is missing its prompt and tools," when in fact the backend already handles YouTube correctly.
Expected behavior
When the Music Player provider is set to YouTube:
getDefaultAgentPrompt("youtube")) — the short, tool-free prompt that asks the model for asearchQuery.Actual behavior
With the provider switched to YouTube:
spotify:URIs,trackUris/trackNames).enabledTools: []).This is purely an editor-display gap. At generation time the backend already does the right thing: it swaps to the YouTube prompt (
getAgentFallbackPrompt/getDefaultPromptForAgent) and forcesenabledTools: []for YouTube viaapplyMusicPlayerSourceToMusicDjSettings. The editor just doesn't reflect the provider in these two sections.Steps to reproduce
Environment
Logs, screenshots, or video
Additional context
Root cause is in
packages/client/src/components/agents/AgentEditor.tsx:defaultPromptis memoized offagentDetailIdonly (always"spotify"for Music DJ), so the preview never reflects the YouTube provider.FieldGroupand itsselectedVisibleToolCount/availableVisibleToolCountsummary are not provider-aware.The backend YouTube prompt lives at
packages/shared/src/constants/agent-prompts.ts(theyoutubekey), and provider-aware selection already happens inpackages/server/src/services/generation/agent-resolution.tsandpackages/server/src/services/agents/agent-executor.ts.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: