mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#8880
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/8914
Author: @SpicyMarinara
Created: 11/6/2026
Status: ✅ Merged
Merged: 11/6/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/music-dj-character-folders📝 Commits (3)
d42ca16feat(music-dj): a music folder per character and per chat, over the default (#8901)3089956fix(music-dj): review fixes for per-character folders (#8901)d8e394dMerge remote-tracking branch 'origin/staging' into feat/music-dj-character-folders📊 Changes
25 files changed (+1118 additions, -103 deletions)
View changed files
📝
docs/game/game-assets.md(+2 -2)📝
docs/media/music.md(+27 -5)📝
packages/client/src/components/agents/AgentEditor.tsx(+3 -4)📝
packages/client/src/components/chat/AgentAddSetupFields.tsx(+190 -21)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+109 -38)📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+10 -1)📝
packages/client/src/lib/agent-transfer.ts(+3 -0)📝
packages/client/src/localization/locales/en.json(+9 -0)📝
packages/server/src/routes/agents.routes.ts(+23 -2)📝
packages/server/src/routes/backup.routes.ts(+3 -3)📝
packages/server/src/routes/chats.routes.ts(+11 -0)📝
packages/server/src/routes/generate.routes.ts(+3 -0)📝
packages/server/src/routes/generate/retry-agents-route.ts(+4 -0)📝
packages/server/src/services/generation/agent-resolution.ts(+10 -1)📝
packages/server/src/services/mari-db/mari-db.service.ts(+10 -6)📝
packages/shared/src/index.ts(+1 -0)📝
packages/shared/src/types/chat-preset.ts(+6 -3)📝
packages/shared/src/types/chat.ts(+5 -0)➕
packages/shared/src/utils/music-dj-folder.ts(+103 -0)📝
scripts/regressions/agent-connection-parameters.regression.ts(+50 -0)...and 5 more files
📄 Description
Linked issue
Closes #8901
Why this change
Music DJ's Music folder on this device was a single app-wide setting. Switching from one character's roleplay to another kept playing the first character's soundtrack, and changing the folder for one character changed it for every chat. #8901 asks for a folder per character, an optional per-chat override, and a global default.
The maintainer's decisions (2026-11-06, recorded on the issue):
What changed
packages/shared/src/utils/music-dj-folder.ts. The folder used is this chat's own folder, then the folder linked to the chat's only character, then the default.resolveEffectiveAgentSettingsapplies the resolver.customMusicCharacterFoldersin the Music DJ agent settings.customMusicExternalFolder.requirePrivilegedAccesswith the folder picker's options, and refuses the same way the picker does. This applies toPOST /agents,PATCH /agents/type/:agentType,PATCH /agents/:idandPATCH /chats/:id/metadata.agent_configsor chats.MusicFolderScopeappears in the Chat Settings drawer and in the add-agent setup.customMusicCharacterFolderson save, and its field is relabelled Default music folder on this device.TRANSFER_UNSAFE_AGENT_SETTING_KEYS, so agent exports and duplicates no longer carry device paths.CHAT_METADATA_LOCAL_DESTINATION_KEYS(chat export, the importer, profile export, restore) andCHAT_PRESET_EXCLUDED_METADATA_KEYS.docs/media/music.md: a new section, "Use a different folder for a chat or character", plus updates to remote access and troubleshooting.docs/game/game-assets.md: the relabelled field and the setup form's new behaviour.[docs-i18n]follow-up is #8913.music-dj-folder-access(the privileged checks; same refusal as the picker);manual-agent-retry-resolution(which folder wins, group chats, forced folder source);music-dj-local-library(only the folder in use reaches the prompt);illustrator-manual-cadence(what Add saves equals what In use showed, for every Apply-to path);agent-connection-parameters(the roster is passed);mari/db-execution-security(Mari can't add a folder path).Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run checks:
pnpm check: passes (0 errors; the 12 lint warnings are in files this PR doesn't touch).pnpm localization:check: passes.3089956957:agent_configs;game-assets.mdused the old label.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)The
[docs-i18n]follow-up fordocs/media/music.mdanddocs/game/game-assets.mdis #8913.Separate from this PR (found while mapping it, unchanged here):
/game-assets/local-music-fileserves any audio file on the device, not only files in a chosen folder.customMusicFolderis saved but never read.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.