mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7764] [MERGED] fix(mari): deep-merge mari characters update --json patches #7916
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#7916
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/7764
Author: @ylli-selmani
Created: 10/17/2026
Status: ✅ Merged
Merged: 10/17/2026
Merged by: @ylli-selmani
Base:
staging← Head:fix/mari-characters-update-deep-merge📝 Commits (2)
0bd2f19fix(mari): deep-mergemari characters update --jsonpatches75382f6test(mari): seed tags before the array-replace check📊 Changes
2 files changed (+92 additions, -1 deletions)
View changed files
📝
packages/server/src/services/mari-db/mari-db.service.ts(+1 -1)➕
scripts/regressions/mari/characters-update-deep-merge.regression.ts(+91 -0)📄 Description
Linked issue
Closes #7761
Why this change
mari characters update <id> --json '...'and the patch touches anything underextensions(depth prompt, onboarding, ...), every other extension on the card was wiped: appearance, backstory, and the rest. The CLI merged the patch with a top-level spread, soextensionswas replaced instead of merged. Theapp_datacharacter.updatepath already deep-merges; only the CLI path didn't.extensions.What changed
characters update --jsonedits now change only the keys in the patch. Other card extensions (appearance, backstory, depth prompt, onboarding) stay. Lists in a patch (liketags) still replace the whole list, same asapp_datacharacter.update.scripts/regressions/mari/characters-update-deep-merge.regression.tsdrives the realMariDbServiceCLI against a temp file store. It fails on the old code ("a sibling extension (appearance) survives the patch") and passes with the fix.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Local results (agent-run):
pnpm checkexit 0.node scripts/run-regressions.mjs --filter regressions/mari: 31/32 passed. The new regression failed before the fix and passes after. The one failure,mari-appearance-pack.regression.mjs, is unrelated client sprite tooling:sharpcan't findpackages/client/public/sprites/mari/basic/pose-greet.webp(it resolves the path as/C:/...on Windows). Local CodeRabbit: 0 findings.To verify by hand:
mari characters update <id> --json '{"extensions":{"depth_prompt":{"prompt":"x","depth":4,"role":"system"}}}' --apply, then open the character and confirm Appearance and Backstory are still there and the depth prompt is set.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Server-only change; no UI.
🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.