mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6842] [Issue]: Professor Mari's review cards follow you into every chat, and some cannot be cleared #3834
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#3834
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?
Originally created by @kolacheee on GitHub (Sep 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6842
Originally assigned to: @kolacheee on GitHub.
A user reported that after working with Professor Mari on character cards, "Review Mari's changes" cards stay on screen for good. Deleting the chat, deleting every Mari chat and starting a new one all leave them there, and pressing Keep or Restore did not clear them either. Their cards all read "Professor Mari · Edited · No field changes to show." Reported on 2.4.6 (Linux). Four separate problems combine into this.
How to reproduce (try it yourself)
With Marinara running, create Mari reviews from a terminal in the repo:
Take the description from the first command, add a line to it, and patch it back with
--applyas a second review. Asking Mari to "update your own card" does the same thing through hercharacter.updateaction.data/storage/journal/pending/read-only and press Keep on a card. What you'll see: "Professor Mari could not keep that workspace change. Internal Server Error." The card stays.What should happen:
Where it is
MariDbService.getPendingApprovals()inpackages/server/src/services/mari-db/mari-db.service.tsfeeds the Mari status for every chat. Reviews live injournal/pending/<id>.jsonfor 14 days and record no chat: workspace runs all use the fixed session idprofessor-mari-workspaceinworkspace-agent.service.ts. Deleting a chat never touches them.character.updateaction inmari-db.service.tsaccepts__professor_mari__, and so does a rawmari db patch.seedProfessorMariinpackages/server/src/db/seed-mari.tsrewrites her card to the built-in data on every startup.executeMutationandcreateAppliedReview. OnlyupdatedAtdiffers, so the Easy view has nothing to show.restoreAppliedReviewLockedreturnsstate_changedand leaves the review pending on purpose, so no newer edit is overwritten. The message asks for "a fresh proposal", which a user cannot do for an old card. Keep does clear it, but nothing says so.keepAppliedReviewLockedrenames the review file first and fails closed if it can't. The route turns that into a bare 500, so the toast only says "Internal Server Error".What's happening
The review cards are an undo log for changes already applied, shared by the whole workspace and kept for two weeks. Nothing ties a card to its chat. A no-op edit still makes one. Edits to Mari's own card turn un-restorable at the next restart, and the Restore message doesn't point to the one button that clears the card.
Suggested fix
__professor_mari__character inplanMutation, so the friendly action and a rawmari dbcommand are both covered.Context
Investigated with an AI agent and reproduced on staging
d6c2c5cd8with a scratch install, API and browser. The Keep, Restore, startup and card code is the same in 2.4.4, 2.4.6 and staging. Keep cleared every card in testing, including ones whose Restore was refused. It failed only when the pending folder was not writable, for example a data folder owned by another user after asudorun, or a container volume with the wrong owner. That is unconfirmed for the reporter. Workaround until a fix lands: press Keep, not Restore, on each leftover card. Verify before fixing.@kolacheee commented on GitHub (Sep 29, 2026):
Reopening for one follow-up.
The reporter's retest ran build
a10ee75c5. That is the staging commit just before #6844 merged asf74c5f138, so the retest did not include the fix.Even with the fix, their cards would have stayed. They were saved before it, so they belong to no chat and still show in every Mari chat. All of them are edits to Professor Mari's own card, which can never be restored, because startup rewrites that card. A follow-up PR retires those reviews when Marinara loads.
If Keep still fails on a build that has #6844, the error message now names the cause, for example a data folder Marinara cannot write to.