mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1316] [MERGED] Fix conversation scene awareness gating #5034
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#5034
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/1316
Author: @cha1latte
Created: 5/26/2026
Status: ✅ Merged
Merged: 5/26/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/refactor-issue-1274-awareness-gate📝 Commits (2)
0662ce2Fix conversation scene awareness gatingef908d0Merge remote-tracking branch 'upstream/refactor' into fix/refactor-issue-1274-awareness-gate📊 Changes
2 files changed (+158 additions, -1 deletions)
View changed files
📝
src/engine/generation/prompt-assembly.test.ts(+149 -0)📝
src/engine/generation/prompt-assembly.ts(+9 -1)📄 Description
Linked issue
Closes #1274
Why this change
lastRoleplaySceneSummaryeven when Cross-Chat Awareness was explicitly off, Memory Recall was disabled, and the chat memory bank was empty.What changed
lastRoleplaySceneSummaryout of conversation prompt summaries whenmetadata.crossChatAwareness === false.characterMemoriesbehavior covered with prompt assembly regression tests.Refactor impact
Primary owner:
Impact areas reviewed:
Boundary notes:
Pressure points touched:
src/engine/generation/prompt-assembly.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 exec vitest run src/engine/generation/prompt-assembly.test.ts; the new regression failed because the conversation prompt contained stalelastRoleplaySceneSummarywhilecrossChatAwareness=falseandenableMemoryRecall=false.pnpm exec vitest run src/engine/generation/prompt-assembly.test.ts:<memories>;characterMemorieson a conversation card do not leak into the prompt.pnpm check; it passed architecture, frontend typecheck, Rustcargo check, and docs checks.scratch/bugfix-verification.json; it passed.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A - non-UI prompt assembly fix. Verification is covered by the targeted prompt assembly regression test and
pnpm check.Summary by CodeRabbit
Tests
Refactor
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.