mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7007] [MERGED] feat(presets): let a prompt block opt out of the preset wrap format #7428
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#7428
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/7007
Author: @JurijPietrowicz
Created: 10/3/2026
Status: ✅ Merged
Merged: 10/3/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/section-wrap-override📝 Commits (3)
db4b403feat(presets): let a prompt block opt out of the preset wrap formatb1949f0docs(changelog): link the prompt-block wrap opt-out issue7f9a641Merge branch 'staging' into feat/section-wrap-override📊 Changes
16 files changed (+122 additions, -3 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/prompts/presets.md(+2 -0)📝
packages/client/src/components/presets/PresetEditor.tsx(+20 -1)📝
packages/client/src/localization/locales/en.json(+2 -0)📝
packages/server/src/db/schema/prompts.ts(+2 -0)📝
packages/server/src/db/seed.ts(+3 -0)📝
packages/server/src/routes/backup.routes.ts(+1 -0)📝
packages/server/src/services/conversation/character-commands.ts(+2 -0)📝
packages/server/src/services/generation/professor-mari-command-runtime.ts(+2 -0)📝
packages/server/src/services/import/marinara.importer.ts(+1 -0)📝
packages/server/src/services/mari-db/mari-db.service.ts(+2 -0)📝
packages/server/src/services/prompt/assembler.ts(+5 -2)📝
packages/server/src/services/storage/prompts.storage.ts(+3 -0)📝
packages/shared/src/schemas/prompt.schema.ts(+1 -0)📝
packages/shared/src/types/prompt.ts(+2 -0)📝
scripts/regressions/prompt.regression.ts(+73 -0)📄 Description
Linked issue
Closes #7006
Why this change
What changed
isMarkeris true, so a marker imported with the flag set cannot lose its wrapper.skipWrap(shared type, zod schema,skip_wrapcolumn with default"false"). Existing rows read the column default, so no migration orSTORAGE_VERSIONbump is needed.skipWrapis carried through preset duplicate, section duplicate, export (raw rows), backup restore, Marinara import, bundled-preset reseed and Professor Mari's preset commands.skipWraponly when it is true. Otherwise every install's stored snapshot hash would stop matching and the stock preset would look user-edited.docs/prompts/presets.mdparagraph under "Wrap formats", English UI strings, and aCHANGELOG.mdentry.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated runs at
db4b403f962e1830a0ab5a22637914c080fa62ca(the code commit; the laterb1949f05fchanges only the changelog line), on top ofstaging031c372e9:pnpm check: passed.pnpm localization:check: passed.pnpm version:check: passed.pnpm regression: 494/494 passed, including the new prompt regression. With the marker guard or theskipWraphandling removed fromassembler.ts, the new regression fails.pnpm smoke:ui: 7/7 passed (desktop Chromium).pnpm regression:ui e2e/core-flows.e2e.ts --project=desktop-chromium --project=mobile-chromium --grep "preset token counters|quick preset editor" --workers=1: 4 passed, 2 skipped (viewport-specific tests that skip on the other project).DATA_DIR: on a duplicated preset,PATCHwith{"skipWrap": true}was stored and read back, and kept through preset duplicate and export. Existing sections read"false".Claim boundary (prompt assembly / storage / import-export):
skipWrapis sent unwrapped. Everything else assembles exactly as before.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/prompts/presets.mdchanged. The[docs-i18n] docs/prompts/presets.mdfollow-up issue will be opened and linked here.UI evidence (if applicable)
Prompt with switch disabled:

Prompt with switch enabled:

🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.