[GH-ISSUE #4430] Dropping a lorebook already active via a character or persona gives no indication it is already in context #2405

Closed
opened 2026-10-21 05:47:55 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Gunterlie on GitHub (Aug 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4430

Originally assigned to: @Gunterlie on GitHub.

Problem

When you drag a lorebook onto a chat, the drop overlay blocks with "is already active in this chat" only if the book is pinned directly to the chat (metadata.activeLorebookIds).

If the same book is already being injected because it is attached to the chat's character, persona, or is global, the drop goes through with the generic "Added to chat context" message and no indication that its entries were already in context.

Why it matters

For anyone who leans on character- and persona-attached lorebooks, the two cases are indistinguishable at drop time, so it is easy to lose track of what is actually feeding context.

Expected

Pinning the book is still a real change (the pin survives swapping the character or persona out), so the drop should still happen — but it should name the source the book was already inherited from, the same way the chat settings lorebook list already shows Character / Persona / Global chips.

Notes

Reported from hands-on use of the chat resource drag/drop feature on staging (#4413 / #4420 line of work). Everything else about dragging — personas, characters, presets, connections, undo, and the agent mode-compatibility blocks — behaved as expected.

Originally created by @Gunterlie on GitHub (Aug 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4430 Originally assigned to: @Gunterlie on GitHub. ### Problem When you drag a lorebook onto a chat, the drop overlay blocks with "is already active in this chat" only if the book is **pinned directly** to the chat (`metadata.activeLorebookIds`). If the same book is already being injected because it is attached to the chat's **character**, **persona**, or is **global**, the drop goes through with the generic "Added to chat context" message and no indication that its entries were already in context. ### Why it matters For anyone who leans on character- and persona-attached lorebooks, the two cases are indistinguishable at drop time, so it is easy to lose track of what is actually feeding context. ### Expected Pinning the book is still a real change (the pin survives swapping the character or persona out), so the drop should still happen — but it should name the source the book was already inherited from, the same way the chat settings lorebook list already shows `Character` / `Persona` / `Global` chips. ### Notes Reported from hands-on use of the chat resource drag/drop feature on `staging` (#4413 / #4420 line of work). Everything else about dragging — personas, characters, presets, connections, undo, and the agent mode-compatibility blocks — behaved as expected.
bsakaguchi 2026-10-21 05:47:55 +07:00
Author
Owner

@Gunterlie commented on GitHub (Aug 1, 2026):

Taking this — implementation in draft PR #4431 (branch fix/lorebook-drop-inherited-source, targeting staging). /cc @Gunterlie

<!-- gh-comment-id:5152954804 --> @Gunterlie commented on GitHub (Aug 1, 2026): Taking this — implementation in draft PR #4431 (branch `fix/lorebook-drop-inherited-source`, targeting `staging`). /cc @Gunterlie
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#2405
No description provided.