[GH-ISSUE #8901] [Feature]: Character-specific Music DJ folders, per-chat overrides, and global fallback #8545

Closed
opened 2026-11-07 16:43:41 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @psych0genesis on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8901

Originally assigned to: @SpicyMarinara on GitHub.

Problem

Music DJ's Custom → Music folder on this device path currently comes from shared agent settings. When switching between roleplay chats, it can still point to the previous character's soundtrack.

For example, a Nazuna chat uses a Call of the Night soundtrack folder; opening a Keyleth chat still shows that folder. Manually changing the folder for Keyleth should not overwrite the source Nazuna uses.

The Music DJ guide explicitly says the source choice is shared across the application: https://github.com/Pasta-Devs/Marinara-Engine/blob/main/docs/media/music.md. The chat setup component packages/client/src/components/chat/AgentAddSetupFields.tsx initializes customMusicExternalFolder from Music DJ agent settings, while the chat metadata patch persists customMusicFolder (Game Assets) but not a chat-specific external directory.

Requested behavior

Please add character-linked local music libraries with optional per-chat overrides and a global fallback:

  1. Global default: Retain a default Music DJ folder for chats/characters without a specific assignment. Existing setups keep working without migration surprises.
  2. Character-specific library: Allow linking an existing folder to a character card, conceptually similar to linked lorebooks, so the appropriate soundtrack is selected whenever that character's solo chat is opened.
  3. Per-chat override: Allow a chat or story branch to choose its own folder without altering the character's association or global agent settings.
  4. Precedence: Explicit chat override → unambiguous character-associated folder → global default. For multi-character chats, use the chat override/global default rather than switching automatically with every speaker.
  5. Clear UI: Show effective folder and whether it is inherited from global/character or explicitly overridden; provide 'Use default' / reset.
  6. Preserve local files: Store directory references, not copies of music libraries; preserve existing server-device path permissions and format validation. Ideally extend the same scoping to Game Assets subfolders.

Acceptance examples

  • Assign soundtrack A to Nazuna and soundtrack B to Keyleth.
  • Open Nazuna's roleplay: Music DJ uses A.
  • Open Keyleth's roleplay: Music DJ uses B.
  • Return to Nazuna: A is still selected, with no manual path editing.
  • Select soundtrack C as a chat override: only that chat uses C.
  • Characters/chats without custom paths still inherit global defaults.

Scope / reference

This is primarily an Engine UI/settings/storage/effective-setting request, rather than a downloadable Music DJ agent prompt change. See docs/media/music.md and packages/client/src/components/chat/AgentAddSetupFields.tsx.

Thank you for considering this feature.

Originally created by @psych0genesis on GitHub (Nov 6, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8901 Originally assigned to: @SpicyMarinara on GitHub. ## Problem Music DJ's **Custom → Music folder on this device** path currently comes from shared agent settings. When switching between roleplay chats, it can still point to the previous character's soundtrack. For example, a Nazuna chat uses a *Call of the Night* soundtrack folder; opening a Keyleth chat still shows that folder. Manually changing the folder for Keyleth should not overwrite the source Nazuna uses. The Music DJ guide explicitly says the source choice is shared across the application: https://github.com/Pasta-Devs/Marinara-Engine/blob/main/docs/media/music.md. The chat setup component `packages/client/src/components/chat/AgentAddSetupFields.tsx` initializes `customMusicExternalFolder` from Music DJ agent settings, while the chat metadata patch persists `customMusicFolder` (Game Assets) but not a chat-specific external directory. ## Requested behavior Please add **character-linked local music libraries with optional per-chat overrides and a global fallback**: 1. **Global default:** Retain a default Music DJ folder for chats/characters without a specific assignment. Existing setups keep working without migration surprises. 2. **Character-specific library:** Allow linking an existing folder to a character card, conceptually similar to linked lorebooks, so the appropriate soundtrack is selected whenever that character's solo chat is opened. 3. **Per-chat override:** Allow a chat or story branch to choose its own folder without altering the character's association or global agent settings. 4. **Precedence:** Explicit chat override → unambiguous character-associated folder → global default. For multi-character chats, use the chat override/global default rather than switching automatically with every speaker. 5. **Clear UI:** Show effective folder and whether it is inherited from global/character or explicitly overridden; provide 'Use default' / reset. 6. **Preserve local files:** Store directory references, not copies of music libraries; preserve existing server-device path permissions and format validation. Ideally extend the same scoping to Game Assets subfolders. ## Acceptance examples - Assign soundtrack A to Nazuna and soundtrack B to Keyleth. - Open Nazuna's roleplay: Music DJ uses A. - Open Keyleth's roleplay: Music DJ uses B. - Return to Nazuna: A is still selected, with no manual path editing. - Select soundtrack C as a chat override: only that chat uses C. - Characters/chats without custom paths still inherit global defaults. ## Scope / reference This is primarily an **Engine UI/settings/storage/effective-setting** request, rather than a downloadable Music DJ agent prompt change. See `docs/media/music.md` and `packages/client/src/components/chat/AgentAddSetupFields.tsx`. Thank you for considering this feature.
bsakaguchi 2026-11-07 16:43:41 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Nov 6, 2026):

Design decisions from the maintainer (2026-11-06). Building it now:

  • Storage: character folders are kept in the Music DJ agent settings, as customMusicCharacterFolders. Each chat's own folder is a chat metadata key. There is no database change and no migration.
  • Which folder wins: the chat's own folder, then the character's folder (in one-character chats only), then the global default.
  • No Character Editor field. The character folder is set from the chat's Music DJ settings with Apply to: This chat, the character's name (one-character chats only), or All chats.
  • Game Assets: a chat or character folder takes over even when the global source is Game Assets.
  • Use default clears only the chat's own folder. Unlink from removes the character's folder.
  • Privileged access: saving a typed folder path needs the same access as the folder picker.
  • Exports: device paths stay out of agent exports, settings profiles and chat exports.
<!-- gh-comment-id:6689393157 --> @SpicyMarinara commented on GitHub (Nov 6, 2026): Design decisions from the maintainer (2026-11-06). Building it now: - **Storage:** character folders are kept in the Music DJ agent settings, as `customMusicCharacterFolders`. Each chat's own folder is a chat metadata key. There is no database change and no migration. - **Which folder wins:** the chat's own folder, then the character's folder (in one-character chats only), then the global default. - **No Character Editor field.** The character folder is set from the chat's Music DJ settings with **Apply to**: This chat, the character's name (one-character chats only), or All chats. - **Game Assets:** a chat or character folder takes over even when the global source is Game Assets. - **Use default** clears only the chat's own folder. **Unlink from <name>** removes the character's folder. - **Privileged access:** saving a typed folder path needs the same access as the folder picker. - **Exports:** device paths stay out of agent exports, settings profiles and chat exports.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8545
No description provided.