mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8418] [MERGED] feat(mari): Prof. Mari companion next to the Character editor #8589
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#8589
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/8418
Author: @Gunterlie
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/mari-companion📝 Commits (10+)
78c64ebfix(characters): merge refetched edits into an unsaved Character editor form998bb7efix(characters): keep the merge base until the save lands; guard the conflict action61300afMerge pull request #8401 from Pasta-Devs/fix/mari-character-form-rebase5a87989feat(mari): anchor Character editor fields for Prof. Mari075c1b8fix(mari): review fixes for Character editor field anchorscd0941dMerge pull request #8403 from Pasta-Devs/feat/mari-field-anchors65bca12fix(mari): header focus and Open-at-field on held character cards3215ae8Merge pull request #8405 from Pasta-Devs/fix/mari-field-anchors-live5aa25d8feat(mari): send the focused field's unsaved text and selection to Prof. Marif55525afeat(mari): Prof. Mari floats as a companion panel next to the Character editor📊 Changes
33 files changed (+2725 additions, -466 deletions)
View changed files
📝
packages/client/src/components/characters/CharacterEditor.tsx(+559 -415)➕
packages/client/src/components/characters/MariFieldReview.tsx(+321 -0)📝
packages/client/src/components/chat/HomeProfessorMariChat.tsx(+93 -0)📝
packages/client/src/components/chat/MariApprovalCards.tsx(+22 -0)📝
packages/client/src/components/chat/MariChangeReceipt.tsx(+2 -2)📝
packages/client/src/components/chat/MariEditEasyViewer.tsx(+44 -3)📝
packages/client/src/components/chat/mari/MariOmnibarHeaderChrome.tsx(+5 -1)📝
packages/client/src/components/chat/mari/mari-chat-helpers.tsx(+26 -0)📝
packages/client/src/components/chat/mari/use-mari-workspace-run.ts(+13 -0)📝
packages/client/src/components/layout/GlobalOmnibar.tsx(+130 -34)📝
packages/client/src/components/layout/GlobalOmnibarHost.tsx(+3 -0)📝
packages/client/src/components/layout/omnibar/OmnibarMariPane.tsx(+5 -1)➕
packages/client/src/components/layout/omnibar/use-mari-companion.tsx(+336 -0)➕
packages/client/src/hooks/use-mari-editor-fields.ts(+132 -0)📝
packages/client/src/hooks/use-settings-sync.ts(+4 -0)📝
packages/client/src/lib/editor-leave.ts(+9 -0)➕
packages/client/src/lib/form-rebase.ts(+30 -0)➕
packages/client/src/lib/mari-editor-fields.ts(+242 -0)📝
packages/client/src/lib/omnibar-completion-actions.ts(+4 -2)📝
packages/client/src/lib/professor-mari-command-center-context.ts(+10 -1)...and 13 more files
📄 Description
Linked issue
No issue: planned work. Integration branch for the Professor Mari companion feature (Prof. Mari floats next to the editor and live-edits it). Each slice was reviewed and merged into
feat/mari-companionon its own PR: #8401, #8403, #8405, #8406, #8407, #8411, #8417. More editors (persona, lorebook, preset/agent/tool) follow later in separate PRs.Why this change
Prof. Mari could change a character, but she worked in a modal window away from the fields: the user could not see the field she was talking about, a Save in the open editor could overwrite her change, and her held changes could only be reviewed on her chat card. This brings her next to the Character editor and her changes into the fields.
What changed
lib/form-rebase.ts) instead of keeping a stale form.data-mari-fieldon Character fields; the focused field goes into her context; "Open at this field" on her change cards; field glow while she works.context.fieldDraft(capped, marked as untrusted user text in the prompt; not stored for list fields).Only the Character editor opts in so far. No editor open → unchanged window. No new top-bar buttons; the phone pull-down door is unchanged. No approval contract change: accept is whole-change.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run per slice (details in each slice PR): client
tsc -band build, ESLint, Prettier,localization:check, theform-rebase,mari-editor-fields,command-center,mari-polishand Prof. Mari documentation regressions. Every slice had an Opus read-only review; all findings were fixed before merge. Playwright on throwaway instances: slice 4 38/38, slice 5 50/50, slice 6 61/61 (Chromium mobile emulation, not real iOS / Android). Slices 1–3 were live-tested with a real model (MiniMax M3 via NanoGPT); slices 4–6 were tested with a seeded held change, not with a real model. GitHub CI passed on every slice PR.staging(10 commits ahead) merges into this branch without conflicts.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 for each slice are in the slice PRs' notes (local
.tmp/mari-companion/slice4–slice6); attach on request.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.