mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3357] [MERGED] fix(lorebooks): restore lorebooksStorage in characters.routes (unbreak staging build) #5896
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#5896
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/3357
Author: @kolacheee
Created: 7/8/2026
Status: ✅ Merged
Merged: 7/8/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/3356-restore-lorebooksstorage📝 Commits (1)
bfec94dfix(lorebooks): restore lorebooksStorage in characters.routes (#3356)📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
packages/server/src/routes/characters.routes.ts(+2 -0)📄 Description
Linked issue
Closes #3356
Why this change
The server package fails to build on
staging:TS2304: Cannot find name 'lorebooksStorage'×3 incharacters.routes.ts(lines 1360/1393/1404), sopnpm buildandpnpm checkexit 2 for everyone on staging. Root cause — a semantic merge that git could not detect:const lorebooksStorage = createLorebooksStorage(app.db)and its import (they only fed the export bundling that PR reverts).POST /:id/embedded-lorebook/embedhandler, which useslorebooksStorage, and merged after #3349 without a rebase.What changed
packages/server/src/routes/characters.routes.ts— re-added thecreateLorebooksStorageimport andconst lorebooksStorage = createLorebooksStorage(app.db)next to the other storage consts. This is the storage handle the Embed-into-card endpoint legitimately needs; the revert only needed to drop the export-bundling helpers, not this handle.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm buildpasses (exit 0) — the exact command from the bug report; the threeTS2304errors are gone. Server package build (node ./scripts/build.mjs) and client build both complete.pnpm --filter @marinara-engine/server lint(tsc) passes.POST /:id/embedded-lorebook/embed) — it was the only endpoint referencing the previously-missing symbol.Docs and release impact
Build-only fix — no user-facing behavior change, no version bump. (No CHANGELOG entry, since it repairs unreleased staging work rather than changing shipped behavior.)
UI evidence (if applicable)
N/A — server build fix; no UI change.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.