mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8570] [MERGED] feat(mari): Bypass and accept-edits save your field text first; kept line shows Undo until #8680
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#8680
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/8570
Author: @Gunterlie
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @Gunterlie
Base:
staging← Head:feat/mari-bypass-save-undo-until📝 Commits (7)
07b2be8feat(mari): Bypass and accept-edits save your field text first; kept line shows Undo until42689f7fix(mari): save the editor before a Bypass send; keep Edit text and the short Undo deadline692d96bfix(mari): clear the composer before the pre-save wait; scope the saved-text note to its chat and sendb3db346fix(mari): list chatId in the kept-note effect deps2601386fix(mari): keep the pre-save mark when the chat id is set during the send0451ceaMerge staging into feat/mari-bypass-save-undo-until3f8eedefix(mari): say why a pre-save-stopped send did not go out; refresh held messages📊 Changes
9 files changed (+119 additions, -32 deletions)
View changed files
📝
packages/client/src/components/characters/CharacterEditor.tsx(+10 -9)📝
packages/client/src/components/characters/MariFieldReview.tsx(+27 -4)📝
packages/client/src/components/chat/HomeProfessorMariChat.tsx(+33 -4)📝
packages/client/src/components/lorebooks/LorebookEditor.tsx(+7 -6)📝
packages/client/src/components/personas/PersonaEditor.tsx(+10 -9)📝
packages/client/src/lib/mari-editor-fields.ts(+13 -0)📝
packages/client/src/localization/locales/en.json(+2 -0)📝
packages/client/src/stores/ui.store.ts(+5 -0)📝
scripts/regressions/mari-editor-fields.regression.ts(+12 -0)📄 Description
Linked issue
No issue: planned work from the Professor Mari companion plan (#8418): Bypass save + Undo until.
Why this change
In Bypass permissions (and accept-edits), Prof. Mari's writes apply without a review. If you had unsaved text in an editor field, her write and your text could conflict, so your text could be lost. Keep in Manual mode already saves your text first (slice 5); these modes had no review step to do it. The kept line also gave no deadline for Undo, because her undo window (about 14 days) is longer than the "today/tomorrow" label covers.
What changed
beforeKeep(null)) leaves Edit's taken-over text alone, so Edit + Keep in Bypass mode keeps your edited text.appliesWithoutReviewandkeptAfterPresave.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Live run on a copy of real data with MiniMax M3 (
nanogpt/minimax/minimax-m3), Playwright at 1440 and 390, before the review fixes:Model quirks: she often describes a change in text without writing it, offers "Apply..." chips instead of holding a change, ignores the "Not this one" decline, and asks what to fix for "fix this".
Agent-run checks after the review fixes: client build with tsc, ESLint (0 errors), Prettier,
localization:check, themari-editor-fieldsregression, and seeded Playwright runs on a throwaway server (no model) at 1440 and 390: character 8/8, persona 8/8, lorebook 6/6. These cover the "Undo until" line, the Bypass pre-save, no kept line for a run that wrote nothing, nothing saved in Manual mode, and Edit + Keep in Bypass mode keeping the edited text (character and persona).An Opus review found 1 high, 2 medium and 2 low issues. All are fixed in the second commit: the pre-save moved from the busy state into the send path, it no longer resets Edit's taken-over text, the "saved too" mark is tied to the run's message, and only the new date label is hidden at phone width.
Known limits:
ponytail:in the send path).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 were taken locally and are not attached.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.