mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #388] [MERGED] feat(assistant): warn users that Mari can edit characters and personas #4599
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#4599
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/388
Author: @LukaTheHero
Created: 5/4/2026
Status: ✅ Merged
Merged: 5/4/2026
Merged by: @SpicyMarinara
Base:
main← Head:feat/mari-capability-warning📝 Commits (1)
7849940feat(assistant): warn users that Mari can edit characters and personas📊 Changes
5 files changed (+98 additions, -3 deletions)
View changed files
📝
packages/client/src/components/chat/ChatInput.tsx(+3 -1)📝
packages/client/src/components/chat/ConversationInput.tsx(+3 -1)➕
packages/client/src/components/chat/MariCapabilityNotice.tsx(+89 -0)📝
packages/client/src/components/onboarding/OnboardingTutorial.tsx(+1 -1)📝
packages/server/src/db/seed-mari.ts(+2 -0)📄 Description
Why this change
Professor Mari (the built-in assistant) executes
[update_character]and[update_persona]commands as soon as the user asks her to edit something — no preview, no confirmation prompt. There is asymmetric data-loss risk between the two paths:update_charactercallschars.update(...)withversionSource: \"command\", which creates a recoverable version snapshot before overwriting the active card (packages/server/src/services/storage/characters.storage.ts:128-139). The user can roll back from the character's version history.updatePersona(characters.storage.ts:309-343) just writes the new fields straight to the personas table. No snapshot, no rollback path. This is the case users actually hit when they lose data.Audited Mari's full command surface (
packages/server/src/services/conversation/character-commands.ts:209-215+ handlers inpackages/server/src/routes/generate.routes.ts:7651-7806) to confirm the warning copy is accurate. Mari can:She cannot update lorebooks, presets, chats, agents, connections, settings, or regex scripts, and there are no delete commands. So the warning scopes correctly to characters + personas with the asymmetry called out.
What changed
Three places now surface the same callout, sized for the audience that hits each one:
packages/client/src/components/onboarding/OnboardingTutorial.tsx— Step 5 ("Meet Professor Mari!") body now includes a Heads up paragraph spelling out the character-vs-persona difference. Every new user sees this during the tour.packages/server/src/db/seed-mari.ts— Mari'sfirst_mesopens with a one-line ⚠️ explaining the same.seedProfessorMarialready re-applies the seed when the character data hash changes (line 444-453), so the updated card propagates on app start. The newfirst_mesonly affects new chats with Mari, not existing ones already populated by the previous greeting — the in-app banner below covers existing users.packages/client/src/components/chat/MariCapabilityNotice.tsx— dismissible amber banner that renders above the input bar in any chat wherePROFESSOR_MARI_IDis incharacterIds. Detection mirrors the existingMariThinkingIndicatorpattern. Dismissal persists underlocalStoragekeymari-capability-notice-dismissed-v1, so it shows at most once across all of the user's Mari chats. Re-checks storage on chat-switch to handle cross-tab dismissal.Wired into both
ConversationInput.tsxandChatInput.tsxdirectly above<MariThinkingIndicator />so the new notice and the existing thinking pill share one "Mari status" area.Compatibility
Closes / refs
User report from Discord (general). No tracking issue yet — happy to file one if reviewers prefer it linked.
Summary by CodeRabbit
New Features
UI/UX Updates
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.