mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #528] [MERGED] Fix stale linked lorebook count after deletion #4655
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#4655
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/528
Author: @cha1latte
Created: 5/7/2026
Status: ✅ Merged
Merged: 5/7/2026
Merged by: @cha1latte
Base:
main← Head:fix/issue-494-linked-lorebook-count📝 Commits (2)
7ca641cFix stale linked lorebook count after deletion4da2af0Add real UI evidence for issue 494📊 Changes
6 files changed (+35 additions, -8 deletions)
View changed files
➕
docs/pr-evidence/494/issue-494-proof.png(+0 -0)➕
docs/pr-evidence/494/issue-494-real-ui-after.png(+0 -0)➕
docs/pr-evidence/494/issue-494-real-ui-before.png(+0 -0)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+15 -8)📝
packages/server/src/routes/lorebooks.routes.ts(+2 -0)📝
packages/server/src/services/storage/chats.storage.ts(+18 -0)📄 Description
Linked issue
Closes #494
Why this change
activeLorebookIds, so the chat settings drawer could show two visible lorebooks while the Lorebooks section count still reported three, even after restart.What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm --dir packages/server exec tsx ../../scratch/issue-494-linked-lorebook-count-repro.tspnpm checkpassed locally.container-build-testpassed on PR #528.pnpm-validatepassed on PR #528.CONTRIBUTING.mdandAGENTS.mdwere read for PR/validation rules.pnpm db:pushwas attempted, but this checkout has nodb:pushscript; no schema files changed.pnpm dev.3and three linked lorebooks.2with only the two remaining lorebooks.pnpm db:pushis not available in this checkout.Docs and release impact
No user-facing docs or version files changed.
UI evidence (if applicable)
Before deleting one of three linked lorebooks, the real Chat Settings drawer shows count
3and all three linked lorebooks:After deleting the middle linked lorebook, the real Chat Settings drawer shows count
2and only the two remaining linked lorebooks:Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.