mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5225] [Issue]: Allow Lorebook Update agents to specify entry order #2894
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#2894
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 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5225
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Add an optional integer
orderfield to theupdatesarray used by the Lorebook Keeper and custom agents with the Lorebook Update result type. This would let agents assign a specific injection order when creating or updating lorebook entries without breaking existing prompts.Expected behavior
An agent should be able to optionally provide an integer
ordervalue, such as 200, for a lorebook entry. Existing prompts that omit the field should continue to work.Actual behavior
The Lorebook Update
updatesschema does not expose anorderfield. Newly generated entries receive a lower/default order than the user's existing entries, requiring manual or batch edits to place them at the desired order.Steps to reproduce
Environment
Logs, screenshots, or video
Not provided.
Additional context
The requester also suggested a separate feature: when selecting a result type for a custom agent, display a preview of the complete expected JSON format, including optional fields. The discussion indicated this could show examples based on the selected custom agent type.
Discord thread: FR - Expand Agent's "updates" Array with "Order" Setting
Discord thread link: https://discord.com/channels/1417099416812392641/1539310909829160960
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (24 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Aug 18, 2026):
Cross-repository package work is tracked in https://github.com/Pasta-Devs/Marinara-Agents/issues/425. I’m owning both halves: Engine will preserve an optional integer
orderthrough automatic and approval-gated Lorebook Update writes; Marinara-Agents will update and rebuild Lorebook Keeper’s maintained prompt/package.@SpicyMarinara commented on GitHub (Aug 18, 2026):
Implemented and landed on staging via #5226 (merge
4bb78fd). Lorebook Update results now preserve an optional safe-integer order through automatic and approval-gated writes, and the custom-agent Prompt Template preview now follows the selected result type with complete JSON/text examples. Required CI and CodeRabbit passed; focused desktop/mobile preview coverage and the landed open-issues regression passed.