[GH-ISSUE #3332] Is it possible for the models to trigger lorebook entries during first generation? #1810

Closed
opened 2026-10-21 05:42:55 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3332

Originally assigned to: @SpicyMarinara on GitHub.

Discussed in https://github.com/orgs/Pasta-Devs/discussions/2882

Originally posted by Dark-Thoughts June 26, 2026
I tried it in various combinations, but it seems that lorebook entries seem to only trigger based on chat history, but that unfortunately leaves out the initially generated message and only fires after the second round, unless I personally mention the character by the key phrase.

This is somewhat problematic because I try to have a scenario character card with actual characters saved as lorebook entries. The names of the characters that I have entries for are part of the scenario card so that they can be generated, but if the initial generation does not trigger the lorebook entry, then the first generation might mess up their behavior, appearance, or topics.

Originally created by @SpicyMarinara on GitHub (Jul 7, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3332 Originally assigned to: @SpicyMarinara on GitHub. ### Discussed in https://github.com/orgs/Pasta-Devs/discussions/2882 <div type='discussions-op-text'> <sup>Originally posted by **Dark-Thoughts** June 26, 2026</sup> I tried it in various combinations, but it seems that lorebook entries seem to only trigger based on chat history, but that unfortunately leaves out the initially generated message and only fires after the second round, unless I personally mention the character by the key phrase. This is somewhat problematic because I try to have a scenario character card with actual characters saved as lorebook entries. The names of the characters that I have entries for are part of the scenario card so that they can be generated, but if the initial generation does not trigger the lorebook entry, then the first generation might mess up their behavior, appearance, or topics.</div>
bsakaguchi 2026-10-21 05:42:55 +07:00
  • closed this issue
  • added the
    in-pr
    label
Author
Owner

@SpicyMarinara commented on GitHub (Jul 7, 2026):

Lorebooks should trigger based on keywords from the first message in chat history.

<!-- gh-comment-id:4904901757 --> @SpicyMarinara commented on GitHub (Jul 7, 2026): Lorebooks should trigger based on keywords from the first message in chat history.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 7, 2026):

Addressed in #3334. Opening chat messages are now pinned into first-turn lorebook keyword scans when the recent-message scan depth would otherwise drop earlier starter/group greeting messages, with a prompt regression covering the behavior.

<!-- gh-comment-id:4905205898 --> @SpicyMarinara commented on GitHub (Jul 7, 2026): Addressed in #3334. Opening chat messages are now pinned into first-turn lorebook keyword scans when the recent-message scan depth would otherwise drop earlier starter/group greeting messages, with a prompt regression covering the behavior.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1810
No description provided.