[GH-ISSUE #8351] [Issue]: Add cross-lorebook checks to Keyword Test #8290

Closed
opened 2026-10-27 06:07:01 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Add an option in Keyword Test to check entries across other lorebooks. Show which lorebook each matching entry came from so users can identify duplicate entries or repeated activation keywords without checking lorebooks individually.

Expected behavior

Users can enable a cross-lorebook check in Keyword Test and see matching entries from other lorebooks, labeled with their source lorebook.

Actual behavior

Keyword Test does not currently provide a way to check entries across other lorebooks, so users must inspect lorebooks individually to find duplicate entries or repeated activation keywords.

Steps to reproduce

  1. Open a lorebook and use Keyword Test.
  2. Try to check whether the keyword also appears in entries from other lorebooks; no cross-lorebook option is available.

Environment

  • Marinara Engine version: 2.5.1 (build 2.5.1+5b7d81b83c71)
  • Install type: termux
  • OS + version: Server: Android / Termux 4.14.186-perf-g3f70cffb236c (arm64); client: Android 10
  • Browser or app shell: Brave mobile browser (Chrome 155.0.0.0)

Logs, screenshots, or video

Support diagnostics provided. Screenshot attached: https://cdn.discordapp.com/attachments/1564215555710521395/1564215555882352640/Screenshot-2026-10-26-06-48-52-728_com.brave.browser-edit.jpg

Additional context

The requester initially asked to add Keyword Test and Check Lorebook in the Lorebook area. In the discussion, the proposed solution was a toggle in Keyword Test to include entries from other lorebooks and identify each entry's source.

Discord thread: Lorebook
Discord thread link: https://discord.com/channels/1417099416812392641/1564215555710521395
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (5 messages)
[2026-10-26T09:54:10.201Z] Patrick1987: ` ` `
Marinara Engine diagnostics
Version: 2.5.1
Build: 2.5.1+5b7d81b83c71
Commit: 5b7d81b83c71
Server OS: Android / Termux 4.14.186-perf-g3f70cffb236c (arm64)
Server memory: heap 113.2 / 1120 MiB; RSS 66.7 MiB
Background wake lock: acquired
Last detected freeze: none detected
Previous session: shut down cleanly at 2026-10-26T07:18:43.940Z
Sessions ended without shutdown: 10 recorded
Client OS: Android 10
Browser / app shell: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Mobile Safari/537.36
Client runtime: {"build":"2.5.1+5b7d81b83c71","page":"mvp1t7l6-c5jt5wqo","persistence":"local","navigation":"back_forward","standalone":false,"view":[1321,0,1321,0],"events":[{"at":1793003167509,"page":"mvoziqnl-lmwcivlm","build":"2.5.1+a45d57b036d7","kind":"reload-requested","reason":"version-update","view":[1321,0,1321,0]},{"at":1793003169172,"page":"mvozsjo3-hh068n3k","build":"2.5.1+5b7d81b83c71","kind":"page-start","view":[1321,0,1321,0]},{"at":1793006559402,"page":"mvp1t7l6-c5jt5wqo","build":"2.5.1+5b7d81b83c71","kind":"page-start","view":[1396,0,1321,0]}]}
GPU: Brave
Server GPU: no NVIDIA GPU detected
Main sidecar: not configured
Utility sidecar: not configured
Decision sidecar: not configured
Sidecar load: not measured
Active connection: Ebbd
Connection provider: openrouter
LLM model: deepseek/deepseek-v4.1-flash-1017
Professor Mari last acted on: none recorded this session
` ` `


Could you put the Keyword Test and Check Lorebook in this part of Lorebook? 

This will be very helpful because it will verify all of these Lorebooks along with all the entries that are within those Lorebooks.

This would help a lot because then the person wouldn't have to look at each one individually to check for duplicates or even the activation key repeated.

[attached image 1: https://cdn.discordapp.com/attachments/1564215555710521395/1564215555882352640/Screenshot_2026-10-26-06-48-52-728_com.brave.browser-edit.jpg?ex=6ae074c2&is=6adf2342&hm=f1b1c60a3f7e4b504d79acede9b67bf9623254519dea45831e80c4bf11f86396&]
[Discord message: https://discord.com/channels/1417099416812392641/1564215555710521395/1564215555710521395]

[2026-10-26T09:54:11.212Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1564215555710521395/1564215559950827551]

[2026-10-26T09:56:01.075Z] Marinara: No, but I can add inside an individual lorebook menu a field where it shows which other entries from other lorebooks also use said keyword.
[Discord message: https://discord.com/channels/1417099416812392641/1564215555710521395/1564216020749656116]

[2026-10-26T09:56:41.543Z] Patrick1987: Okay, that could be it.
[Discord message: https://discord.com/channels/1417099416812392641/1564215555710521395/1564216190484611195]

[2026-10-26T09:57:16.340Z] Marinara: I'll add it as a toggle in the keyword test, to also check other lorebooks and include entries from other lorebooks (showing which one came from which).
[Discord message: https://discord.com/channels/1417099416812392641/1564215555710521395/1564216336433942551]

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 (Oct 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8351 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Add an option in Keyword Test to check entries across other lorebooks. Show which lorebook each matching entry came from so users can identify duplicate entries or repeated activation keywords without checking lorebooks individually. ## Expected behavior Users can enable a cross-lorebook check in Keyword Test and see matching entries from other lorebooks, labeled with their source lorebook. ## Actual behavior Keyword Test does not currently provide a way to check entries across other lorebooks, so users must inspect lorebooks individually to find duplicate entries or repeated activation keywords. ## Steps to reproduce 1. Open a lorebook and use Keyword Test. 2. Try to check whether the keyword also appears in entries from other lorebooks; no cross-lorebook option is available. ## Environment - Marinara Engine version: 2.5.1 (build 2.5.1+5b7d81b83c71) - Install type: termux - OS + version: Server: Android / Termux 4.14.186-perf-g3f70cffb236c (arm64); client: Android 10 - Browser or app shell: Brave mobile browser (Chrome 155.0.0.0) ## Logs, screenshots, or video Support diagnostics provided. Screenshot attached: https://cdn.discordapp.com/attachments/1564215555710521395/1564215555882352640/Screenshot-2026-10-26-06-48-52-728_com.brave.browser-edit.jpg ## Additional context The requester initially asked to add Keyword Test and Check Lorebook in the Lorebook area. In the discussion, the proposed solution was a toggle in Keyword Test to include entries from other lorebooks and identify each entry's source. Discord thread: Lorebook Discord thread link: https://discord.com/channels/1417099416812392641/1564215555710521395 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (5 messages)</summary> ```text [2026-10-26T09:54:10.201Z] Patrick1987: ` ` ` Marinara Engine diagnostics Version: 2.5.1 Build: 2.5.1+5b7d81b83c71 Commit: 5b7d81b83c71 Server OS: Android / Termux 4.14.186-perf-g3f70cffb236c (arm64) Server memory: heap 113.2 / 1120 MiB; RSS 66.7 MiB Background wake lock: acquired Last detected freeze: none detected Previous session: shut down cleanly at 2026-10-26T07:18:43.940Z Sessions ended without shutdown: 10 recorded Client OS: Android 10 Browser / app shell: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Mobile Safari/537.36 Client runtime: {"build":"2.5.1+5b7d81b83c71","page":"mvp1t7l6-c5jt5wqo","persistence":"local","navigation":"back_forward","standalone":false,"view":[1321,0,1321,0],"events":[{"at":1793003167509,"page":"mvoziqnl-lmwcivlm","build":"2.5.1+a45d57b036d7","kind":"reload-requested","reason":"version-update","view":[1321,0,1321,0]},{"at":1793003169172,"page":"mvozsjo3-hh068n3k","build":"2.5.1+5b7d81b83c71","kind":"page-start","view":[1321,0,1321,0]},{"at":1793006559402,"page":"mvp1t7l6-c5jt5wqo","build":"2.5.1+5b7d81b83c71","kind":"page-start","view":[1396,0,1321,0]}]} GPU: Brave Server GPU: no NVIDIA GPU detected Main sidecar: not configured Utility sidecar: not configured Decision sidecar: not configured Sidecar load: not measured Active connection: Ebbd Connection provider: openrouter LLM model: deepseek/deepseek-v4.1-flash-1017 Professor Mari last acted on: none recorded this session ` ` ` Could you put the Keyword Test and Check Lorebook in this part of Lorebook? This will be very helpful because it will verify all of these Lorebooks along with all the entries that are within those Lorebooks. This would help a lot because then the person wouldn't have to look at each one individually to check for duplicates or even the activation key repeated. [attached image 1: https://cdn.discordapp.com/attachments/1564215555710521395/1564215555882352640/Screenshot_2026-10-26-06-48-52-728_com.brave.browser-edit.jpg?ex=6ae074c2&is=6adf2342&hm=f1b1c60a3f7e4b504d79acede9b67bf9623254519dea45831e80c4bf11f86396&] [Discord message: https://discord.com/channels/1417099416812392641/1564215555710521395/1564215555710521395] [2026-10-26T09:54:11.212Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1564215555710521395/1564215559950827551] [2026-10-26T09:56:01.075Z] Marinara: No, but I can add inside an individual lorebook menu a field where it shows which other entries from other lorebooks also use said keyword. [Discord message: https://discord.com/channels/1417099416812392641/1564215555710521395/1564216020749656116] [2026-10-26T09:56:41.543Z] Patrick1987: Okay, that could be it. [Discord message: https://discord.com/channels/1417099416812392641/1564215555710521395/1564216190484611195] [2026-10-26T09:57:16.340Z] Marinara: I'll add it as a toggle in the keyword test, to also check other lorebooks and include entries from other lorebooks (showing which one came from which). [Discord message: https://discord.com/channels/1417099416812392641/1564215555710521395/1564216336433942551] ``` </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-27 06:07:01 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 26, 2026):

@SpicyMarinara / Codex is taking ownership of #8351 in https://github.com/Pasta-Devs/Marinara-Engine/pull/8354. The implementation will add an optional cross-lorebook keyword preview with source labels, using the existing matcher and loading hooks. Current-book defaults and live-chat scan behavior will be preserved.

<!-- gh-comment-id:6413313290 --> @SpicyMarinara commented on GitHub (Oct 26, 2026): @SpicyMarinara / Codex is taking ownership of #8351 in https://github.com/Pasta-Devs/Marinara-Engine/pull/8354. The implementation will add an optional cross-lorebook keyword preview with source labels, using the existing matcher and loading hooks. Current-book defaults and live-chat scan behavior will be preserved.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 26, 2026):

Implemented in #8354 and merged to staging at 21d4cd1d5.

Open a lorebook → Entries → Keyword test → Include other lorebooks. The option is off by default and shows matching entries with their source lorebook and primary/secondary keys. It uses the existing keyword rules, includes visible switched-off lorebooks, and keeps the current-book preview and chat scanner separate. Loading/error/retry states prevent incomplete checks from appearing as no matches; the result list supports keyboard scrolling.

Validation: full pnpm check and all three prompt/context regressions passed on the combined candidate; 13 responsive/theme feature cases and three existing lorebook-tool cases passed, plus seven fresh smoke and three compiled-startup checks. The exact reviewed head passed all eight required checks, 1,114 Node regression scripts, all ten platform checks, and a completed Dottore review with zero defects. The merged tree is byte-identical to that reviewed head.

The feature’s 21d4cd1d5 staging merge also passed its postmerge checks: both CodeQL analyses, all 1,114 Node regression scripts, seven browser smoke checks, and Docker publication for amd64 and arm64 with the combined manifest.

A subsequent Home-tab-menu PR (#8356) advanced staging to 105a707a. I rechecked that it inherits this feature unchanged: Editor, hook and focused-test blobs are identical, all 12 keyword-test translations retain their values, and the CSS change is scoped to Home tabs. Its newer postmerge workflows are still running; their status is separate from the completed feature checks above.

Mobile coverage used browser emulation and synthetic data; the reporter’s physical Android / Termux / Brave setup and low-end-device performance remain manual verification.

<!-- gh-comment-id:6414910857 --> @SpicyMarinara commented on GitHub (Oct 26, 2026): Implemented in #8354 and merged to staging at `21d4cd1d5`. Open a lorebook → Entries → Keyword test → **Include other lorebooks**. The option is off by default and shows matching entries with their source lorebook and primary/secondary keys. It uses the existing keyword rules, includes visible switched-off lorebooks, and keeps the current-book preview and chat scanner separate. Loading/error/retry states prevent incomplete checks from appearing as no matches; the result list supports keyboard scrolling. Validation: full `pnpm check` and all three prompt/context regressions passed on the combined candidate; 13 responsive/theme feature cases and three existing lorebook-tool cases passed, plus seven fresh smoke and three compiled-startup checks. The exact reviewed head passed all eight required checks, 1,114 Node regression scripts, all ten platform checks, and a completed Dottore review with zero defects. The merged tree is byte-identical to that reviewed head. The feature’s `21d4cd1d5` staging merge also passed its postmerge checks: both CodeQL analyses, all 1,114 Node regression scripts, seven browser smoke checks, and Docker publication for amd64 and arm64 with the combined manifest. A subsequent Home-tab-menu PR (#8356) advanced staging to `105a707a`. I rechecked that it inherits this feature unchanged: Editor, hook and focused-test blobs are identical, all 12 keyword-test translations retain their values, and the CSS change is scoped to Home tabs. Its newer postmerge workflows are still running; their status is separate from the completed feature checks above. Mobile coverage used browser emulation and synthetic data; the reporter’s physical Android / Termux / Brave setup and low-end-device performance remain manual verification.
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#8290
No description provided.