mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5226] [MERGED] Add Lorebook Update order and custom result previews #6680
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#6680
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/5226
Author: @SpicyMarinara
Created: 8/18/2026
Status: ✅ Merged
Merged: 8/18/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/5225-lorebook-update-order📝 Commits (4)
416992dAdd Lorebook Update entry orderf7ba618Accept explicitly signed lorebook ordersc7b827ePreview custom agent result formats528ec7eStrengthen custom result preview regression📊 Changes
9 files changed (+352 additions, -26 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
e2e/core-flows.e2e.ts(+25 -0)📝
packages/client/src/components/agents/AgentEditor.tsx(+12 -25)➕
packages/client/src/lib/custom-agent-result-examples.ts(+179 -0)📝
packages/client/src/localization/locales/en.json(+2 -0)📝
packages/server/src/routes/generate/agent-write-approval.ts(+14 -1)📝
packages/server/src/routes/generate/lorebook-keeper-utils.ts(+9 -0)📝
packages/shared/src/types/agent.ts(+2 -0)📝
scripts/regressions/open-issues.regression.ts(+108 -0)📄 Description
Linked issue
Closes #5225
Related package work: Pasta-Devs/Marinara-Agents#425
Why this change
Lorebook Update agents currently lose any requested entry injection order before persistence. New entries therefore use the storage default and existing entries cannot be moved, forcing users who group lore entries at a shared order such as 200 to batch-edit Agent output after every run.
The approval-gated path also reconstructs updates from editable proposal text, so merely forwarding
orderin the automatic path would still silently drop it when Review Agent Outputs is enabled.Custom-agent creators also only see a short description of the selected result type. Without opening a built-in agent as a reference, they cannot see the complete JSON response shape or its optional fields while writing their prompt.
What changed
orderfrom top-level or nested Lorebook Update entry data.order.Validation
pnpm build:sharednode ./scripts/run-regressions.mjs --filter scripts/regressions/open-issues.regression.tspnpm checkorder: 200order: 200CONTRIBUTING.mdVerification notes
Docs and release impact
CHANGELOG.mdare updated in this PR.UI evidence
The Prompt Template textarea uses the selected result type response example as its empty-state preview. Existing prompts are unchanged, and built-in agent placeholders retain their previous behavior.
Summary by CodeRabbit
New Features
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.