[GH-ISSUE #3513] [Issue]: Add batch editing for selected Lorebook entries #1896

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Request to batch edit settings across multiple Lorebook entries, such as enabling/disabling recursion, case sensitivity, whole-word matching, and similar per-entry options. This would avoid exporting large Lorebooks, manually editing JSON, and re-importing.

Expected behavior

Users should be able to select multiple Lorebook entries in the UI and apply a setting change to all selected entries at once.

Actual behavior

Users must edit each Lorebook entry individually or export the Lorebook, manually edit JSON fields such as recursion-related settings, and import it again.

Steps to reproduce

  1. Open a Lorebook with many entries, e.g. 100+ entries.
  2. Attempt to disable recursion or change another per-entry option across many entries.
  3. Observe that the UI does not provide a way to apply the change to all selected entries at once.
  4. Work around the limitation by exporting the Lorebook, editing the JSON manually, and re-importing it.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Attached image in Discord: https://cdn.discordapp.com/attachments/1525719811261337660/1525719811433169026/image.png?ex=6a5468cd&is=6a53174d&hm=a4a11d36487c09987644f9283681917e1d46bd95d545692b63bbee2b5f91ff46&

Additional context

User noted that large exported Lorebook JSON files can be difficult to edit manually, and Gnome Text Editor crashed on a one-line JSON file with hundreds of thousands of characters. Marinara noted that since Select already exists, editing while Select is active with multiple entries selected could apply the change to all selected entries.

Discord thread: Batch edit for Lorebook entries
Discord thread link: https://discord.com/channels/1417099416812392641/1525719811261337660
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-07-12T04:25:49.508Z] Sima: There are times when I want to enable or disable some entries, or maybe enable/disable a certain feature in a bunch of entries (like recursion, whether keys are case sensitive, whole words and etc).

So for example: I want to select all of the entries in a lorebook and disable recursion in all of them.
Normally, if I have a lorebook with a fuck ton (100+) entries, I would need to export the lorebook, open it with a text editor that won't blow up from one JSON line with hundreds of thousands of characters (funny enough, Gnome text editor does crash), edit "preventRecursion" or "excludeRecursion" (no clue which one is it) to true or false, import the lorebook again.
With batch edit I'd be able to just select the entries in the UI, click "recursion" a couple of times (in case some of the entries had recursion enabled and some have it disabled), and click save.

(I honestly really enjoy this project and the fact that I can actually see what lorebook entries are activated, unlike in ST)

[attached image 1: https://cdn.discordapp.com/attachments/1525719811261337660/1525719811433169026/image.png?ex=6a5468cd&is=6a53174d&hm=a4a11d36487c09987644f9283681917e1d46bd95d545692b63bbee2b5f91ff46&]
[Discord message: https://discord.com/channels/1417099416812392641/1525719811261337660/1525719811261337660]

[2026-07-12T09:24:03.107Z] Marinara: We already have Select, so we can use it. If we do an edit with Select on, having selected multiple entires, I think the change should apply to all that are selected.
[Discord message: https://discord.com/channels/1417099416812392641/1525719811261337660/1525794862455324702]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3513 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Request to batch edit settings across multiple Lorebook entries, such as enabling/disabling recursion, case sensitivity, whole-word matching, and similar per-entry options. This would avoid exporting large Lorebooks, manually editing JSON, and re-importing. ## Expected behavior Users should be able to select multiple Lorebook entries in the UI and apply a setting change to all selected entries at once. ## Actual behavior Users must edit each Lorebook entry individually or export the Lorebook, manually edit JSON fields such as recursion-related settings, and import it again. ## Steps to reproduce 1. Open a Lorebook with many entries, e.g. 100+ entries. 2. Attempt to disable recursion or change another per-entry option across many entries. 3. Observe that the UI does not provide a way to apply the change to all selected entries at once. 4. Work around the limitation by exporting the Lorebook, editing the JSON manually, and re-importing it. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Attached image in Discord: https://cdn.discordapp.com/attachments/1525719811261337660/1525719811433169026/image.png?ex=6a5468cd&is=6a53174d&hm=a4a11d36487c09987644f9283681917e1d46bd95d545692b63bbee2b5f91ff46& ## Additional context User noted that large exported Lorebook JSON files can be difficult to edit manually, and Gnome Text Editor crashed on a one-line JSON file with hundreds of thousands of characters. Marinara noted that since Select already exists, editing while Select is active with multiple entries selected could apply the change to all selected entries. Discord thread: Batch edit for Lorebook entries Discord thread link: https://discord.com/channels/1417099416812392641/1525719811261337660 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-07-12T04:25:49.508Z] Sima: There are times when I want to enable or disable some entries, or maybe enable/disable a certain feature in a bunch of entries (like recursion, whether keys are case sensitive, whole words and etc). So for example: I want to select all of the entries in a lorebook and disable recursion in all of them. Normally, if I have a lorebook with a fuck ton (100+) entries, I would need to export the lorebook, open it with a text editor that won't blow up from one JSON line with hundreds of thousands of characters (funny enough, Gnome text editor does crash), edit "preventRecursion" or "excludeRecursion" (no clue which one is it) to true or false, import the lorebook again. With batch edit I'd be able to just select the entries in the UI, click "recursion" a couple of times (in case some of the entries had recursion enabled and some have it disabled), and click save. (I honestly really enjoy this project and the fact that I can actually see what lorebook entries are activated, unlike in ST) [attached image 1: https://cdn.discordapp.com/attachments/1525719811261337660/1525719811433169026/image.png?ex=6a5468cd&is=6a53174d&hm=a4a11d36487c09987644f9283681917e1d46bd95d545692b63bbee2b5f91ff46&] [Discord message: https://discord.com/channels/1417099416812392641/1525719811261337660/1525719811261337660] [2026-07-12T09:24:03.107Z] Marinara: We already have Select, so we can use it. If we do an edit with Select on, having selected multiple entires, I think the change should apply to all that are selected. [Discord message: https://discord.com/channels/1417099416812392641/1525719811261337660/1525794862455324702] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:43:37 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

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

Implementation is now owned by the combined draft PR #3516. I am reproducing the reported path and will close this issue through that PR once its fix and regression proof are complete.

<!-- gh-comment-id:4950693105 --> @SpicyMarinara commented on GitHub (Jul 12, 2026): Implementation is now owned by the combined draft PR #3516. I am reproducing the reported path and will close this issue through that PR once its fix and regression proof are complete.
Author
Owner

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

Implemented in #3516 (commit d10626344): the existing Lorebook Select toolbar now applies supported boolean settings to all selected entries through one validated bulk endpoint. The serial browser regression verifies a two-entry atomic update.

<!-- gh-comment-id:4950776007 --> @SpicyMarinara commented on GitHub (Jul 12, 2026): Implemented in #3516 (commit d10626344): the existing Lorebook Select toolbar now applies supported boolean settings to all selected entries through one validated bulk endpoint. The serial browser regression verifies a two-entry atomic update.
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#1896
No description provided.