mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8961] [MERGED] fix(chat-profiles): Saved Settings drop the Author's Note and keep preset variables #8916
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#8916
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/8961
Author: @SpicyMarinara
Created: 11/7/2026
Status: ✅ Merged
Merged: 11/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/saved-settings-scope📝 Commits (3)
dd017d5fix(chat-profiles): keep Author's Notes out of Saved Settings and save preset variables80ef876fix(chat-profiles): keep saved preset choices in the wizard, wizard defaults and exports in scope792a178fix(scene): plan a scene with the profile's choices for its own preset📊 Changes
14 files changed (+429 additions, -25 deletions)
View changed files
📝
docs/chats/settings-profiles.md(+5 -4)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+4 -0)📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+2 -0)📝
packages/client/src/lib/chat-setup-draft.ts(+3 -0)📝
packages/client/src/lib/chat-wizard-defaults.ts(+11 -1)📝
packages/server/src/routes/chat-presets.routes.ts(+3 -2)📝
packages/server/src/routes/scene.routes.ts(+14 -5)📝
packages/server/src/services/storage/chat-presets.storage.ts(+33 -3)📝
packages/shared/src/schemas/chat-preset.schema.ts(+8 -0)📝
packages/shared/src/types/chat-preset.ts(+27 -3)📝
scripts/regressions/chat-profile-followers.regression.ts(+4 -3)➕
scripts/regressions/chat-profile-saved-scope.regression.ts(+241 -0)📝
scripts/regressions/chat-wizard-defaults.regression.ts(+7 -0)📝
scripts/regressions/scene-participants.regression.ts(+67 -4)📄 Description
Linked issue
Closes #8957
Why this change
Saved Settings (chat profiles) captured the chat's Author's Note, which belongs to the chat, so applying a profile carried one chat's note into another. They also dropped the preset variable choices, which are part of the prompt setup a profile is meant to keep, so a profile came back with the preset's defaults. The maintainer confirmed both: "1. Not intended. Good catch. 2. We can do that."
What changed
In detail:
authorNotesandauthorNotesDepthare onCHAT_PRESET_EXCLUDED_METADATA_KEYS(chat-preset.ts). Profiles are cleaned when read (rowToPreset), so no migration is needed. Applying a profile, a follower update and the new-chat wizard's copy all keep the chat's own note.settings.presetVariables: { presetId, choices }field, filled from the chat's prompt preset in the drawer.presetIdmatches the profile's prompt preset (sanitizePresetVariables). Malformed choices are dropped instead of failing the save.chatPresetVariablesFordecides when they apply:applyToChatgains apromptPresetIdoption, so a scene with its own preset gets that preset in one step and never the profile's choices for a different preset. With no preset picked for the scene, the scene planner uses the profile's saved choices.presetVariables, like the persona and lorebook picks. Prompt preset ids are per install, and the released v2.5.2 schema is strict, so it would refuse a file carrying the new field.docs/chats/settings-profiles.mddescribes both behaviours. The translated copies are tracked in #8960.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent runs, for the record (not a substitute for the boxes above):
pnpm checkexited 0.chat-profile-saved-scope(fails on staging at "the profile leaves out the Author's Notes").chat-profile-followers,chat-wizard-defaultsandscene-participants.chat-profile-starting-picks,scene-(6/6),profile-(10/10),prompt.regression(9/9),empty-home-chat-setup,chat-local-destination-securityand related suites.Manual verification notes
presetVariables, and v2.5.2 imports it.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/chats/settings-profiles.mdchanged. The translation follow-up is #8960.UI evidence (if applicable)
No visual change: one picker now opens on the chat's current choices.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
[PR #8961] fix(chat-profiles): Saved Settings drop the Author's Note and keep preset variablesto [PR #8961] [MERGED] fix(chat-profiles): Saved Settings drop the Author's Note and keep preset variables