mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8563] [MERGED] feat(mari): Prof. Mari in the Preset and Agent editors #8675
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#8675
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/8563
Author: @Gunterlie
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @Gunterlie
Base:
staging← Head:feat/mari-config-editors📝 Commits (10+)
2a71eb3feat(mari): Prof. Mari in the Preset and Agent editors1069116fix(mari): review fixes for Prof. Mari in the Preset and Agent editors705c725fix(mari): agent Save keeps her phase, connection and settings; guard takeover restore and empty built-in promptbb44036fix(client): track last-seen agent record on dirty refetch; send phase/connection when stored value differs4758332fix(client): compare agent Save against normalized stored phase/connection2f4245cfix(client): clear a stale stored agent connection on Save524d5d2Merge staging into feat/mari-config-editorsa8ea9b4fix(client): leave agent renames on the chat card6171fc5Merge staging into feat/mari-config-editorsd13f395fix(client): guard nullable takenOver in agent and preset editors📊 Changes
14 files changed (+695 additions, -169 deletions)
View changed files
📝
packages/client/src/components/agents/AgentEditor.tsx(+286 -70)📝
packages/client/src/components/chat/HomeProfessorMariChat.tsx(+4 -2)📝
packages/client/src/components/chat/mari/mari-tool-presentation.ts(+1 -1)📝
packages/client/src/components/presets/PresetEditor.tsx(+268 -92)📝
packages/client/src/hooks/use-mari-editor-fields.ts(+20 -0)📝
packages/client/src/lib/mari-editor-fields.ts(+38 -1)📝
packages/client/src/localization/locales/en.json(+3 -0)📝
packages/server/src/services/mari-db/mari-db.service.ts(+4 -0)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+4 -2)📝
packages/shared/src/types/professor-mari-workspace.ts(+1 -1)📝
scripts/regressions/agent-home-widgets.regression.ts(+12 -0)📝
scripts/regressions/mari-editor-fields.regression.ts(+38 -0)📝
scripts/regressions/mari/preset-granular.regression.ts(+15 -0)📝
scripts/regressions/professor-mari/action-result.regression.ts(+1 -0)📄 Description
Why
Prof. Mari can already change presets (
preset.update) and agents (agent.update), but her changes only showed as chat cards. Users editing a preset or an agent had to leave the editor to see what she wants to change. This slice (7c) brings the same in-editor review that the Character, Persona and Lorebook editors have to the Preset and Agent editors.What changed
preset.updatechanges review in the editor's own fields (name, description, author, conversation prompt, game prompt): field anchors, companion panel, in-field review, pre-save on Keep, Edit takeover restore. Save now sends only the changed keys, so her applied fields are not overwritten by an older form. Prompt sections are their own records (preset.updateSection) and are not covered.agent.update(name, description, prompt template). While the form has unsaved edits, a refetch (her card Apply, Bypass) keeps them and takes her text only for fields the user left alone; Save leaves her fields out when they are unchanged. No "working off-screen" chip here: it needs a positioned wrapper around the whole editor body.agent.updatenow returns an action result (agent_configs→agent), so the kept line, Undo and takeover restore work for agents. Her agent changes refresh the agent queries, and receipts name the kind ("agent"). Top-levelconversation_prompt,game_promptandprompt_templatenow apply (they were dropped or refused).<input>as well as a<textarea>(the agent description is an input).mari-editor-fields,agent_configsinprofessor-mari/action-result, top-level snake_case keys inmari/preset-granularandagent-home-widgets.Validation (local)
tsc --noEmitclient and server, eslint on changed client files, prettier,pnpm localization:check: pass.multiplayer-peer-server-security(TLS hostname::1vslocalhoston the test host; no files touched here).Manual verification
No linked issue: planned Prof. Mari editors work (slice 7c).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.