mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7464] [Feature]: A way to view lorebook entries quickly #4158
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#4158
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 @badingots on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7464
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
Give users a way to view lorebook entry content quickly while chatting.
Lorebooks can be used for two things at once: context for the model, and reference material for the human player. For example, my persona might have a college class schedule stored as a lorebook entry, and mid-roleplay I want to glance at it.
As far as I can tell, all current lorebook UI is built around the first use. The lorebook editor and the chat's Active Context view show keys, activation settings and what was sent to the model, which is the right focus for authoring and debugging. But reading an entry as a player means leaving the chat for the full editor and scrolling through settings to get to the content (this is even more of an issue on mobile where space is limited).
Proposed solution
A Lorebook Reader chat tool for Roleplay and Conversation chats: a lightweight window for reading entries at will, without the technical details.
v1 scope:
{{user}}and{{char}}with the chat's actual names, in both entry names and content, the same way chat messages display them. (This is a display-only change, entries are not edited)Alternatives considered
Additional context
Possibly related: #6698. Its per-chat private notebook (player notes that are never sent to the model) is a similar player-facing reading feature (I had even considered whether a scratchpad should be part of my proposal before seeing this). Anyway I wanted to bring it up since there could be overlap.
Rough implementation outline, for discussion:
useEntriesAcrossLorebooks, the chat-lorebook helpers inlib/chat-lorebooks.ts), the existing message macro resolver andrenderMarkdownBlocks. No new server routes.ChatControlWindow, with a phone Chat tools menu entry.lorebookPinnedEntryIds: string[]in the chat's metadata, saved throughuseUpdateChatMetadata. The server checks it's a deduplicated list of strings. It's treated as a view-only key, likewindowLayout, so pinning doesn't change the chat's last-updated time or re-run the lorebook scan, and it's kept out of chat settings profiles.I have a working implementation and am happy to open a PR against
staging.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 (Oct 12, 2026):
Work on this is in #7494, owned by @SpicyMarinara. It follows the v1 list above. @badingots, since you mentioned a working implementation: please compare notes on that PR instead of opening a second one.
@badingots commented on GitHub (Oct 12, 2026):
Thank you! I'm taking a look right now. 😊
@SpicyMarinara commented on GitHub (Oct 12, 2026):
Fixed on staging by #7494.
@SpicyMarinara commented on GitHub (Oct 12, 2026):
Thank you for the detailed proposal! After trying it, we decided not to ship a separate reader: Active Context already shows lorebook entries in the chat, and two places for the same thing would be confusing. The Reader is being removed before release.
@badingots commented on GitHub (Oct 12, 2026):
Understood, though I'd argue they solve two different problems. Active Context can't be relied on for my use-case. If the "class schedule" entry wasn't triggered it's not visible in the Active Context UI. Entry rendering in Active Context is also much less readable than a rendered markdown view—important as this is more of a user-facing feature than a debugging tool.