mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2298] [Issue]: SillyTavern lorebook import drops entry-tag and category auto-detection #1134
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#1134
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 @Romuromylus on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2298
Originally assigned to: @Romuromylus on GitHub.
Summary
When importing a SillyTavern World Info (
.json) lorebook, the refactor leaves every entry's semantic tag empty and files the whole lorebook under "Uncategorized". The main web app auto-detected both. These are two related losses on the same import function (normalize_lorebook).Expected behavior
A SillyTavern World Info import should, like main:
location/character/item/faction/lore/magic/creature/event) from its keywords and content.Actual behavior
On the refactor, every imported entry lands with an empty tag, and every imported lorebook lands in the "Uncategorized" bucket. The user has to manually tag each entry and re-assign the lorebook category. No core import data (keys, content, activation, position) is lost; this is an organizational/convenience regression.
Steps to reproduce
Impact area
Environment
f56a3774(compared against main @b4ab97fb)Logs, screenshots, or video
Not applicable (identified via source comparison).
Regression notes
Both worked in main; the refactor's
normalize_lorebookdoes not port main's import-time heuristics. Same root, two parts.packages/server/src/services/import/st-lorebook.importer.ts:423setstag: detectEntryTag(entry); refactorsrc-tauri/src/commands/storage/imports/normalization.rs:303hardcodes"tag": "".st-lorebook.importer.ts:337(detectCategorydefined 233-270, scoring againstCATEGORY_SIGNALS) sets the category; refactornormalization.rs:430hardcodes"category": "uncategorized".detectCategory|detect_category|detectEntryTag|detect_entry_tag|CATEGORY_SIGNALSreturns 0 matches, and there is no post-import category/tag assignment anywhere.service.rs->create_lorebook_from_payload->normalize_lorebook.Additional context
Downstream effects of the empty tag: the Lorebook Keeper agent's tag-based category filter and search haystack lose the signal for imported entries (refactor
tools-runtime.ts:304,:309), and the missing category lands everything in the wrong bucket ingroupLorebooksByCategory(lorebook-panel-model.ts:91-97). The fix is localized to the singlenormalize_lorebookfunction.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@Romuromylus commented on GitHub (Jun 6, 2026):
Fixed by #2377, merged into
refactor(squash17aa62cc).