mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1302] [MERGED] Fix lorebook game-state gates #5022
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#5022
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/1302
Author: @cha1latte
Created: 5/26/2026
Status: ✅ Merged
Merged: 5/26/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/refactor-issue-1249-lorebook-gates📝 Commits (2)
e9d9352Fix lorebook game-state gates09db458Merge remote-tracking branch 'upstream/refactor' into fix/refactor-issue-1249-lorebook-gates📊 Changes
3 files changed (+141 additions, -9 deletions)
View changed files
📝
src/engine/generation-core/lorebooks/keyword-scanner.ts(+33 -8)📝
src/engine/generation/prompt-assembly.test.ts(+105 -0)📝
src/engine/generation/prompt-assembly.ts(+3 -1)📄 Description
Linked issue
Closes #1249
Why this change
What changed
Refactor impact
Primary owner:
Impact areas reviewed:
Boundary notes:
Pressure points touched:
src/engine/generation/prompt-assembly.tssrc/engine/generation-core/lorebooks/keyword-scanner.tsValidation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
pnpm test -- src/engine/generation/prompt-assembly.test.ts; the new mismatch row failed because the gated entry activated.pnpm test -- src/engine/generation/prompt-assembly.test.tsafter the fix: 6 tests passed.pnpm check: architecture, frontend typecheck, Rust check, and docs check passed.scratch/bugfix-verification.json: passed.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A - this is non-UI prompt assembly behavior. The proof is the focused prompt assembly regression plus
pnpm check.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.