mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1423] [Issue]: Untitled lorebook entries from an imported lorebook can't be edited — content edits and flag toggles fail to autosave #707
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#707
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 @GetBeholder on GitHub (May 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1423
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Lorebook entries that are untitled (no name) and came from an imported lorebook
cannot have their contents edited or their flags changed. Autosave fails when
editing the content (e.g. typing "test modification") and equally when toggling any
flag on/off. Example: the single untitled entry in an imported "Genshin Impact
Ultimate Lorebook."
Expected behavior
An untitled imported lorebook entry should be editable like any other entry —
content edits and flag toggles should autosave successfully.
Actual behavior
Autosave fails for these entries; neither content edits nor flag toggles persist.
Steps to reproduce
Lorebook" with one untitled entry).
Impact area
Environment
Logs, screenshots, or video
The reporter referenced an example/screenshot showing the autosave failure ("As can
be seen"). It was not provided here as a file or URL, so it is not attached. The
screenshot would show the exact autosave-failed indicator/error.
Regression notes
Not provided.
Additional context
Source: forum report by The Lord of the Backdoor [MANA] (3-Star), 7:18 PM. The
example is the single untitled entry from an imported "Genshin Impact Ultimate
Lorebook."
Triage pointer (from a scan, not from the reporter): lorebook entry edits autosave
(850ms) via
LorebookEntryRow→patch()→useUpdateLorebookEntry→storageApi.update("lorebook-entries", entry.id, ...)(
src/features/catalog/lorebooks/components/LorebookEntryRow.tsx~L244;src/features/catalog/lorebooks/hooks/use-lorebooks.ts~L263-267). Because theupdate targets
entry.id, an autosave failure specific to untitled importedentries points at the imported entry's persisted shape — most likely a
missing/invalid
id(or a field the update path requires) produced during import,so
storageApi.updatecannot resolve/persist the entry. Lorebook import handlinglives in
src/features/catalog/lorebooks/components/ImportLorebookModal.tsxand theRust import path (
src-tauri/src/commands/storage/imports/— e.g.st_preset.rs,bulk_imports.rs,normalization.rs). Recommend checking the imported untitledentry's stored
idand the result of the autosaveupdatecall (does it error orno-op?). Note also that the entry name field rejects empty names on commit
(
LorebookEntryRow~L285-292), so confirm whether an empty/untitled name path alsoblocks content/flag updates.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (May 27, 2026):
On it.
@SpicyMarinara commented on GitHub (May 27, 2026):
Implemented on
refactor.What changed:
namefield when the local form is blank.Verification:
git diff --checkpnpm typecheckpnpm lintpnpm check:architecturepnpm buildgraphify update .