mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2249] [MERGED] Fix lorebook marker runtime state gating #5510
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#5510
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/2249
Author: @cha1latte
Created: 6/4/2026
Status: ✅ Merged
Merged: 6/4/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-2188-lorebook-marker-runtime📝 Commits (2)
a890e38Fix lorebook marker runtime state gating50fb94bMerge remote-tracking branch 'upstream/refactor' into fix/issue-2188-lorebook-marker-runtime📊 Changes
3 files changed (+182 additions, -17 deletions)
View changed files
📝
src/engine/generation/active-lorebook-scanner.ts(+17 -3)📝
src/engine/generation/prompt-assembly.test.ts(+116 -0)📝
src/engine/generation/prompt-assembly.ts(+49 -14)📄 Description
Linked issue
Closes #2188
Why this change
What changed
Refactor impact
Primary owner:
Impact areas reviewed:
Boundary notes:
src/engine; no React, shared API, Tauri/Rust storage, or remote-runtime boundary changes.Pressure points touched:
assembleGenerationPromptscanActiveLorebooksValidation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
pnpm exec vitest run src/engine/generation/prompt-assembly.test.tspassed with 8 tests after the fix. Before the production fix, the new markerless preset regression failed becauseactivatedLorebookEntriescontained the matched world-info entry while the prompt preview did not include lore.upstream/refactor,pnpm exec vitest run src/engine/generation/prompt-assembly.test.tspassed again with 8 tests.pnpm checkpassed after the final diff and passed again after conflict resolution.src/engine/generation/active-lorebook-scanner.ts,src/engine/generation/prompt-assembly.ts, andsrc/engine/generation/prompt-assembly.test.ts.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A. This is React-free engine prompt assembly behavior; proof is the focused Vitest repro plus
pnpm check.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.