mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8371] [MERGED] fix(mari): clear persona fields with "", explain nested onboarding, let onboarding cover character.update #8321
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#8321
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/8371
Author: @ylli-selmani
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ylli-selmani
Base:
staging← Head:fix/mari-window-and-engine-fixes📝 Commits (2)
0f58401fix(mari): clear persona fields with "", explain nested onboarding, let onboarding cover character.update4d02fc9docs(mari): list every persona column persona.update writes📊 Changes
8 files changed (+123 additions, -17 deletions)
View changed files
📝
packages/server/src/assets/mari-skills/characters.md(+2 -2)📝
packages/server/src/assets/mari-skills/onboarding.md(+1 -0)📝
packages/server/src/services/mari-db/character-onboarding.ts(+11 -3)📝
packages/server/src/services/mari-db/mari-db.service.ts(+25 -12)📝
packages/server/src/services/professor-mari/workspace-commands.ts(+6 -0)📝
scripts/regressions/mari/app-data-envelope-errors.regression.ts(+19 -0)📝
scripts/regressions/mari/character-onboarding.regression.ts(+6 -0)📝
scripts/regressions/mari/db-review-durability.regression.ts(+53 -0)📄 Description
Linked issue
Closes #8368
(#8367, the Mari window layout on phones, was planned for this PR. It doesn't reproduce on current staging, so it stays open; see the issue.)
Why this change
Professor Mari reported four small engine and handbook warts herself. Each one costs a small model a wrong turn:
persona.updatesilently dropped""for every text field. Sent alone, the clear got the wrong error. Sent beside another field, the write saidverified, so she told the user a clear had happened when it hadn't. Characters already cleared fine.{"onboarding":{…}}inside theonboardingargument) got "Unknown onboarding key(s): onboarding." That's true, but it doesn't say what to do.onboarding.mdtells her to send the card patch with the block, butcharacter.updatewas gated on the characters handbook. After reading only onboarding, the block saved and the patch was refused.characters.mdleft out two persona columns,imageAppearanceandimageAppearanceEnabled, whichpersona.updatewrites.What changed
Persona clears (
mari-db.service.ts)assignClearableStringField. It works likeassignStringField, except that""and whitespace-only count as a value and are saved as"", matching howsummaryand the character card fields already behave.persona.updateuses it for every text field exceptname, which still never clears.nulland non-strings are still dropped, as on characters.Nested onboarding hint (
character-onboarding.ts)onboarding,patchordataand holds an object. The error then adds: "The block is nested one level too deep: send its fields directly as theonboardingargument."onboarding.md's error table gets the matching row.Handbook gate (
workspace-commands.ts)builtin-onboardingnow satisfies the gate forcharacter.update, and only that action.character.createstill needs the characters handbook, and having read nothing is still refused.Handbook (
characters.md)imageAppearanceandimageAppearanceEnabled(a boolean)."";nullis dropped.Regressions
db-review-durabilitycovers four persona cases:aboutMe: ""besidenameclears it, and the read-back verifies it;aboutMe: ""counts as a patch field and clears;name: ""is not applied.character-onboarding: a nested block names the fix; a wrapper key holding a string doesn't.app-data-envelope-errors: onboarding coverscharacter.update;character.createis still gated; having read nothing is still refused.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run checks:
pnpm checkexits 0.node scripts/run-regressions.mjs --filterpasses forcharacter-onboarding,db-review-durability,app-data-envelope-errors,builtin-skills,onboarding-guidanceandpersona.Still to check by hand:
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)
No UI changes. The change is in Mari's engine and her handbooks.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.