mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4490] [Issue]: World Maps portable lore does not refresh host Lorebooks cache #2440
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#2440
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 @thetopham on GitHub (Aug 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4490
Originally assigned to: @thetopham on GitHub.
Summary
World Maps can create and remap portable lorebook copies successfully, but the Engine Lorebooks UI keeps its pre-import React Query cache until the browser is refreshed. Manual review also found that linked-lore Open did not navigate to the restored lorebook.
Expected behavior
After World Maps imports or reuses portable lore, the restored lorebook should appear immediately in the main Lorebooks library. Opening a linked lore entry should leave the map workspace and open the correct lorebook, including after the user confirms discarding unsaved map changes.
Actual behavior
The imported lorebook and entry are persisted and the map references the new entry ID, but the main Lorebooks library remains stale until a full browser refresh. During the same manual flow, linked-lore Open did not navigate.
World Maps and the Engine app mount separate React Query clients. The package currently refreshes only its package-local
hierarchical-maps/lorebooksquery, while the Engine library uses the independentlorebooksquery family.Steps to reproduce
Environment
Logs, screenshots, or video
No browser console error was captured. Storage inspection confirmed that the imported lorebooks and entries exist and are visible after a browser refresh, so this is not data loss.
Additional context
onLorebooksChangedUI callback; the Engine host should invalidatelorebookKeys.allwhen that callback runs and use the refreshed path for linked-lore navigation.Template check