mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5191] [Issue]: Add Read Behind to custom lorebook agents and fix mobile Backfill button overflow #2871
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#2871
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 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5191
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Custom agents that operate on lorebooks should support the Lorebook Keeper's Read Behind setting, allowing them to process chat history from a configurable number of messages behind the current turn. In mobile view, the Backfill Unprocessed button also escapes its container and should be moved to the line below.
Expected behavior
Custom lorebook agents should provide a configurable Read Behind value so they can avoid processing the current turn and creating duplicate entries after swipes. The Backfill Unprocessed button should remain within its container in mobile view, wrapping to the line below when necessary.
Actual behavior
Custom lorebook agents do not expose the Read Behind functionality, so swiping can cause the agent to propose a new entry on every swipe. In mobile view, the Backfill Unprocessed button escapes its containment.
Steps to reproduce
Environment
427a747054)Logs, screenshots, or video
Screenshot attached: https://cdn.discordapp.com/attachments/1538683835007373332/1538838858698072094/Screenshot_20260817_111529_Samsung_Browser.jpg?ex=6a8422de&is=6a82d15e&hm=ad636e5105c388b31ef84a58b06e0db9e872efbbf5babc46457829eb5fdb3be0
Additional context
The custom agent is intended to create new entries in a very large memory lorebook of approximately 70k tokens and growing, without reading or editing existing entries. The native Lorebook Keeper is reportedly injected every turn, which consumes substantial input tokens. Supporting Read Behind would help avoid unnecessary processing and token costs.
Discord thread: [FR] - Make the 'Read Behind' Functionality available to Custom Agents
Discord thread link: https://discord.com/channels/1417099416812392641/1538683835007373332
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (9 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 17, 2026):
I’m taking this issue. Implementation is starting on
fix/5191-custom-agent-read-behind; I’ll keep the context-window behavior and mobile layout fix focused in one issue-linked PR.@SpicyMarinara commented on GitHub (Aug 17, 2026):
Resolved by #5193 and merged into staging in
feb276cd8.