mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8559] [MERGED] feat(mari): Prof. Mari in the Persona and Lorebook editors #8672
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#8672
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/8559
Author: @Gunterlie
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @Gunterlie
Base:
staging← Head:feat/mari-editors📝 Commits (4)
89ff304feat(mari): Prof. Mari companion and in-field review in the Persona editor (#8541)9e61d6cfeat(mari): Prof. Mari in the Lorebook editor and its entries (#8552)c15c0d5Merge origin/staging into feat/mari-editors038e3a5fix(mari): clear the Edit takeover when a background entry save fails Keep📊 Changes
18 files changed (+2425 additions, -1602 deletions)
View changed files
📝
packages/client/src/components/characters/CharacterEditor.tsx(+15 -9)📝
packages/client/src/components/characters/MariFieldReview.tsx(+23 -14)📝
packages/client/src/components/chat/HomeProfessorMariChat.tsx(+10 -8)📝
packages/client/src/components/chat/MariApprovalCards.tsx(+11 -6)📝
packages/client/src/components/chat/MariEditEasyViewer.tsx(+22 -20)📝
packages/client/src/components/chat/mari/use-mari-workspace-run.ts(+3 -7)📝
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/lorebooks/LorebookEditor.tsx(+1469 -1231)📝
packages/client/src/components/lorebooks/LorebookEntryRow.tsx(+83 -25)📝
packages/client/src/components/lorebooks/LorebookFormFields.tsx(+4 -1)📝
packages/client/src/components/personas/PersonaEditor.tsx(+229 -121)📝
packages/client/src/hooks/use-mari-editor-fields.ts(+99 -14)📝
packages/client/src/lib/mari-editor-fields.ts(+236 -103)📝
packages/client/src/stores/ui.store.ts(+6 -6)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+1 -1)📝
scripts/regressions/mari-editor-fields.regression.ts(+202 -30)📝
scripts/regressions/mari/review-cards.regression.ts(+4 -0)📄 Description
Linked issue
No issue: planned work, slices 7a and 7b of the Professor Mari companion (#8418). Integration PR for
feat/mari-editors: #8541 (Persona editor) and #8552 (Lorebook editor and its entries), each reviewed on its own PR.Why this change
Prof. Mari's companion (anchored fields, panel / sheet beside the editor, in-field review with Keep / Not this one / Edit / Undo, the field's unsaved text in her context) only worked in the Character editor. Personas and lorebooks are the next most-edited records.
What changed
lib/mari-editor-fields.ts: oneMARI_EDITOR_KINDStable (character, persona, lorebook, lorebook entry) with update action, change-card table, id arguments, patch wrappers, field ids, aliases and review order, each matching its server handler. Character helpers renamed to generic ones (heldEditorFields,keptEditorFields,formFieldValue,openEditorAtField,mariPatchFieldId).PersonaEditor.tsx: field anchors, companion, in-field review on 9 textareas, pre-save on Keep, Edit takeover restore.LorebookEditor.tsx/LorebookEntryRow.tsx: same for the book and its entries (entries.<entryId>.<key>); form rebase on refetch; saves only changed keys; Keep waits for in-flight and background entry saves; a collapsed entry opens on Next / Open at this field.workspace-agent.service.ts: a held entry edit that sends both ids is read byentryIdfirst (HELD_ID_ARGSorder).mariPatchFieldId("character", …)/reviewRankhelpers; the store keeps bothentityIdworking field andmariFieldStream.Streaming into the field stays character-only. Preset / agent / tool editors follow in a later PR.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run (not manual): on the slice PRs, Opus reviews (persona: 5 low; lorebook: 3 medium + 3 low) all fixed; Playwright on throwaway instances without a model: persona 37/37, lorebook 35/35, character/persona quick pass 16/16, at 1440 and 390. On this merge: client and server
tsc, ESLint (one pre-existing warning,serverRun), Prettier, regressionsmari-editor-fields,field-stream,review-cards,omnibar-settings-sync,mobile-safe-area-insetpass. Not run with a real model; fullpnpm checknot run locally.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; attach on request.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.