mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7769] [MERGED] feat(mari): let Professor Mari write interactive onboarding #7919
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#7919
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/7769
Author: @ylli-selmani
Created: 10/17/2026
Status: ✅ Merged
Merged: 10/17/2026
Merged by: @ylli-selmani
Base:
staging← Head:feat/mari-onboarding📝 Commits (5)
3617b34feat(mari): character.onboarding.get|update app_data actions1d97b58feat(mari): teach Professor Mari interactive onboarding7ed5baffix(mari): onboarding guidance tweaks from live runsfaae87bdocs(onboarding): match the Mari section to how her change card looksd5ace34fix(mari): refuse unknown onboarding question/option keys; neutral notice wording📊 Changes
7 files changed (+534 additions, -7 deletions)
View changed files
📝
docs/characters/interactive-onboarding.md(+4 -0)📝
docs/home/professor-mari.md(+3 -3)➕
packages/server/src/services/mari-db/character-onboarding.ts(+202 -0)📝
packages/server/src/services/mari-db/mari-db.service.ts(+57 -0)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+16 -4)➕
scripts/regressions/mari/character-onboarding.regression.ts(+210 -0)➕
scripts/regressions/professor-mari-onboarding-guidance.regression.ts(+42 -0)📄 Description
Linked issue
Closes #7760
Why this change
{{name}}placeholders,{{#if}}follow-ups, and the naming rules. Professor Mari is the obvious helper, but she didn't know the feature existed. The only way she could have written one was a rawextensions.onboardingpatch with no checks, so a misspelled name or a block the editor can't read ("Start over") would have been saved without warning.What changed
{{name}}to the card's own description, personality or scenario.app_dataactions,character.onboarding.getandcharacter.onboarding.update:validateOnboarding. Names that are empty, invalid, reserved or used twice, a{{name}}with no question, a plain{{if}}without#, unknown keys or a wrong shape are refused, with one message listing every problem. She fixes them and sends again.updatemerges: keys she sends replace, keys she leaves out stay, and a question list she sends replaces that whole list.replacemutation, so change cards, Undo,applyand character versioning work as for her other edits.{{#if}}rules, where character questions go, lowercase option values for mid-sentence answers) and one worked example.docs/characters/interactive-onboarding.mdand one line ondocs/home/professor-mari.md.Design notes
getandupdate, no per-question add/update/delete actions (unlike preset choice blocks). A list holds at most 100 questions, so read, edit, resend is cheap, and two actions keep her prompt and our code small. Per-question actions can follow if she struggles with them.{{name}}into the onboarding template instead of the card. The server flagged the question as unused, but she still reported done. Two fixes followed: the prompt now says where character questions go and why, and a save with notices now says so in the result she reads.mari characters update --jsondropping sibling extensions, shipped separately in #7764.Known limitations / follow-ups
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Local results (agent-run):
pnpm check: exit 0.node scripts/run-regressions.mjs --filter onboarding: 6/6 passed.--filter mari: 52/53 passed. The one failure,mari-appearance-pack.regression.mjs, is unrelated: on Windowssharpresolves a client sprite path as/C:/….scripts/regressions/mari/character-onboarding.regression.tsdrives the realMariDbService: valid write, partial update, 7 refusals that store nothing, unused-question notices and the result message Mari reads.scripts/regressions/professor-mari-onboarding-guidance.regression.tsruns the prompt's worked example through the real server gate, so the example can't teach a broken pattern.To verify by hand:
{{name}}, and that the character question's answer appears where Mari put it in the card.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 new UI. Screenshots of the live run (glm 5.3): Mari's change card, then the card's Onboarding tab and Rendered preview.
🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.