mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4849] [Issue]: Enforce chat settings profile mode and branch boundaries #2680
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#2680
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 @Xelvanis on GitHub (Aug 10, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4849
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Chat settings profiles can currently be applied to a chat in a different mode, and reusable profiles can capture branch display/lineage metadata. This lets an imported or directly requested profile mutate an incompatible chat and lets profile reuse transfer false branch identity between chats.
Expected behavior
branchName,branchParentChatId,branchParentMessageId, orbranchMessageId.Actual behavior
The client immediately applies a successfully imported profile without checking its mode. The server's apply route/storage path also does not compare the profile mode with the target chat mode. The profile metadata exclusion list omits the four branch identity fields, so they can be captured and replayed onto unrelated chats.
Steps to reproduce
POST /api/chat-presets/:profileId/apply/:chatIdusing a profile and chat with different modes; the request succeeds and writes the chat.Environment
staging)Logs, screenshots, or video
No runtime log is required. The behavior is visible in the current client import callback and server profile application/storage paths.
Additional context
The ordinary profile picker is filtered by the live chat mode, but imports bypass that filter. Legacy
visual_noveldata should continue to be migrated to Roleplay rather than treated as a separate compatibility mode.Template check
@Xelvanis commented on GitHub (Aug 10, 2026):
guuuuh, Codex submitted this without asking >:
@SpicyMarinara commented on GitHub (Aug 10, 2026):
Implementation is now owned by @SpicyMarinara in draft PR #4856.
@Xelvanis commented on GitHub (Aug 10, 2026):
WTB, ability to assign myself to issues 😂I'll be quicker on PRs next time, lol