mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8541] [MERGED] feat(mari): Prof. Mari companion and in-field review in the Persona editor #8660
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#8660
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/8541
Author: @Gunterlie
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @Gunterlie
Base:
feat/mari-editors← Head:feat/mari-persona-editor📝 Commits (1)
54a779dfeat(mari): Prof. Mari companion and in-field review in the Persona editor📊 Changes
12 files changed (+643 additions, -321 deletions)
View changed files
📝
packages/client/src/components/characters/CharacterEditor.tsx(+15 -9)📝
packages/client/src/components/characters/MariFieldReview.tsx(+12 -14)📝
packages/client/src/components/chat/HomeProfessorMariChat.tsx(+11 -5)📝
packages/client/src/components/chat/MariApprovalCards.tsx(+11 -6)📝
packages/client/src/components/chat/MariEditEasyViewer.tsx(+20 -20)📝
packages/client/src/components/layout/GlobalOmnibar.tsx(+5 -4)📝
packages/client/src/components/layout/omnibar/use-mari-companion.tsx(+3 -2)📝
packages/client/src/components/personas/PersonaEditor.tsx(+229 -121)📝
packages/client/src/hooks/use-mari-editor-fields.ts(+39 -8)📝
packages/client/src/lib/mari-editor-fields.ts(+181 -97)📝
packages/client/src/stores/ui.store.ts(+6 -6)📝
scripts/regressions/mari-editor-fields.regression.ts(+111 -29)📄 Description
Linked issue
No issue: planned work, slice 7a of the Professor Mari companion feature (#8418 shipped it for the Character editor). Slices 7a–7c are PRed into the integration branch
feat/mari-editors.Why this change
Prof. Mari's companion features (anchored fields, panel / sheet beside the editor, in-field review with Keep / Not this one / Edit / Undo, unsaved field text in her context) only worked in the Character editor. Personas are the next most-edited record, and the review code was character-only, so every further editor would have needed a copy.
What changed
lib/mari-editor-fields.ts: oneMARI_EDITOR_KINDStable (character, persona): update action, change-card table, id argument, patch wrappers, field ids, aliases, review order — each matching its server handler. HelpersmariEditorKindForAction,mariEditorKindForTable,isMariEditorKind,mariPatchFieldId; renamesheldCharacterFields→heldEditorFields,keptCharacterFields→keptEditorFields,characterFieldValue→formFieldValue,withCharacterFieldValue→withFormFieldValue.-,_, spaces removed) and the id is readidfirst, like the server, so the editor never shows a review the server would refuse or target (this also corrects the character path for calls that send both ids).hooks/use-mari-editor-fields.ts:openCharacterAtField→openEditorAtField(kind, …),isMariEditorOpen. Store review / reveal / working state:characterId→entityId(transient, no migration).PersonaEditor.tsx: field anchors (header name, Metadata, every Card textarea), "Prof. Mari is here" chip, companion opt-in (panel / sheet), in-field review on 9 textareas, pre-save on Keep, Edit takeover restore. Form rebase reuses the existingmergeAuthoritativePersonaEditorDraft.MariApprovalCards,MariEditEasyViewer,GlobalOmnibar(open-field),HomeProfessorMariChat,CharacterEditor.No new copy. Not anchored: About me / convo name / behavior (shared
ConvoProfileFields, also not anchored in the Character editor).imageAppearancestays on her card only (its anchor exists only while its toggle is on).Lorebook and preset join with one
MARI_EDITOR_KINDSentry plus anchors.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run (not manual): client
tsc -b; ESLint clean on touched files (one pre-existing warning); Prettier;localization:check; regressionsmari-editor-fields(persona cases + action/wrapper/id cases),character-form-rebase,omnibar-settings-sync,mobile-safe-area-insetpass. Opus read-only review: no blocker/high; 5 low (server-shape mismatches and edge cases), all fixed. Playwright on a throwaway instance (seeded held change, no model): 37/37 then 16/16 after fixes — persona 1440 panel + review (Keep all 3, Tab, Edit + Ctrl+Enter keeps your edit, Undo, Esc / Not this one, typing defers review, Save after her change keeps it, Cmd+J field text, Open at this field), persona 390 sheet auto-peek, character 1440 review + 390 sheet unchanged. Not run with a real model.Note: #8524 (staging) touches
HomeProfessorMariChat.tsx/MariFieldReview.tsxtoo; the integration branch will merge staging before it goes to staging.To verify manually:
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)
Screenshots are local (
~/scratch/mari-persona/.tmp/shots/); attach on request.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.