mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5271] [Issue]: Lorebook edits are blocked or returned as non-JSON commands #2924
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#2924
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 @SpicyMarinara on GitHub (Aug 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5271
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Lorebook editing frequently fails because Mari returns plain text instead of the required JSON command object or mutation authorization blocks the requested operation. Explicitly authorizing split and update operations allows some edits, but entry creation is still blocked.
Expected behavior
Mari should return valid JSON command objects for the requested lorebook operations, and authorized split, update, and create operations should pass mutation checks and execute.
Actual behavior
With GLM 5.2, Mari repeatedly returned plain text instead of the required JSON command object, including after starting a fresh chat with curated context. With Sonnet 5, continuing from the saved trace was blocked because the instruction was considered unauthorized. After explicitly authorizing lorebook splitting and modification, updates succeeded, but creating entries was blocked.
Steps to reproduce
Environment
f195f57b1f)Logs, screenshots, or video
Reported output: "Professor Mari kept returning plain text instead of the required JSON command object, so I stopped before burning more requests. Ask her to continue and she can pick up from the saved trace." Authorization error: "Mutation blocked before execution: the quoted user instruction does not authorize an update operation." Screenshots: https://cdn.discordapp.com/attachments/1539669841236201503/1539669841969938512/Screenshot_20260819-090455.png and https://cdn.discordapp.com/attachments/1539669841236201503/1539669842657939526/Screenshot_20260819-091603.png
Additional context
Active connection was [or] glm 5.2 through OpenRouter using z-ai/glm-5.2. Switching to Sonnet 5 helped with the JSON output but exposed the authorization block. The user reports that this was less problematic on v3.4.3 when editing larger entries the previous day.
Discord thread: Mari struggling with lorebook updates
Discord thread link: https://discord.com/channels/1417099416812392641/1539669841236201503
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (1 message)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: