mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8351] [Issue]: Add cross-lorebook checks to Keyword Test #8290
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#8290
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 @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
Environment
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)
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 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.
@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 checkand 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
21d4cd1d5staging 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.